The roster API allows you to retrieve student enrollment for an LMS course(s) for a particular school. This roster data can enable a school's bookstore to better manage the school's digital course materials program when the school is utilizing the VitalSource LTI tool to access their digital materials.
This endpoint returns the enrolled students for a specific course.
Verb/URI
https://launch.vitalsource.com/api/v4/courses/:course_id/rosters
Data Definitions
Name
|
Usage
|
Description
|
Data Type
|
Example
|
Required
|
---|---|---|---|---|---|
page | URL param / Message body | page number of roster request, default to page 1 | integer | /rosters?page=1 | No |
per_page | URL param / Message body | number of roster records returned per request, default is 100 | integer 1-1000 | /rosters?per_page=1000 | No |
created_from | URL param / Message body | returns roster records that have been created at or since this time | ISO-8601 date/time | /rosters?created_from=2019-06-07T20:25:22Z | No |
created_until | URL param / Message body | returns roster records that have been created at or until this time | ISO-8601 date/time | /rosters?created_until=2019-06-11T20:25:22Z | No |
updated_until | URL param / Message body | returns roster records that have been updated at or since this time | ISO-8601 date/time | /rosters?updated_from=2019-06-07T20:25:22Z | No |
updated_from | URL param / Message body | returns roster records that have been updated at or until this time | ISO-8601 date/time | /rosters?_updateduntil=2019-06-11T20:25:22Z | No |
id | Message body | VitalSource identifier for the course user | integer | 12345678910 | N/A |
tenant_id | Message body | VitalSource identifier for the school | integer | 12345678910 | N/A |
course_id | URL path / Message body | VitalSource identifier for the course | integer | 12345678910 | N/A |
first_name | Message body | First name of the course user | string | John | N/A |
last_name | Message body | Last name of the course user | string | Doe | N/A |
bookshelf_email_address | Message body | Email address associated with the course user's Bookshelf account | string | doe.john@emaildomain.com | N/A |
access_token | Message body | Bookshelf token used to perform transactions on behalf of user | string |
e6d12345678daf3c8dba3260f |
N/A |
reference_id | Message body | Reference identifier passed to VitalSource from the LMS used to create the Bookshelf user | string |
st23haz95536wr3mii4p |
N/A |
guid | Message body | Global User ID, produced on user creation by VitalSource | string |
YDAASDFGHJKLNRHPJ3Q6 |
N/A |
lms_api_id | Message body | Unique user identifier sourced from the LMS platform | string |
s6nohm1bb47b9pzky4mi |
N/A |
lms_username | Message body | Unique username sourced from the LMS platform | string | jdoe11 | N/A |
lti_user_id | Message body | Unique user id sourced from the LTI payload | string |
s6nohm1bb47b9pzky4mi |
N/A |
lms_email_address | Message body | User email address sourced from the LTI payload. This may be different than the bookshelf_email_address | string | john.doe@school.edu | N/A |
sis_id | Message body | Unique SIS identifier sourced from the LMS | string | 710901181 | N/A |
role | URL param / Message body | User's role within the course | string | learner | No |
active | URL param / Message body | Used to indicate if a user's enrollment in the course is active or if the user has withdrawn from the course | Boolean | true | No |
last_synced | Message body | Indicates the date of the last sync with course & user data | ISO-8601 date/time |
2018-12-04T15:59:59Z |
N/A |
created_at | Message body | Indicates the date the roster record was created in the VitalSource system | ISO-8601 date/time |
2018-12-04T15:59:59Z |
N/A |
updated_at | Message body | Indicates the date the roster record was last updated in the VitalSource system | ISO-8601 date/time |
2018-12-04T15:59:59Z |
N/A |
Request Headers
X-VitalSource-API-Key: ABCDEFGHIJKLMNOP
Accept: application/json
Content-type: application/json
Response
Response Body
Successful Response Message
HTTP: 200 OK
Error Codes
HTTP Status
|
Message
|
Notes
|
---|---|---|
401 | Unauthorized | The API key provided is not associated with any LTI integration |
404 | Not found | The request parameters provided do not correspond to any known data |
Comments
Please sign in to leave a comment.