Update Agent
Update an existing agent. Users can only update their own agents.
Agent ID (numeric or ElevenLabs agent ID)
Request Body
Agent object with fields to updateAgent conversation configuration
Platform-specific settings
Widget configuration for web integration
curl -X PUT "https://api.example.com/api/v1/agents/123" \
-H "X-API-Key: your-api-key-here" \
-H "Content-Type: application/json" \
-d '{
"agent": {
"name": "Updated Agent Name",
"tags": ["support", "voice", "updated"],
"conversation_config": {
"temperature": 0.8
}
}
}'
Response
Response status information
Updated agent object (see Agent schema)
{
"status": {
"code": 200,
"message": "Agent updated successfully"
},
"data": {
"id": "123",
"name": "Updated Agent Name",
"tags": ["support", "voice", "updated"],
"conversation_config": {
"temperature": 0.8
},
"platform_settings": {},
"published": true,
"published_at": "2024-01-15T10:30:00Z",
"elevenlabs_agent_id": "agent_abc123",
"version": 2,
"phone_numbers": [],
"user_id": 1,
"user_email": "[email protected]",
"created_at": "2024-01-10T08:00:00Z",
"updated_at": "2024-01-15T11:00:00Z"
}
}
Error Responses
Unauthorized - Invalid or missing authentication
Validation error - Invalid request body