Update Agent
Updates various settings and configurations for an existing agent.Request
Method:POST
Endpoint:
/api/update-agent
Headers:
X-Authorization
: Your API key (required)Content-Type
:application/json
uid
(string, required): Your user IDagentId
(string, required): The ID of the agent to updatevoiceId
(string, optional): ID of the voice to use for the agentagentName
(string, optional): New name for the agent (max 50 characters)greetingMessage
(string, optional): New greeting message (max 500 characters)humanizeConversation
(boolean, optional): Whether to humanize the conversationconversationStyle
(string, optional): Style of conversation. Must be one of: “Casual”, “Humorous”, “Direct”, “Formal”, “Persuasive”, “Friendly”orgId
(string, optional): Organization ID to move the agent to
Response
Success Response (200):400 Bad Request
: Invalid request body, invalid voice ID, agent name too long, greeting message too long, invalid conversation style, or agent already in organization401 Unauthorized
: Invalid or missing API key, or insufficient permissions500 Internal Server Error
: Server error
Example
Authorizations
Body
application/json
User ID
Agent ID to update
Organization ID to update
ID of the voice to assign to the agent
Name of the agent, limited to 50 characters
Greeting message to be used when the agent is called, limited to 500 characters
Add a vocal ticks such as hmm, umm etc. to your conversation.
'Casual' | 'Humorous' | 'Direct' | 'Formal' | 'Persuasive' | 'Friendly'
Response
Agent updated successfully
Indicates if the update was successful