Skip to main content

Update Survey Status

PATCH/v2/project/{project_key}/survey/{survey_id}/status

Set a survey live, pause it, or end it.

Body parameters​

ParameterTypeRequiredDescription
statusstringyeslive, paused or ended
  • live: visitors on the survey's pages start being asked. Needs a paid plan, at least one question, and fewer than 20 live surveys in the project. A survey that already reached its limit.total can't go live until the limit is raised.
  • paused: only a live survey can be paused. Set it live again to resume.
  • ended: a live or paused survey stops for good. Its results stay.

Example​

curl -X PATCH "https://api-{region}.mida.so/v2/project/YOUR_PROJECT_KEY/survey/42/status" \
-H "Authorization: Bearer YOUR_GENERATED_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "status": "live" }'

Success response​

The survey as saved, with its new status and started_at or ended_at, in the same shape as Get Survey Details.

Error responses​

StatusMeaning
400A status other than live, paused or ended; a change the survey's current status doesn't allow; no questions; the response limit already reached; or 20 surveys already live
401Invalid or missing API key
403Surveys need a paid plan, or the key's user is a Viewer (for changes)
404Project or survey not found. A survey from another project is not found