Replace Agent
PUT /agents/{agent_id}Parameters
Section titled “Parameters”| Name | In | Type | Notes | |
|---|---|---|---|---|
agent_id | path | string (uuid) | required | — |
Request body — AgentReplace
Section titled “Request body — AgentReplace”| Field | Type | Notes | |
|---|---|---|---|
name | string | required | min length 1 max length 200 |
description | string | null | optional | — |
avatar_preset | analyst | archivist | builder | courier | gardener | navigator | scribe | sentinel | null | optional | — |
image_url | string | null | optional | max length 2048 |
is_active | boolean | optional | Default true. |
attributes | object | optional | — |
revision | RevisionDocument | required | — |
change_note | string | null | optional | max length 500 |
Responses
Section titled “Responses”| Status | Description | Body |
|---|---|---|
200 | Successful Response | AgentView |
422 | Validation Error | HTTPValidationError |
Example
Section titled “Example”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.
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": {} } }'Response — AgentView
Section titled “Response — AgentView”| Field | Type | Notes | |
|---|---|---|---|
id | string (uuid) | required | — |
scope | workspace | organization | platform | required | — |
organization_id | string (uuid) | null | required, nullable | — |
workspace_id | string (uuid) | null | required, nullable | — |
slug | string | required | — |
name | string | required | — |
description | string | null | required, nullable | — |
avatar_preset | analyst | archivist | builder | courier | gardener | navigator | scribe | sentinel | null | required, nullable | — |
image_url | string | null | required, nullable | — |
is_active | boolean | required | — |
attributes | object | required | — |
active_revision_id | string (uuid) | null | required, nullable | — |
created_by_user_id | string (uuid) | null | required, nullable | — |
created_at | string (date-time) | required | — |
updated_at | string (date-time) | required | — |
active_revision | AgentRevisionView | null | optional | — |
revision_count | integer | null | optional | — |