Clone Agent
POST /agents/{agent_id}/cloneParameters
Section titled “Parameters”| Name | In | Type | Notes | |
|---|---|---|---|---|
agent_id | path | string (uuid) | required | — |
Request body — AgentCloneRequest
Section titled “Request body — AgentCloneRequest”| Field | Type | Notes | |
|---|---|---|---|
slug | string | required | — |
name | string | null | optional | max length 200 |
scope | workspace | organization | platform | null | optional | — |
include_personas | boolean | optional | Default false. |
Responses
Section titled “Responses”| Status | Description | Body |
|---|---|---|
201 | 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 POST https://your-deployment.example.com/agents/{agent_id}/clone \ -H "Authorization: Bearer $COBRE_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "slug": "string" }'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 | — |