Skip to main content
Changes settings on the draft. Omitted settings stay as they are. Pass the revision you read as expectedRevision to fail with 409 if anyone edited the draft since, instead of applying on top of their edit.
Calls PATCH /v1/agent/{agentId}/draft

Arguments

string
required
The agent-id.

Options

integer
The draft’s revision when you read it. When sent, the edit is refused if the draft changed since; when omitted, it applies on top of the latest edit.
object
required
The settings to change. Omitted settings stay as they are; null clears one to the runtime default. subAgents replaces every speaker and must include main.
array
One of call, chat Repeatable.
string
string
One of SPEAK_TEXT, PLAY_AUDIO, WAIT_FOR_CALLER
string
string
string
One of OPENAI, ANTHROPIC, GOOGLE, XAI, ULTRAVOX, AWS, ELEVENLABS
string
number
integer
string
string
string
One of DEEPGRAM, OPENAI_WHISPER, SPEECHMATICS, ASSEMBLYAI, ELEVENLABS
string
array
Repeatable.
switch
integer
string
One of pipeline, provider
string
One of ALLOW, BLOCK
number
number
integer
integer
integer
integer
array
Repeatable.
array
Repeatable.
array
Repeatable.
string
string
One of NONE, AIRPORT, CHILDREN_PLAYING, CITY, COFFEE_SHOP, CONSTRUCTION, CRYING_BABY, DRIVING, LIBRARY, OFFICE, THUNDERSTORM, TRAIN
string
number
integer
integer
array

Example

Every command also takes the global options and sets one of the exit codes.