
Enables the retrieval of survey information for a given survey. This is survey definition data and NOT survey response data; to get survey response data you must use the Report end-points.
Dates will be provided in ISO 8601 format. For example, 2012-02-13T01:34:52Z will be
used instead of February 2, 2012 1:34:52a UTC. This can be parsed in Java using the SimpleDateFormat and this pattern
"yyyy-MM-dd'T'HH:mm:ss'Z".
new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z").format(new Date());
https://api.ideasystem.org/v1/survey/1234
/v1/survey/1234The response will be an HTTP 200 along with a JSON body that contains the surveys that match the given query parameters. If an error occurs with the parameters that are passed in, an HTTP 400 will be returned along with an error message in a JSON body. All other errors will return an HTTP 500 (Internal Server Error).
"id": 1"group_id": 1"src_name": "IOL3""src_id": "1""src_group_id": "1""institution_id": 1/institutions end-point.
It allows the user of this data to look-up the meta-data about the institution this survey is associated with (name, FICE, etc.).
"institution_name": "IDEA Center"/institutions end-point.
"year": 2012"term": "Fall""includes_gap_analysis": true"demographic_group_ids": []/demographic_groups end-point.
Optional.
"end_date": "2012-09-06T00:00:00Z""start_date": "2012-09-06T00:00:00Z""creation_date": "2012-09-06T00:00:00Z""course": { ... }"title": "Intro to Biology""number": "101""local_code": "01 02 345"days": "MWF""time": "14:30""src_id": "01-23-456-789""subject": "BIO""type": "undergraduate""delivery_mode": "online""term_type": "semester""start_date": "2016-01-01""end_date": "2017-01-01""section": { ... }"title": "Intro to Biology""number": "101""src_id": "01-23-456-789""subject": "BIO""start_date": "2016-01-01""end_date": "2017-01-01""delivery_mode": "online""days": "MWF""time": "14:30""local_code": "01 02 345"info_form": { ... }"id": 123/forms end-point.
It allows the user of this data to look-up the meta-data about the form including the questions.
"startDate": "2012-09-06T00:00:00Z""endDate": "2012-09-06T23:59:59Z""discipline_code": 1611"respondents": [ ... ]"first_name": "Bob""middle_name": "Lee""last_name": "Smith""title": "Dean of Medicine""position_code": 1234"src_id": "9876-5432-10""email": "someName@someInstitution.edu""role": "Primary""sex": "Male""employment_status": "Full-time""appointment": "Tenured""races": []"rater_form": { ... }"id": 123/forms end-point.
It allows the user of this data to look-up the meta-data about the form including the questions.
"startDate": "2012-09-06T00:00:00Z""endDate": "2012-09-06T23:59:59Z""custom_question_groups": [ ... ]"number": 1 "type": "open""title": "Question Group 1""message": "question group 1""questions": [ ... ]"id": 1"number": 12"text": "Likert question 8""type": "scaled""response_options": [ ... ]"value": 1"description": "Very Low""abbreviation": "Very Low""is_excluded": false"response_options": [ ... ]"value": 1"description": "Very High""abbreviation": "Very High""is_excluded": falseThis request will retrieve the survey information for a survey with ID 123.
GET /v1/survey/123
HTTP 200
{
"id": 123,
"group_id": 234,
"src_name": "IOL3",
"src_id": "4321",
"src_group_id": "5432",
"institution_id": 54209,
"year": 2012,
"term": "09/03/2012",
"includes_gap_analysis": true, // true if this includes a self-rating and false otherwise
"demographic_group_ids": [ 654, 657, 658, 662 ], //Optional item that defines what demographic groups were selected.
"end_date": "2012-09-25T00:00:00Z",
"start_date": "2012-09-06T00:00:00Z",
"creation_date": "2012-09-05T14:20:07Z",
"course": {
"title": "Introduction to REST APIs",
"number": "101",
"local_code": "012345", // Institution defined local code
"days": "MWF",
"time": "14:30",
"src_id": "01-23456789-0011",
"subject": "REST",
"type": "undergraduate",
"delivery_mode": "Face to Face",
"term_type": "semester",
"start_date": "2017-01-01",
"end_date": "2017-05-01",
"section": {
"title": "RESTful APIs Lab",
"number": "101a",
"src_id": "01-23456789-0012",
"subject": "REST",
"start_date": "2017-01-01",
"end_date": "2017-05-01",
"delivery_mode": "hybrid",
"days": "TU",
"time": "08:30",
"local_code": "54321" // Institution defined local code
}
},
"info_form":
{
"id": 456,
"start_date": "2012-09-06T00:00:00Z",
"end_date": "2012-09-25T00:00:00Z",
"discipline_code": 1600,
"respondents":
[
{
"first_name": "Test",
"middle_name": "My",
"last_name": "Subject",
"title": "Dean",
"position_code": 12,
"src_id": "0123-4567890",
"email": "some.person@institution.edu",
"role": "primary",
"sex": "female",
"employment_status": "full-time",
"appointment": "tenured",
"races": [
"Hispanic",
"Pacific Islander"
]
}
]
},
"rater_form":
{
"id": 457,
"start_date": "2012-09-06T00:00:00Z",
"end_date": "2012-09-25T00:00:00Z",
"custom_question_groups":
[
{
"number": 1,
"type": "open",
"title": "Open Question Group Title",
"message": "This is an open question group message",
"questions":
[
{
"id": 123,
"number": 1,
"text": "This is an open question 1",
"type": "open",
"response_options": []
}
]
},
{
"number": 2,
"type": "scaled",
"title": "Scaled Question Group Title",
"message": "This is a scaled question group message",
"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
}
]
}, ...
]
},...
]
}
}