Update a survey question

Updates a question in place; at least one field must be present and omitted fields keep their current values. actions upserts only the languages you send, leaving the rest alone, and each entry needs exactly one of question_text or custom_actions. Changing the text regenerates that language's audio using the voice you send, the survey's default voice, or alloy. The structural fields and the language entries are written concurrently and are not transactional, and the call routing is not republished here.

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, with an optional voice; languages you leave out are untouched.

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