Agents
Update Agent
Partially update an agent. Only fields present in the request body are modified.
PATCH
Update agent
Every endpoint on this page requires either a Clerk-issued JWT (
Authorization: Bearer <token>) or
an organization API key (x-api-key: pk_…). Anonymous calls return 401 Unauthorized. See
Authentication for the full setup.Tool attachments are replaced on update, not merged. To add a tool, send the full list of desired
tools including existing ones. Pass "tools": [] to detach all tools.Code examples
Updating tools
To attach a new tool without removing existing ones, first fetch the agent, then send the merged list:Node.js
Sample response
Authorizations
Path Parameters
Body
application/json
All fields are optional — only provided fields are updated.
Available options:
pipeline, sts, hybrid Pass [] to remove all sub-agents.
Response
Updated agent.
Example:
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
Example:
"Customer Support Bot"
Example:
"Handles tier-1 customer queries"
Example:
"You are a helpful support agent for Acme Inc."
Example:
"en"
Example:
false
Example:
true
Example:
false
Example:
"org_2abc123"
Example:
"2026-04-28T11:42:11Z"
Example:
"2026-04-28T11:42:11Z"
Update agent