Easymailing
Surveys

Activate a survey

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

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

Activates a draft survey so it can be linked to campaigns and answered. Requirements: at least one question; a poll question needs at least two options; on page surveys every choice question needs at least two options. Once activated, questions become immutable.

When to use: When the draft is complete and you want to link the survey to campaigns and receive answers. After this its questions cannot be changed.

When not to use: To change questions, do it before activating, with update_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/activate" \  -H "X-Auth-Token: YOUR_API_KEY"
null