Skip to main content
PATCH
/
agents
/
{id}
/
custom-tools
/
{toolId}
Update Custom Tool
curl --request PATCH \
  --url https://api.revring.ai/v1/agents/{id}/custom-tools/{toolId} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "name": "<string>",
  "webhookUrl": "<string>",
  "enabled": true,
  "schema": {}
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "webhookUrl": "<string>",
    "enabled": true,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "schema": {}
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication. Generate API keys from the RevRing dashboard.

Path Parameters

id
string<uuid>
required

Agent ID

toolId
string<uuid>
required

Tool ID

Body

application/json
name
string
Maximum string length: 64
webhookUrl
string<uri>
enabled
boolean

Whether this tool is enabled

schema
object

OpenAI function schema (can be null to remove)

Response

Custom tool updated

data
object

Custom function calling tool for agents