Update tool

Update selected tool fields.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <API_KEY>, where API_KEY is your API key.

Path parameters

toolIdstringRequired
Tool to update.

Headers

X-Account-IdstringOptional
Send this to address an organization tool. Omit it to address a partner tool.

Request

Fields to change on the tool. Every field is optional but you must send at least one field. Only the fields you send are updated and the rest are left untouched.
namestringOptional
The tool name the assistant calls it by. Must be unique within the scope that owns the tool.
descriptionstringOptional

Natural-language description of what the tool does. This is what the assistant uses to decide when to call it, so make it specific.

methodenumOptional
HTTP method the tool uses to call its endpoint.
Allowed values:
urlstringOptionalformat: "uri"
The endpoint the tool calls.
headersobjectOptional

HTTP headers sent with the request, JSON-Schema-shaped: a type plus properties keyed by header name, each header being a type and value. Values are masked when the tool is read back. Sending this replaces the existing headers.

requestSchemaobject or nullOptional
JSON Schema of the payload the tool sends. Defines the arguments the assistant must supply when calling the tool.
responseSchemaobject or nullOptional
JSON Schema of response fields to make available. Send null or an empty object to reset it. Omit aliases to leave them unchanged.
aliaseslist of objectsOptional
Variable bindings evaluated over the parsed JSON response, where the response body is the $ root (e.g. $.data.id). Each entry maps a variable key to a Liquid template. Send an empty array to clear all aliases. Independent of responseSchema.

Response

The updated tool.
toolobject
The updated tool.

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
500
Internal Server Error