Skip to content

Replace Agent

PUT /agents/{agent_id}
NameInTypeNotes
agent_idpathstring (uuid)required—
FieldTypeNotes
namestringrequiredmin length 1 max length 200
descriptionstring | nulloptional—
avatar_presetanalyst | archivist | builder | courier | gardener | navigator | scribe | sentinel | nulloptional—
image_urlstring | nulloptionalmax length 2048
is_activebooleanoptionalDefault true.
attributesobjectoptional—
revisionRevisionDocumentrequired—
change_notestring | nulloptionalmax length 500
StatusDescriptionBody
200Successful ResponseAgentView
422Validation ErrorHTTPValidationError

The body shows the fields the schema always carries. Which combination is legal is a service rule the schema cannot express, so read the description above before copying this.

Terminal window
curl -X PUT https://your-deployment.example.com/agents/{agent_id} \
-H "Authorization: Bearer $COBRE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"revision": {
"graph_kind": "react_loop",
"graph_config": {},
"system_prompt": "string",
"model_params": {},
"tools": [],
"toolkits": [],
"sub_agents": [],
"skills": [],
"context_providers": [],
"capabilities": {},
"memory_config": {},
"context_config": {},
"guardrails": {},
"hooks": {},
"interruptions": [],
"secrets_required": [],
"max_duration_s": 0,
"max_turns": 0,
"recursion_limit": 0,
"retry_policy": {}
}
}'
FieldTypeNotes
idstring (uuid)required—
scopeworkspace | organization | platformrequired—
organization_idstring (uuid) | nullrequired, nullable—
workspace_idstring (uuid) | nullrequired, nullable—
slugstringrequired—
namestringrequired—
descriptionstring | nullrequired, nullable—
avatar_presetanalyst | archivist | builder | courier | gardener | navigator | scribe | sentinel | nullrequired, nullable—
image_urlstring | nullrequired, nullable—
is_activebooleanrequired—
attributesobjectrequired—
active_revision_idstring (uuid) | nullrequired, nullable—
created_by_user_idstring (uuid) | nullrequired, nullable—
created_atstring (date-time)required—
updated_atstring (date-time)required—
active_revisionAgentRevisionView | nulloptional—
revision_countinteger | nulloptional—