Remove a user from a course
DELETE/api/courses/:id/roster/:userId
Removes a user from a course roster. Permission is tiered: the shared wrapper admits global admins and course faculty only (TAs and students are rejected up front); the remaining rule (a faculty member may not remove another faculty member) is enforced here (a global admin may). Two safety rules block the removal outright: the user must have no submissions in the course, and a course can't lose its last faculty member.
Request
Responses
- 200
- 400
- 401
- 403
- 500
Removed; returns how many roster rows were deleted.
User has submissions, or is the only faculty member.
Not signed in.
Caller's role may not remove this user.
Server error.