Create Questionnaire
Create a simple linear questionnaire. Send form_elements in display order; branching and repeatable groups require the Console. Defaults to published v1.
form_elements array in the order users should answer the questions. Didit builds the internal questionnaire graph for you.
The API supports simple linear questionnaires only. Do not send graph, branches, next, or conditional rules.
Required fields
titleis the internal questionnaire name.languagesmust includeen.form_elementsmust contain at least one question.- Each form element needs an
element_typeand a translatedlabel.
Element types
Use lowercase values such asshort_text, multiple_choice, email, file_upload, or date_picker. Uppercase enum values such as SHORT_TEXT are also accepted.
For dropdown, single_choice, and multiple_choice, add options. If you omit an option value, Didit generates one from the label.
questionnaire_id. Store it, because you will use it as questionnaire_uuid when you add the questionnaire to a workflow.Authorizations
Body
Create a simple linear questionnaire. The API converts form_elements into the internal questionnaire graph.
Internal name for the questionnaire.
Languages included in every label. Must include en.
["en"]Questions in the exact order users should see them. Branching and conditional fields are not supported.
1Default language. Must be included in languages.
"en"
Omit this field to create a published questionnaire ready for workflows.
draft, published Response
Questionnaire created. The response includes the questionnaire_id — store it to reference this questionnaire from workflows or future update/delete calls.
Full questionnaire detail returned from GET, POST (create) and PATCH (update) endpoints.
Unique identifier of the questionnaire. Use this id when referencing the questionnaire from a workflow or in subsequent update/delete requests.
Graph structure with start_node and nodes map.
Questionnaire content grouped into sections (derived from the graph).
Stable identifier that groups all versions of the same questionnaire.
draft, published True when the questionnaire can still be edited in place (draft versions).