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

Enter 'Bearer' followed by a space and your token (e.g., 'Bearer ${HASMCP_ACCESS_TOKEN}').

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