Skip to main content
PATCH
/
v1
/
senders
/
{senderId}
/
agent
/
tools
/
{toolId}
Update tool
curl --request PATCH \
  --url https://api.zavu.dev/v1/senders/{senderId}/agent/tools/{toolId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "parameters": {
    "type": "object",
    "properties": {},
    "required": [
      "<string>"
    ]
  },
  "webhookUrl": "<string>",
  "webhookSecret": "<string>",
  "enabled": true
}
'
{
  "tool": {
    "id": "<string>",
    "agentId": "<string>",
    "name": "get_order_status",
    "description": "<string>",
    "parameters": {
      "type": "object",
      "properties": {},
      "required": [
        "<string>"
      ]
    },
    "webhookUrl": "<string>",
    "enabled": true,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

senderId
string
required
toolId
string
required

Body

application/json
name
string
Maximum string length: 100
description
string
Maximum string length: 500
parameters
object
webhookUrl
string<uri>
webhookSecret
string | null
enabled
boolean

Response

Tool updated.

tool
object
required