Enroll a Student in a Published Course via the API
Grant a student access to a published course with a single API call. Re-enrolling a student who already has access restores their active status.
The enrollments endpoint lets you grant a student access to a specific course. You can call this endpoint multiple times for the same student and course, it is idempotent. If the student already has an enrollment record for that course (including a previously revoked one), the API sets their access status back to active rather than creating a duplicate record. Both the student and the course must exist in your academy, and the course must be published.
The student identified by studentId must be an active member of your academy. A 404 is returned if they are not found.
The course identified by course_id must exist in your academy and have a published status. A 404 is returned if it does not exist; a 400 is returned if it exists but is not published.
Removes a student’s access to a single course by revoking the enrollment. The enrollment record is kept but its access status is set to revoked, 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.