Questions
Questions define what has been asked to get the feedback. They give the meaning for the different feedback options. Questions are company-specific.
Summary of available resource patterns
Code | URL |
---|---|
GET | /v1/questions |
GET | /v1/questions/:key |
GET | /v1/questions/:key/surveys |
Question
JSON presentation of question.
Properties
Name | Description |
---|---|
key | The identifier of the question |
name | The question |
locale | IETF BCP 47-formatted language tag The default language of the question. For example: en-US. |
Example JSON objects
Single question without surveys.
GET
/v1/questions
Lists the company’s questions.
Parameters
Name | Description |
---|---|
offset | optional , zero-based numeric value The index of the first result returned and used to paginate results. |
limit | optional , numeric value in range 1..100 The number of results returned and used to paginate results. Default value is |
Example requests and responses
GET
/v1/questions?offset=0&limit=5
Result
Name | Description |
---|---|
Success | Object containing two properties: meta for additional information (of pagination etc.) and data for a list of questions. Empty list when company does not have any questions. |
GET
/v1/questions/:key
Retrieves a specific question.
Parameters
Name | Description |
---|---|
key | required , identifier of the question |
Example requests and responses
GET
/v1/questions/3
Result
Name | Description |
---|---|
Success | Question |
Error | HTTP status code 404 when no question is found. |
GET
/v1/questions/:key/surveys
Lists surveys for specific question.
Parameters
Name | Description |
---|---|
key | required, identifier of question |
state | optional , one of active , ended , starting When present, the result only contains surveys in given state. |
offset | optional , zero-based numeric value. The index of first result returned and used to paginate results. |
limit | optional , numeric value in range 1..100 . The number of results returned and used to paginate results Default value is 50 and maximum 100. |
Examples
GET
/v1/questions/3/surveys
Result
Name | Description |
---|---|
Success | Object containing two properties: meta for additional information (of pagination etc.) and data for a list of folders. |
Error | HTTP status code 404 when no folder is found. |