curl --request POST \
--url https://api.pickfu.com/v1/surveys/{id}/publish \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"id": "<string>",
"name": "<string>",
"country": "<string>",
"sampleSize": 123,
"numResponses": 123,
"status": "<string>",
"targeting": [
"<string>"
],
"reporting": [
"<string>"
],
"tags": [
{
"id": 123,
"name": "<string>"
}
],
"project": {
"id": "<string>",
"name": "<string>"
},
"surveyUrl": "<string>",
"surveyIntent": "<string>",
"questions": [
{
"id": "<string>",
"type": "<string>",
"variant": "<string>",
"value": "<string>",
"translation": "<string>",
"options": [
{
"id": "<string>",
"label": "<string>",
"value": "<string>",
"type": "<string>",
"translation": "<string>",
"product": {
"asin": "<string>",
"title": "<string>",
"price": 123,
"rating": 123,
"reviews": 123,
"image": "<string>"
},
"imageSetDirection": "<string>",
"mockupType": "<string>"
}
],
"context": {
"type": "<string>",
"value": "<string>",
"translation": "<string>"
},
"responses": [
{
"id": "<string>",
"explanation": "<string>",
"translation": "<string>",
"chosenOption": "<string>",
"score": 123,
"clicks": [
{
"number": 123,
"xCoord": 123,
"yCoord": 123
}
],
"rounds": [
{
"number": 123,
"option": "<string>"
}
],
"media": "<string>",
"mediaTranscription": "<string>",
"matchup": {
"option1": "<string>",
"option2": "<string>"
},
"respondent": [
{
"trait": "<string>",
"value": "<string>"
}
]
}
],
"ai": {}
}
]
}
}Publishes a draft survey and begins collecting responses from the target audience.
unpublished (draft) statusAfter publishing, the survey status changes to pending or in-progress and credits are deducted from your account.
curl --request POST \
--url https://api.pickfu.com/v1/surveys/{id}/publish \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"id": "<string>",
"name": "<string>",
"country": "<string>",
"sampleSize": 123,
"numResponses": 123,
"status": "<string>",
"targeting": [
"<string>"
],
"reporting": [
"<string>"
],
"tags": [
{
"id": 123,
"name": "<string>"
}
],
"project": {
"id": "<string>",
"name": "<string>"
},
"surveyUrl": "<string>",
"surveyIntent": "<string>",
"questions": [
{
"id": "<string>",
"type": "<string>",
"variant": "<string>",
"value": "<string>",
"translation": "<string>",
"options": [
{
"id": "<string>",
"label": "<string>",
"value": "<string>",
"type": "<string>",
"translation": "<string>",
"product": {
"asin": "<string>",
"title": "<string>",
"price": 123,
"rating": 123,
"reviews": 123,
"image": "<string>"
},
"imageSetDirection": "<string>",
"mockupType": "<string>"
}
],
"context": {
"type": "<string>",
"value": "<string>",
"translation": "<string>"
},
"responses": [
{
"id": "<string>",
"explanation": "<string>",
"translation": "<string>",
"chosenOption": "<string>",
"score": 123,
"clicks": [
{
"number": 123,
"xCoord": 123,
"yCoord": 123
}
],
"rounds": [
{
"number": 123,
"option": "<string>"
}
],
"media": "<string>",
"mediaTranscription": "<string>",
"matchup": {
"option1": "<string>",
"option2": "<string>"
},
"respondent": [
{
"trait": "<string>",
"value": "<string>"
}
]
}
],
"ai": {}
}
]
}
}OAuth2 access token obtained via the authorization flow. Include in the Authorization header as: Bearer {access_token}
Survey ID