Update an Agent
PUT
/api/v2/agents/{agent_id}
Agentsv2
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/api/v2/agents/' \
--header 'Content-Type: application/json' \
--data-raw '{
"project_id": 1,
"name": "New Agent Test",
"description": "This is test agent",
"prefix_prompt": "Hi how are you?",
"custom_instructions": [],
"type": "QnA",
"llm_config_id": 1,
"create_email_alias": true,
"access": "Only me",
"status": "Live",
"sample_q1": "What is the capital of France?",
"sample_q2": "What is the capital of Germany?",
"sample_q3": "What is the capital of Italy?",
"caching_enabled": true,
"react_enabled": true,
"reasoning_mode": "react",
"requested_tools": {
"Attachment Tool": true,
"Rag Tool": true
},
"character_voice_id": "1",
"created_by": "System",
"corpus_id": 1
}'
Response Response Example
200 - Example 1
{
"success": true,
"message": "string",
"data": {
"id": 0,
"agent_type": {
"id": 0,
"created_by": "string",
"created_on": "2019-08-24T14:15:22Z",
"modified_by": "string",
"modified_on": "2019-08-24T14:15:22Z",
"name": "string",
"description": "string"
},
"instructions": [
{
"id": 0,
"instruction": "string",
"is_deleted": true,
"created_by": "string",
"created_on": "2019-08-24T14:15:22Z",
"agent": 0
}
],
"user": {
"id": 0,
"email": "user@example.com",
"first_name": "string",
"last_name": "string",
"organization": 0
},
"connected_tool_names": [
"string"
],
"tags": [
"string"
],
"character_voice": {
"id": 0,
"voice_name": "string",
"voice_identifier": "string",
"voice_type": "azure_ai_speech",
"gender": "male",
"created_by": 0,
"organization": 0
},
"project": {
"id": 0,
"project_name": "string",
"team": {
"id": 0,
"team_name": "string"
}
},
"agent_name": "string",
"industry_area": "string",
"domain": "string",
"sample_q1": "string",
"sample_q2": "string",
"sample_q3": "string",
"prefix_prompt": "string",
"alias": "string",
"is_active": true,
"is_deleted": true,
"created_by": "string",
"created_on": "2019-08-24T14:15:22Z",
"agent_image": "string",
"access": "string",
"status": "string",
"caching_enabled": true,
"chunk_count": -2147483648,
"attachment_chunk_count": -2147483648,
"attachment_chunking": true,
"react_enabled": true,
"react_max_iteration_count": -2147483648,
"reasoning_mode": "react",
"call_enabled": true,
"is_published_as_teammate": true,
"chat_count": -2147483648,
"likes_count": -2147483648,
"llm_config": 0,
"pattern": 0,
"cloned_from": 0
}
}
Request
Path Params
agent_id
integerÂ
required
Body Params application/json