Enroll a user in a course
POST/api/courses/:id/roster
Adds a single user to a course roster. Course staff (faculty or TAs) or a system admin. A brand-new member is added as STUDENT; callers don't pick the role. Purely additive: an already-enrolled member keeps their current role (changing a role, including demoting staff, is the dedicated faculty-gated role-change endpoint's job).
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 500
Enrolled.
Missing userId.
Not signed in.
Not course staff (faculty or TAs) or a system admin.
Target user not found.
The target user is inactive.
Server error.