Roll back to a revision
Copies an old revision’s configuration into a new draft revision. The agent keeps its id, name and archive state. A draft takes no ordinary calls; try it with a browser test call (channel: "web" and test: true on POST /v2/calls), then publish it.
Both fields are required. if_revision is the agent’s current revision: the revision of the last response that returned the agent. revision is the one to copy.
Authorizations
Body
Response
Revision 1, as a new draft
Other languages callers may speak. Speech recognition listens for them as well as the primary language. Optional; the primary language is never repeated here. Always returned; [] when there are none.
4hi, en, gu, mr, bn, ta, te, kn, ml, pa, od The agent's booking window: which days a caller may book. With date awareness on, every day a caller names is marked as bookable or not before the agent replies (after the window, a closed weekday or date, already past), the agent is told the window in its prompt and offered the nearest bookable day, so it never confirms a day you cannot take. Absent when not set. A PATCH replaces the whole block (omitted fields take their defaults); null removes it. Present only on agents that have one.
Lines this agent speaks that will come out wrong on calls, worked out each time the agent is read and never stored; absent when there are none. Today one kind: romanized_speech, a line in an Indian language other than Hindi typed in English letters, which the voice reads with English sounds. Checked: first_message and system_prompt's quoted lines (not on a flow agent, which does not use them), end_call.message when end_call is enabled, voicemail.message when voicemail.action is message, every flow node's greeting and the lines its prompt quotes.
20