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
identifierstringRequired

The account's unique ID.

Example: 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_boxesstringOptional

A comma-delimited string of possible answer IDs. Used by multiple choice questions.

Example: 1,23,42
preview_modestringOptional

If 'true' then nothing will be recorded in the database.

Example: 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
get
GET /submissions/{submission_udid}/answer HTTP/1.1
Host: survey.pulseinsights.com
Accept: */*
text

Last updated

Was this helpful?