getAllEnrollments
GET/ims/oneroster/v1p1/enrollments
Return collection of all enrollments.
Request
Query Parameters
Possible values: >= 1
and <= 2500
Default value: 100
The number of results to return
The index of the first record to return. (zero indexed)
Default value: dateLastModified
The sort query parameter allows collections to be returned in a specific order based on a single data element from the resource's core attributes. The sort parameter specifies the field to sort by (e.g., ?sort=familyName).
Possible values: [asc
, desc
]
Default value: desc
orderBy MAY be used in the request to ask for the collection to be ordered ascending (asc) or descending (desc).
Please find the following link to see information on filtering here.
Responses
- 200
- 400
- 401
- 403
- 404
- 500
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
enrollments object[]required
Possible values: [active
, tobedeleted
]
Date string (ISO 8601)
user objectrequired
Possible values: [org
, course
, term
, class
, user
, lineItem
]
class objectrequired
Possible values: [org
, course
, term
, class
, user
, lineItem
]
school objectrequired
Possible values: [org
, course
, term
, class
, user
, lineItem
]
{
"enrollments": [
{
"status": "active",
"dateLastModified": "string",
"sourcedId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"role": {},
"user": {
"type": "org",
"sourcedId": "string"
},
"class": {
"type": "org",
"sourcedId": "string"
},
"school": {
"type": "org",
"sourcedId": "string"
}
}
]
}
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error