Admin

Update a question

Changed on
put/api/admin/questionnaire/questions/{id}

Request

  • Base URL
    https://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.rewritelifestyle.ai/api/admin/questionnaire/questions/{id}
  • Auth
    HTTP bearer

Path parameters

idnumber required

Request body

surveyIdnumber
questionTextstring
questionKeystring
answerTypestring
minItemsnumber
allowsCustomInputboolean
sectionnumber
displayOrdernumber
isRequiredboolean
isActiveboolean
conditionalOnQuestionIdnumber
conditionalOnOptionIdsstring[]

Example request

{
  "surveyId": 1,
  "questionText": "Updated question text",
  "questionKey": "updated_key",
  "answerType": "multi_choice",
  "minItems": 5,
  "allowsCustomInput": true,
  "section": 2,
  "displayOrder": 5,
  "isActive": true,
  "conditionalOnQuestionId": 12,
  "conditionalOnOptionIds": [
    1,
    2,
    3
  ]
}

Changes

    • info

      added the new optional request property

    • info

      added the new optional request property