Answer
get
Submits an answer to a survey question. Records the answer in the database UNLESS preview_mode is 'true'.
Path parameters
submission_udidstringRequired
The survey submission's unique ID.
Query parameters
identifierstringRequiredExample:
The account's unique ID.
PI-1234567890
question_idstringRequired
The question ID.
answer_idstringOptional
Required by single choice questions, slider questions, and NPS questions.
text_answerstringOptional
Required if question is a free text question.
next_question_idstringOptional
Required if question is a custom content question.
check_boxesstringOptionalExample:
A comma-delimited string of possible answer IDs. Used by multiple choice questions.
1,23,42
preview_modestringOptionalExample:
If 'true' then nothing will be recorded in the database.
true
Responses
200
Successful response. If survey has only one question and "show results instead" is enabled, then returns an object of poll results. Otherwise '{}'.
application/javascript
Responsestring
400
Error response.
text/plain
get
GET /submissions/{submission_udid}/answer HTTP/1.1
Host: survey.pulseinsights.com
Accept: */*
text
Last updated
Was this helpful?