Admin
Create a new question (with optional inline options)
Changed onpost/api/admin/questionnaire/questions
Request
- Base URLhttps://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
- URLhttps://api.rewritelifestyle.ai/api/admin/questionnaire/questions
- AuthHTTP bearer
Request body
Example request
{
"surveyId": 1,
"questionText": "What type of bariatric surgery did you have?",
"questionKey": "surgery_type",
"answerType": "single_choice",
"minItems": 5,
"section": 1,
"displayOrder": 1,
"isRequired": true,
"conditionalOnQuestionId": 12,
"conditionalOnOptionIds": [
1,
2,
3
],
"options": [
{
"optionText": "Gastric Sleeve",
"optionValue": "gastric_sleeve",
"displayOrder": 1
}
]
}Changes
- info
added the new optional request property
- info
added the new optional request property
- info