Join a course by registration code
POST/api/courses/join
Enrolls the signed-in user in a course via its registration code, as a STUDENT. Users never learn that an unpublished/archived course exists (masked as 404). Global admins can't self-enroll, and the registration window must be open.
Auth: requires STUDENT
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Joined; returns a message and the course.
Invalid code, admin join attempt, already enrolled, or registration not open.
Not signed in.
Enrollment was dropped; re-enrollment is a staff action.
Course not found (also returned for unpublished/archived courses).
Server error.