Easymailing
Surveys

Close a survey

PUT /audiences/{audienceUuid}/surveys/{uuid}/actions/close

PUT/audiences/{audienceUuid}/surveys/{uuid}/actions/close

Closes an active survey: it stops accepting answers. The email block of already-sent campaigns keeps rendering empty and the public page shows the closed state.

When to use: To stop accepting answers once the survey has served its purpose, keeping its results. A closed survey can be deleted.

When not to use: To remove the survey and its answers use delete_survey.

Permissions: Requires the manager role or higher, or the marketing.surveys.write capability.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

audienceUuid*string

UUID of the audience the survey belongs to. Get it with list_audiences.

uuid*string

UUID of the survey. Get it with list_surveys.

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X PUT "https://api.easymailing.com/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/surveys/b7d2f6a3-1c48-4e9b-8a05-6f3e2d1c9b74/actions/close" \  -H "X-Auth-Token: YOUR_API_KEY"
null