A

get

Submit an answer to a non free text question. Records the answer in the db unless preview_mode == 'true'. All parameters except (identifier question_id answer_id text redirect preview_mode) will be recorded as ContextData in the submission.

Path parameters
question_idstringRequired

The question's unique ID.

answer_idstringRequired

The possible answer's unique ID.

Query parameters
identifierstringRequired

The account's unique ID.

Example: PI-1234567890
textstringOptional

Text of survey response. Required if free text question.

redirectstringOptional

A URL to redirect to after submission.

urlstringOptional

The URL from which the submission was made. If no redirect parameter is provided then this will be used as the redirect URL.

udidstringOptional

The device's unique ID.

Example: 00000000-0000-4000-f000-000000000001
preview_modestringOptional

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

Example: true
Responses
200
Successful response.
text/plain
get
GET /q/{question_id}/a/{answer_id} HTTP/1.1
Host: survey.pulseinsights.com
Accept: */*
[
  "Thank you!"
]

Last updated

Was this helpful?