Enables the retrieval of questions for a specific survey form. This provides access to question groups (number, title, and message) and questions (number, type, etc.).
https://api.ideasystem.org/v1/forms/1/questions
/v1/forms/1/questions
The response will be a collection of questions that make up the form associated with the ID given. It will have an HTTP 200 status as well as a JSON
body. If the form_id
cannot be found an HTTP 404 (Not Found) will be returned. All other errors will result in an HTTP 500 (Internal Server Error).
"data": { ... }
"number": 12
"type": "open"
"title": "Course Comparison"
"message": "On the next three items, compare this course with others you have taken at this institution."
"response_options": [...]
type
is scaled
.
"questions": [ ... ]
"id": 123
"number": 2
"text": "What is your favorite color?"
"type": "scaled"
"response_options": [ ... ]
type
is scaled
.
This request will get all the questions associated with the form with ID 1234.
GET /v1/forms/1234/questions
HTTP 200 { "data": [ { "number": 1, "type": "open", "title": "This is an open question group title.", "message": "This is an open question group message.", "response_options": [] "questions" : [ { "id": 123, "number": 1, "text": "This is an open question 1", "type": "open" } ] }, { "number": 2, "type": "scaled", "title": "Scaled Question Group Title 1", "message": "This is a scaled question group where each question has different response options.", "response_options": [], "questions" : [ { "id": 124, "number": 1, "text": "This is a scaled question 1", "type": "scaled", "response_options": [ { "value": 1, "description": "This is option 1", "abbreviation": "O1", "is_excluded": false }, { "value": 2, "description": "This is option 2", "abbreviation": "O2", "is_excluded": false }, { "value": 3, "description": "This is option 3", "abbreviation": "O3", "is_excluded": false }, { "value": 4, "description": "Cannot Judge", "abbreviation": "CJ", "is_excluded": true } ] }, { "id": 125, "number": 2, "text": "This is a scaled question 2", "type": "scaled", "response_options": [ { "value": 1, "description": "Small", "abbreviation": "SM", "is_excluded": false }, { "value": 2, "description": "Medium", "abbreviation": "ME", "is_excluded": false }, { "value": 3, "description": "Large", "abbreviation": "LA", "is_excluded": false } ] } ] }, { "number": 3, "type": "scaled", "title": "Scaled Question Group Title 2", "message": "This is a question group where all questions have the same response options.", "response_options": [ { "value": 1, "description": "This is option 1", "abbreviation": "O1", "is_excluded": false }, { "value": 2, "description": "This is option 2", "abbreviation": "O2", "is_excluded": false }, { "value": 3, "description": "This is option 3", "abbreviation": "O3", "is_excluded": false }, { "value": 4, "description": "Cannot Judge", "abbreviation": "CJ", "is_excluded": true } ], "questions" : [ { "id": 126, "number": 1, "text": "This is a scaled question 1", "type": "scaled", "response_options": [] } ] }] }