Skip to main content
PATCH
Updates a prompt-based agent and deploys the change immediately. Only the fields you include in the body are changed.
Flow agents cannot be modified via the API — PATCH on a conversationalFlow agent returns 422. Edit flow agents in the dashboard.

Path Parameters

string
required
The agent’s unique identifier (UUID).

Body Parameters

All optional — include only what you want to change.
string
string
string
The agent’s main language: he-IL, en-US, ar-EG, ru-RU or el-GR (short forms accepted, stored as the full tag). The voice must speak it, and it may not also appear in secondary_languages. Omit (or send null) to leave it unchanged.
string
Voice display name (Sapir, Steve, Sivan, Saar, Ori, Yael, Guy, Gefen, Gal, Gabriel).
string
array
Replaces the provided-variable set. Same item shape as Create Agent.
array
Replaces the extracted-variable set. Same item shape as Create Agent.
array
Replaces the agent’s webhook list (up to 5). A webhook you leave out is deleted; [] removes them all. Omit the field to leave webhooks unchanged. Same item shape as Create Agent, plus:Secrets and header values are never returned, so sending back the webhooks array from a GET response leaves every webhook unchanged.
integer
One of 10, 15, 20.
string[]
Replaces the agent’s additional languages (any of he-IL, en-US, ar-EG, ru-RU, el-GR other than the main); [] leaves the main language only. Omit it (or send null) to leave them unchanged. The resulting voice must speak every language — and changing voice alone is refused if the new voice cannot speak the agent’s current languages.
object
When the agent ends the call itself — both properties are required — or null to turn it off. Omit it to leave the setting unchanged.
string
service: the agent answers for your business. customer: it calls a business on someone’s behalf and speaks as that business’s customer. Omit it to leave the setting unchanged.

Response

The updated Agent object.