Skip to main content
PATCH
/
providers
/
{id}
/
tools
/
{toolID}
Update Provider Tool
curl --request PATCH \
  --url https://api.example.com/providers/{id}/tools/{toolID} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "tool": {
    "providerID": "kSuB9Gf6aD4",
    "method": "GET",
    "path": "/users/{id}",
    "name": "makePayment",
    "title": "Make Payment",
    "description": "<string>",
    "pathArgsJSONSchema": {},
    "queryArgsJSONSchema": {},
    "reqBodyJSONSchema": {},
    "headers": [
      {
        "key": "<string>",
        "value": "<string>"
      }
    ],
    "oauth2Scopes": [
      "<string>"
    ]
  }
}
'
{
  "tool": {
    "id": "kSuB9Gf6aD4",
    "providerID": "kSuB9Gf6aD4",
    "method": "GET",
    "path": "/users/{id}",
    "name": "makePayment",
    "title": "Make Payment",
    "description": "<string>",
    "pathArgsJSONSchema": {},
    "queryArgsJSONSchema": {},
    "reqBodyJSONSchema": {},
    "headers": [
      {
        "key": "<string>",
        "value": "<string>"
      }
    ],
    "oauth2Scopes": [
      "<string>"
    ]
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

id
string
required

Provider ID

toolID
string
required

Tool ID

Body

application/json
tool
object

Response

200 - application/json

Tool updated

tool
object