API v1 Documentation
Client API > Response
Client API > Contacts
Client API > Display
Client API > Environment
Client API > User
Management API > Action Class
Management API > Attribute Class
Management API > Contact Attribute Keys
Management API > Contact Attributes
Management API > Contacts
Management API > Me
Management API > People
Management API > Response
Management API > Storage
Management API > Survey
Management API > Webhook
Health
Create Response
Create a response for a survey and it’s fields with the user’s responses. The userId & meta here is optional
POST
/
api
/
v1
/
client
/
{environmentId}
/
responses
Copy
curl --request POST \
--url 'http://{{baseurl}}/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)"
}'
Copy
{
"data": {
"id": "clvc3aool000p494jzjuukfzu"
}
}
Path Parameters
Body
application/json · object
Response
200
application/json
OK
The response is of type object
.
Was this page helpful?
Copy
curl --request POST \
--url 'http://{{baseurl}}/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)"
}'
Copy
{
"data": {
"id": "clvc3aool000p494jzjuukfzu"
}
}