Your API key for authentication. Prefix with Bearer .
Path Parameters
The unique identifier of the agent you want to update.
Body
This endpoint accepts multipart/form-data. Send only the fields you wish to update.
The new name for the agent.
The ID of a new voice model for the agent.
Update the primary language for the agent’s conversation.
Update the prompt or script defining the agent’s conversational flow.
Update the agent to use a different pre-configured template.
Change the initial message the agent uses to start a conversation.
Update the prompt defining how the agent should qualify leads.
Update the description of the objectives or goals for the agent.
Modify the background information or context for the agent.
Provide a new example conversation or scenario to guide the agent.
Upload a new avatar image file for the agent.
Update the instructions on what the agent should avoid.
curl --request PUT \
--url 'agents/user/agent_1a2b3c4d5e' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: multipart/form-data' \
-F 'agent_name="Sales Pro Agent"' \
-F 'goals="Schedule demos with qualified leads."'
Response
On success, the response will contain the complete, updated agent object.
Confirms the request was successful.
A human-readable message, e.g., “Agent updated successfully”.
An object containing the full, updated details of the agent.
{
"status": "success",
"message": "Agent updated successfully",
"data": {
"agent_id": "***",
"agent_name": "Sales Pro Agent",
"voice_id": "***",
"language": "en-US",
"goals": "Schedule demos with qualified leads.",
"img_url": "***",
"updated_at": "2024-11-12T10:30:00.000Z"
}
}