Create a response for a survey and it’s fields with the user’s responses. The userId & meta here is optional
curl --request POST \
--url http:///%7B{baseurl}%7D/api/v1/client/{environmentId}/responses \
--header 'Content-Type: application/json' \
--data '{
"data": {
"hs8yd14l9h8u353tjmv6rzaw": "clicked",
"tcgls0063n8ri7dtrbnepcmz": "Who? Who? Who?"
},
"finished": false,
"meta": {
"action": "test action",
"source": "Postman API",
"url": "https://postman.com"
},
"surveyId": "{{surveyId}}",
"userId": "{{userId}} (optional)"
}'
{
"data": {
"id": "clvc3aool000p494jzjuukfzu"
}
}
OK
The response is of type object
.
Was this page helpful?
curl --request POST \
--url http:///%7B{baseurl}%7D/api/v1/client/{environmentId}/responses \
--header 'Content-Type: application/json' \
--data '{
"data": {
"hs8yd14l9h8u353tjmv6rzaw": "clicked",
"tcgls0063n8ri7dtrbnepcmz": "Who? Who? Who?"
},
"finished": false,
"meta": {
"action": "test action",
"source": "Postman API",
"url": "https://postman.com"
},
"surveyId": "{{surveyId}}",
"userId": "{{userId}} (optional)"
}'
{
"data": {
"id": "clvc3aool000p494jzjuukfzu"
}
}
Create a response for a survey and it’s fields with the user’s responses. The userId & meta here is optional
curl --request POST \
--url http:///%7B{baseurl}%7D/api/v1/client/{environmentId}/responses \
--header 'Content-Type: application/json' \
--data '{
"data": {
"hs8yd14l9h8u353tjmv6rzaw": "clicked",
"tcgls0063n8ri7dtrbnepcmz": "Who? Who? Who?"
},
"finished": false,
"meta": {
"action": "test action",
"source": "Postman API",
"url": "https://postman.com"
},
"surveyId": "{{surveyId}}",
"userId": "{{userId}} (optional)"
}'
{
"data": {
"id": "clvc3aool000p494jzjuukfzu"
}
}
OK
The response is of type object
.
Was this page helpful?
curl --request POST \
--url http:///%7B{baseurl}%7D/api/v1/client/{environmentId}/responses \
--header 'Content-Type: application/json' \
--data '{
"data": {
"hs8yd14l9h8u353tjmv6rzaw": "clicked",
"tcgls0063n8ri7dtrbnepcmz": "Who? Who? Who?"
},
"finished": false,
"meta": {
"action": "test action",
"source": "Postman API",
"url": "https://postman.com"
},
"surveyId": "{{surveyId}}",
"userId": "{{userId}} (optional)"
}'
{
"data": {
"id": "clvc3aool000p494jzjuukfzu"
}
}