PATCH/projects/{project_id}/surveys/{survey_id}/status

Update survey status

Change a survey's lifecycle status. Flipping to `live` enables dispatch and widget serving. Flipping to `paused` suppresses triggers without deleting the definition. Returns the updated survey.

Base URLhttps://seggwat.com/api/v1

Parameters

project_idpathstringrequired

Unique identifier of the project (MongoDB ObjectId)

Example: 507f1f77bcf86cd799439011
survey_idpathstringrequired

MongoDB ObjectId of the survey

Example: 6630f1c7c2b3a40a1e9e1b22

Request Body

required

New lifecycle status.

application/json
SetSurveyStatusRequest

Request body for updating a survey's lifecycle status.

statusSurveyStatusrequired

Authoring/lifecycle status of a survey. Only `live` surveys are served by the widget or fired by the lifecycle dispatcher.

Enum:draftlivepausedarchived

Responses

Navigation