Update the configuration of an existing agent. Only provided fields will be updated.
Path Parameters
The unique identifier of the agent (UUID format).
Request Body
Display name for the agent.
ElevenLabs voice ID for text-to-speech.
Language code (e.g., he, en).
System prompt that defines the agent’s behavior.
Initial greeting message.
How the begin message is handled: static, dynamic, or off.
Delay in milliseconds before agent responds.
Text direction: rtl or ltr.
Variable definitions for values that can be provided when initiating a call.
If provided, replaces all existing vars_provided for this agent.
Each item: {name, type, default_value, description}.
Variable definitions for values the agent should extract during the call.
If provided, replaces all existing vars_extracted for this agent.
Each item: {name, type, description, required}.
Response
Returns the updated agent object.
curl -X PATCH https://api.voicy.co/v1/update-agent/550e8400-e29b-41d4-a716-446655440001 \
-H "Authorization: Bearer voicy_sk_live_xxx" \
-H "Content-Type: application/json" \
-d '{
"agent_name": "Updated Agent Name",
"begin_message": "Hello! How can I assist you today?"
}'
200 OK
400 Bad Request
404 Not Found
{
"agent_id" : "550e8400-e29b-41d4-a716-446655440001" ,
"agent_name" : "Updated Agent Name" ,
"voice_id" : "pNInz6obpgDQGcFmaJgB" ,
"language" : "en" ,
"begin_message" : "Hello! How can I assist you today?" ,
"general_prompt" : "You are a helpful customer support agent..." ,
"begin_message_mode" : "static" ,
"response_delay_ms" : 100 ,
"prompt_text_direction" : "ltr" ,
"vars_provided" : [],
"vars_extracted" : []
}