Skip to main content
PATCH
Update a tool

Autorisierungen

Authorization
string
header
erforderlich

Scoped API token. Required scopes are listed on each operation in x-required-scopes.

Pfadparameter

id
integer
erforderlich

ID of the tool.

Body

application/json

Partial update. Only keys present in the body change. "" or null clears access_token, oauth_provider_id, headers, fixed_parameters and response_fields.

url
string

URL to call. {{param}} placeholders are filled from the call arguments.

Pattern: ^https?://
method
string

HTTP method, for example GET or POST.

headers
object | null

Request headers. {{param}} placeholders are filled from the call arguments; {{api_key}} resolves to the access token or OAuth token.

fixed_parameters
object | null

Values always sent with the request, not chosen by the agent.

function_definition
object

OpenAI-style function schema. Its name becomes the tool name.

name
string

Must equal function_definition.name.

access_token
string | null

Mutually exclusive with oauth_provider_id.

oauth_provider_id
integer | null

ID of an OAuth connection in your account. Mutually exclusive with access_token.

say_before
string | null

Phrase the agent says before calling the API.

condition
string | null

When the agent should use this tool.

agent_override_condition
string | null

Condition override for one agent. Only applied when agent_id is given.

response_fields
string[] | null

Fields of the API response the agent may use.

response_variables
object[] | null

Values extracted from the response and stored as variables for later steps.

prompt_id
integer
veraltet

Deprecated alias of agent_id.

agent_id
integer

Voice agent that agent_override_condition applies to.

Antwort

The updated tool, or tool pair.

Returned by create and update. Call-forwarding and warm-transfer types return the pair.

id
integer
erforderlich

ID of the tool.

name
string
erforderlich

Tool name as the agent's model sees it. Equals function_definition.name.

description
string | null
erforderlich

What the tool does. Empty for API tools; the model reads function_definition.description.

function_type
string
erforderlich

Always external:api.

Allowed value: "external:api"
integration_id
integer
erforderlich

ID of the integration created for this tool.

ai_action_id
integer | null
erforderlich

ID of the action record backing this tool.

external_api
object
erforderlich

How the API is called.

function_definition
object
erforderlich

OpenAI-style function schema the agent's model uses to decide when and how to call the tool.

enabled_for_agent
boolean

Only returned by create. True when agent_id was supplied and the tool was enabled for that agent.