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": {},
  "httpMethod": "GET",
  "headers": [
    {
      "key": "<string>",
      "value": "<string>"
    }
  ],
  "queryParams": [
    {
      "key": "<string>",
      "value": "<string>"
    }
  ],
  "sendRawRequestBody": true
}
'
{
  "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": {},
    "httpMethod": "GET",
    "headers": [
      {
        "key": "<string>",
        "value": "<string>"
      }
    ],
    "queryParams": [
      {
        "key": "<string>",
        "value": "<string>"
      }
    ],
    "sendRawRequestBody": true
  }
}

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)

httpMethod
enum<string>

HTTP method used when calling the webhook. Defaults to POST.

Available options:
GET,
POST,
PUT,
PATCH,
DELETE
headers
object[] | null

Custom HTTP headers to include in webhook requests

queryParams
object[] | null

Custom query parameters appended to the webhook URL

sendRawRequestBody
boolean

When true, sends tool arguments directly as the request body instead of the default wrapper

Response

Custom tool updated

data
object

Custom function calling tool for agents