Agents
Duplicate an Agent
Create a new agent with the same attributes as the current version of the specified agent.
POST
/
v1
/
agents
/
{agent_id}
/
duplicate
/
curl --request POST \
--url https://api.roe-ai.com/v1/agents/{agent_id}/duplicate/ \
--header 'Authorization: Bearer <token>'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"version_name": "<string>",
"description": "<string>",
"input_definitions": "<any>",
"engine_class_id": "<string>",
"engine_config": "<any>",
"readonly": true,
"organization": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"base_agent": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"creator": {
"id": 123,
"email": "jsmith@example.com",
"first_name": "<string>",
"last_name": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"disable_cache": true,
"cache_failed_jobs": true,
"organization": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"engine_class_id": "<string>",
"current_version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"job_count": 123,
"most_recent_job": "2023-11-07T05:31:56Z",
"current_version": "<any>",
"engine_name": "<string>"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Response
201
application/json
Agent duplicated successfully.
The response is of type object
.
curl --request POST \
--url https://api.roe-ai.com/v1/agents/{agent_id}/duplicate/ \
--header 'Authorization: Bearer <token>'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"version_name": "<string>",
"description": "<string>",
"input_definitions": "<any>",
"engine_class_id": "<string>",
"engine_config": "<any>",
"readonly": true,
"organization": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"base_agent": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"creator": {
"id": 123,
"email": "jsmith@example.com",
"first_name": "<string>",
"last_name": "<string>"
},
"created_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"disable_cache": true,
"cache_failed_jobs": true,
"organization": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"engine_class_id": "<string>",
"current_version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"job_count": 123,
"most_recent_job": "2023-11-07T05:31:56Z",
"current_version": "<any>",
"engine_name": "<string>"
}
}
Assistant
Responses are generated using AI and may contain mistakes.