Admin

Update a survey — isActive is the visibility toggle: false makes every question in it unfetchable

Changed on
patch/api/admin/questionnaire/surveys/{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/surveys/{id}
  • Auth
    HTTP bearer

Path parameters

idnumber required

Request body

namestring
isActiveboolean

The visibility toggle — false makes every question in this survey unfetchable

Example request

{
  "name": "Healthy 2.0 (renamed)"
}

Changes