Drop or re-enroll a student
PATCH/api/courses/:id/roster/:userId/status
Drop or re-enroll a student in a course. A DROPPED student keeps their roster row and all their work (submissions, grades, group membership, audience/override rows) but loses access: canAccessCourse denies them, so they can't see or interact with the course, and it disappears from their own lists. Staff review surfaces still show them, marked "Dropped". Re-enrolling flips them back to ENROLLED and restores everything. This is distinct from removal (DELETE .../roster/[userId]): removal is a hard delete for a student with no work; drop is the reversible action for a student who has work. Only a global admin or a course FACULTY member may do it (TAs may not, matching the other roster mutations), and it applies only to STUDENT rows.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 500
Status updated (or already at the requested status).
Invalid body, or the target is not a student.
Not signed in.
Caller is not a system admin or a course faculty member.
Roster entry not found.
Course is archived.
Server error.