Create new question

Allows for the creation of a question.

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

Payload containing question's attributes necessary for creation.

label
object
required

Localized label for the question, mapped by language.

description
object

Localized description for the question, mapped by language.

string
enum
required

The type of the question, defined by the QuestionType enum.

Allowed:
string
enum
required

The mode the question belongs to, defined by the DawaMode enum.

Allowed:
boolean
Defaults to false

Flag indicating whether the question must be answered.

options
array of objects

List of selectable options. Required for select and multiselect questions, forbidden for any other type.

options
numberConfig
object

Numeric configuration. Required for number questions, forbidden for any other type.

number
Defaults to 0

The order of the question in the list.

boolean
Defaults to true

Flag indicating whether the question is enabled.

categories
array of strings

A list of identifiers of categories associated with the question.

categories
products
array of strings

A list of identifiers of products associated with the question.

products
Responses

400

Invalid question parameters

401

Unauthorized

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