agent_id
.agent_id
(string, required) – The unique identifier of the agent that needs to be updated.project_id
(string, optional) – Assigns or reassigns the agent to a specific project.name
(string, optional) – The new name for the agent.description
(string, optional) – A brief description of the agent’s purpose.curl --location --request PUT '/v2/api/agent/' \
--form 'project_id="2"' \
--form 'name="updated"' \
--form 'description=""' \
--form 'sample_q1=""' \
--form 'sample_q2=""' \
--form 'sample_q3=""' \
--form 'status="Live"' \
--form 'type="1"' \
--form 'prefix_prompt="abc"' \
--form 'custom_instructions="[]"' \
--form 'access="Only me"' \
--form 'create_email_alias="true"' \
--form 'cloned_from=""' \
--form 'llm_model="1"' \
--form 'character_voice_id="1"'
{
"success": true,
"message": "Agent data updated successfully",
"data": {
"id": 1,
"agent_type": {
"id": 1,
"created_by": "System",
"created_on": "2024-08-23T21:38:47.044052Z",
"modified_by": "",
"modified_on": "2024-08-23T21:38:47.044079Z",
"name": "testAgent",
"description": "i am testing"
},
"instructions": [],
"user": {
"id": 2,
"email": "user@example.com",
"first_name": "Ejento",
"last_name": "Admin"
},
"agent_name": "updated",
"industry_area": "Online Marketing",
"domain": "",
"prefix_prompt": "abc",
"access": "Only me",
"status": "Live",
"project": 1,
"llm_config": 1,
"created_by": "user@example.com",
"created_on": "2024-08-23T21:39:12.471584Z"
}
}