Update the configuration of an existing agent. Only provided fields will be updated.
Your API key for authentication.
Must be application/json.
Path Parameters
The unique identifier of the agent.
Permissions
agents:update (admin, agent_manager)
Request Body
All fields are optional. Only provided fields will be updated.
The name of the agent (1-100 characters).
The system prompt (10-10000 characters).
Whether the agent should speak first.
Temperature setting (0.0-2.0).
Delay before leaving voicemail (1.0-5.0).
List of custom tool IDs (replaces existing list).
List of knowledge base document IDs (replaces existing list).
Response
Indicates if the update was successful.
Human-readable success message.
The updated agent object (AgentData).
{
"system_prompt": "Updated system prompt...",
"llm_temperature": 0.5
}
{
"success": true,
"message": "Agent updated successfully",
"data": {
"agent_id": "agent_a1b2c3d4e5f6",
"agent_name": "Sales Rep",
"system_prompt": "Updated system prompt...",
"llm_temperature": 0.5,
"updated_at": "2024-01-20T14:45:00Z"
}
}