active rather than creating a duplicate record. Both the student and the course must exist in your academy, and the course must be published.
Enroll a student
Path parameters
UUID of the student to enroll. The student must already be a member of your academy, add them first using POST /api/v1/students if needed.
Body parameters
UUID of the course to enroll the student in. The course must belong to your academy and be published. Draft courses return a
400 error.Constraints
- The student identified by
studentIdmust be an active member of your academy. A404is returned if they are not found. - The course identified by
course_idmust exist in your academy and have a published status. A404is returned if it does not exist; a400is returned if it exists but is not published.
Response fields
Returns the enrollment record with a201 status code.
Example request
Example response
Error responses
Revoke an enrollment
Removes a student’s access to a single course by revoking the enrollment. The enrollment record is kept but its access status is set torevoked, so the student loses access while the record is preserved. Re-enrolling later through POST /api/v1/students/:studentId/enrollments restores access on the same record.
Path parameters
UUID of the student whose enrollment you are revoking.
UUID of the enrollment record to revoke. This is the
id returned when the enrollment was created.
