Add question
add_questionAppend a question with its answer options. single_select / multi_select / ranking need answers; matrix needs subquestions (statements) AND answers (the scale). Piping: write {{Q}} anywhere in the text to insert the respondent's answer to an EARLIER question (ids from list_piping_sources). Returns the updated questionnaire plus created_qid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| help | No | Help text shown under the question (max 255 chars). | |
| type | Yes | Question type: single_select (one answer), multi_select (several answers), free_text, datepicker, slider, star_rating, net_promoter (0-10 NPS), ranking (rank the answers), zipcode, matrix (statements × scale). | |
| title | No | Short question code, e.g. Q5 (auto-generated when omitted). | |
| answers | No | Answer options (strings or objects). | |
| question | Yes | Question text (plain text or simple HTML; may contain {{Q<qid>}} piping tokens). | |
| mandatory | No | Respondent must answer (default true). | |
| multi_min | No | multi_select: minimum number of answers a respondent must pick. | |
| survey_id | Yes | Survey id (see list_surveys, or the survey_id returned by a create tool). | |
| np_max_txt | No | net_promoter: label at 10. | |
| np_min_txt | No | net_promoter: label at 0. | |
| multi_limit | No | multi_select: maximum number of answers a respondent may pick. | |
| rating_limit | No | star_rating: number of stars (scale size). | |
| subquestions | No | matrix only: the statements (rows). | |
| ranking_limit | No | ranking: how many answers must be ranked. | |
| freetext_limit | No | free_text: maximum characters. | |
| range_multi_min | No | slider: minimum value. | |
| randomise_answers | No | Shuffle the answer order per respondent (pin exceptions with fixed_position). | |
| range_multi_limit | No | slider: maximum value. | |
| range_multi_min_txt | No | slider: label at the minimum end. | |
| range_multi_limit_txt | No | slider: label at the maximum end. |