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.
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.
List of custom question answer records
Access denied to this resource.
Resource not found.
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'
[- {
- "id": 3155,
- "created": "2021-11-25T15:01:29+13:00",
- "modified": "2021-12-25T15:01:29+13:00",
- "submission_id": 1741,
- "question_id": 982,
- "answer": "I acknowledge",
- "answer_multi": [
- [
- "First floor",
- "Second floor"
]
]
}
]
Returns a custom question answer record filtered by the passed in ID.
The custom question answer element matching the passed in ID
Access denied to this resource.
Resource not found.
curl -i -X GET \ https://api.whosonlocation.com/v1/custom-questionnaire/submission/answer/:id
{- "id": 3155,
- "created": "2021-11-25T15:01:29+13:00",
- "modified": "2021-12-25T15:01:29+13:00",
- "submission_id": 1741,
- "question_id": 982,
- "answer": "I acknowledge",
- "answer_multi": [
- [
- "First floor",
- "Second floor"
]
]
}