Update a survey question

Updates a question in place. At least one field must be present, and omitted fields keep their current values. actions adds or replaces only the languages you send, and each entry needs exactly one of question_text or custom_actions. Changing a language's text regenerates its audio in the voice you send, else the voice that language's prompt already uses, else the survey's default_voice, else fr-ca-csagent-5. An unknown voice is a 400 with code tts_voice_invalid and changes nothing. The question's fields and its language entries are saved separately, not as one transaction, so a failure can leave one saved without the other, and this call does not republish the survey's call routing.

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

The survey's UUID.

string
required

UUID of a question that belongs to that survey.

Body Params
number

New position for the question; a number another question already holds is rejected with 400.

string
enum

How the answer is collected: rating, boolean, digit or custom. Not checked against that list.

Allowed:
number | null

Replacement lowest accepted answer.

number | null

Replacement highest accepted answer.

valid_responses
array of strings | null

Replacement list of the exact answers the question accepts.

valid_responses
boolean

Whether the caller must answer before moving on.

actions
object

Language entries to add or replace, keyed by language code. Each needs exactly one of question_text or custom_actions, plus an optional voice ID; an unknown voice is a 400 with code tts_voice_invalid. Languages you leave out stay as they are.

Responses

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