Login

Enrolments

When a user is enrolled in a course, their progress is tracked and can be analyzed in reports. Use these endpoints to search for and create enrollments.

Endpoints

Get enrolments

GET /api/v1/enrolments

Returns a list of all the enrolments in your workspace. The enrolments are returned sorted by enrolment date in ascending order. Filter enrolments using the query parameters listed in the table.

Query parameters

FieldTypeDescriptionRequiredDefaultPattern
coursestringCourse IDNonull\d+
groupstringGroup IDNonull\d+
userstringUser IDNonull\d+
searchstringsearch by name, email, course code or titleNo""[\w\-\s]+
sortstringSort byNo"created"(created)
pagestringWhich page of items to display, starting with zeroNo"0"\d+
lengthstringItems per page (0-100)No"10"\d+

Responses

CodeDescription
200Returned when successful

Create enrolments

POST /api/v1/enrolments

Enrol existing users into a course or via a group.

FormData properties

FieldDescriptionRequired
userID of the UserNo
courseID of the CourseNo
groupID of the GroupNo
roleUser's roleNo

Responses

CodeDescription
201Returned when successful

Remove enrolments

DELETE /api/v1/enrolment

Remove enrolled users from a course or group.

Query parameters

FieldTypeDescriptionRequiredDefaultPattern
userstringID of the UserNonull\d+
coursestringID of the CourseNonull\d+
groupstringID of the GroupNonull\d+
rolestringUser's role. Specify `teacher` to remove a trainer from a groupNo"student"(teacher|student)

Responses

CodeDescription
201Returned when successful

Batch enrolments

POST /api/v1/enrolments/batch

Enrol one or more existing learners into one or more existing courses or groups. You can specify courses or groups. You must specify students.

Body properties

FieldTypeDescriptionRequired
coursesinteger[]Yes
groupsinteger[]Yes
studentsinteger[]Yes

Responses

CodeDescription
204Returned when successful

Batch enrol groups

POST /api/v1/enrolments/group/batch

Enrol a group into multiple courses.

Body properties

FieldTypeDescriptionRequired
groupintegerID for the group you want to enrol into multiple coursesNo
coursesinteger[]IDs for the courses in which you want to enrol the group.No

Responses

CodeDescription
204Returned when successful