Skip to main content

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.

View source

Request

Responses

Status updated (or already at the requested status).