ListClassEnrollments
GET /tp-api/classes/:classId/enrollments
Retrieve a list of enrollments for a class.
Path Parameters
- classId string required
Class ID
Query Parameters
- cursor string
Cursor to return items after a specific position in the list.
- limit integer
Possible values:
>= 1
and<= 100
Default value:
10
Maximum number of items to return.
- skip integer
Query to retrieve the items starting from that position in the dataset.
Header Parameters
- training-provider-id string required
Responses
- 200
- 400
Default Response
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- id string required
learner object required
id string requiredfirstname string requiredlastname string requireduniqueSystemIdentifier string requiredemail string requiredphone string requiredemployer object required
- anyOf
- MOD1
id string requiredname string required- anyOf
- enrolledAt date-time required
The enrollment timestamp, should be in ISO8601 format.
- ]
[
{
"id": "string",
"learner": {
"id": "string",
"firstname": "string",
"lastname": "string",
"uniqueSystemIdentifier": "string",
"email": "string",
"phone": "string"
},
"employer": {
"id": "string",
"name": "string"
},
"enrolledAt": "2024-10-23T16:51:09.174Z"
}
]
Default Response
- application/json
- Schema
- Example (from schema)
Schema
- anyOf
- MOD1
- MOD2
statusCode number requiredcode stringError code
error string requiredError key
message string requiredError message
error object required
key string requiredError key
message string requiredError message
{
"statusCode": 0,
"code": "string",
"error": "string",
"message": "string"
}
Loading...