Publish Survey Guidance
There is no dedicated publish endpoint in the developer page reference.
Publishing is done by creating a collector for an existing survey.
Create Collector (Publish Path)
- Method:
POST - URL:
https://api.surveyol.com/v1/survey/{surveyId}/collector
Parameters
type(string)title(string)
Allowed type Values
Web LinkEmailWebsite EmbeddingMobile SMS
cURL Example
curl --request POST \
--url https://api.surveyol.com/v1/survey/f04e6345-dd11-4342-8975-0a718d853505/collector \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"type": "Web Link",
"title": "My Web Link"
}'
Response Example
{
"id": "47323f35-197e-4707-a310-6684ab2932bc",
"type": "Web Link",
"title": "My Web Link",
"url": "https://www.surveyol.com/s/Z4VX28A"
}