Custom question answers

When someone answers a custom question in a questionnaire submission, OnLocation records their submission and links it to the questionnaire submission ID and custom question ID.

Use the API to view the answers for all or specific custom questions.

List all custom question answers

Returns a list of custom questionnaire submission answer records. The endpoint is limited to a maximum of 10,000 records.

A comma separated list of tag:value search parameters, a colon separator performs an exact match, a percent separator performs a starts-with search and greater/less than search number/date ranges.

Request
query Parameters
q
string <string>

Filter by any custom questionnaire submission answer.

Example: q=submision_id:0
order
string <string>

Specifies an element to order by. To order in reverse order, prepend the element with '-'.

Example: order=question_id: 982
limit
integer <int32>

Limits the amount of records to return

Example: limit=10
page
integer <int32>

Specifies which page of results to return, most effective when used together with the 'limit' parameter

header Parameters
If-Modified-Since
string <int32>

A UTC timestamp (yyyy-mm-ddThh:mm:ss). Only entities created or modified since this timestamp will be returned e.g. 2009-11-12T00:00:00

Responses
200

List of custom question answer records

403

Access denied to this resource.

404

Resource not found.

get/custom-questionnaire/submission/answer
Request samples
curl -i -X GET \
  'https://api.whosonlocation.com/v1/custom-questionnaire/submission/answer?q=string&order=string&limit=0&page=0' \
  -H 'If-Modified-Since: string'
Response samples
[]

Retrieve a custom question answer

Returns a custom question answer record filtered by the passed in ID.

Request
path Parameters
id
required
integer <int32>

ID of the custom questionnaire submission to look for

Responses
200

The custom question answer element matching the passed in ID

403

Access denied to this resource.

404

Resource not found.

get/custom-questionnaire/submission/answer/{id}
Request samples
curl -i -X GET \
  https://api.whosonlocation.com/v1/custom-questionnaire/submission/answer/:id
Response samples
{}