Update agent

http
PUT /projects/{project_reference}/agents/{agent_id}

Update agent. Requires project.agents.write.

Parameters

NameInRequiredDescription
project_referencepathYesProject slug, UUID, or domain that identifies the project.
agent_idpathYesAgent identifier.
source_target_kindquery
target_branch_idquery

Request body

FieldTypeRequiredDescription
namestring
descriptionstring,null
modelstring,null
system_promptstring
thinkingobject
temperaturenumber,null
max_stepsinteger,null
allowed_modelsarray
skill_idsarray
skill_selectionobject
skills
all_tools_enabledboolean
tool_idsarrayProject tools, platform tools, and integration catalog tools returned by get_integration. Use exact names from the agent tool references search.
toolsCallable host-tool selector. Use false to disable all host tools, including skill and delegation tools. An empty array or map selects no project tools but preserves legacy runtime essentials. Provider-native tools use provider_tool_ids.
tool_loadingstring
tool_result_context
knowledge
provider_tool_idsarrayProvider-native model tools only. Never put tool references from tool_ids here.
suggestionsarray,null
avatarobject,null
avatar_urlstring,null
security_enabledboolean
idstring

Responses

StatusDescription
200Agent updated
400Bad request
401Unauthorized
403Forbidden
404Not found
409Conflict
500Server error
503internal: authentication state is temporarily unavailable and the request was not processed; retry shortly.