Update a canned response

Updates a template's title and default language, and at the same time either edits one of its language entries or adds a new one. Send is_new: true to add an entry; otherwise canned_response_text_uuid selects the entry to edit, and an id you leave out simply matches nothing while the call still succeeds. The text and the template are written in separate steps and no check is made that a row actually changed, so a 200 does not prove an entry was found. An id that does not match a canned response on your account changes nothing, but the response is still 200 with an empty object.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Id of the template to update.

Body Params
boolean

true to add a new language entry; omit it or send false to edit an existing one.

string

New name for the template.

string

New fallback language for the template.

string

Language of the entry being added or edited.

string

Body text of the entry being added or edited.

string

Audio value for the entry being added or edited.

string

Id of the entry to edit when is_new is not set; an omitted id matches nothing rather than failing.

Responses
200

The update was applied, or nothing matched. The body is an empty object either way.

401

Missing or invalid API key.

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json