Admin

Create a new survey (e.g. a future H20-03 group-wide survey)

Changed on
post/api/admin/questionnaire/surveys

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/surveys
  • Auth
    HTTP bearer

Request body

keystring required

Stable key — question.survey_id resolution and app clients reference this, not the id

namestring required
isActiveboolean

Defaults to true — an inactive survey's questions become unfetchable immediately

Example request

{
  "key": "healthy_2_0",
  "name": "Healthy 2.0",
  "isActive": true
}

Changes