Administration/Questionnaire Templates
Create a question template
Changed onCreates a question of the admin question-template library with its options. title, type and categoryId are required, and the category must exist: 400 invalid_question_template_category otherwise (legacy stored any id). description, unit, attachmentFileId and dependentQuestionOptionId left out, "" or null store none; an unknown attachmentFileId stores none, as in legacy, and a newly uploaded one is moved to the private bucket. Each option needs a value key (null or "" stores none); no options store one empty option, as in legacy. Responds 201 with the question in the { data, metadata } envelope. Gated by the same admin-question-templates:update permission legacy used: there is no create permission.
post/api/admin/questionnaires/question-templates
Request
- Base URLhttps://api.retraced.com (the document declares no server; this is the origin it was published from)
- URLhttps://api.retraced.com/api/admin/questionnaires/question-templates
- Authnone declared
Request body
Response
Default Response
Changes
- info
endpoint added
- info