Easymailing
Surveys

Delete a survey

DELETE /audiences/{audienceUuid}/surveys/{uuid}

DELETE/audiences/{audienceUuid}/surveys/{uuid}

Deletes the survey and all its answers. Active surveys must be closed first (400). A survey that is no longer a draft cannot be deleted while segments or automations use it (409 with their names).

When to use: To remove a survey you no longer need, together with its answers.

When not to use: To stop collecting answers but keep the results use survey_close.

Side effects: The survey and all its answers are deleted and cannot be recovered through the API. Campaigns that had it selected are unlinked without warning: a draft or scheduled campaign will go out with an empty survey block, and sent campaigns lose their survey statistics panel.

Permissions: Requires the manager role or higher, or the marketing.surveys.delete 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

application/problem+json

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