Bulk change group-set memberships
POST/api/courses/:id/group-sets/:setId/memberships
Atomically assigns, moves, and removes students within a group set. Each operation sets one student's group (or removes them when groupId is null). A move is a single upsert on the (set, student) unique key, so a student is never transiently in two groups. Assign/move targets must be active STUDENTs; removals are allowed even for inactive members. When expectedBasis is provided and no longer matches the set's current memberships, the change is rejected with 409 so a stale client cannot silently overwrite another staff member's edit. Blocked when the set is locked. Course staff or admin.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 500
The updated group set detail.
Invalid operations or an unknown group or ineligible student.
Not signed in.
Not course staff or a system admin.
Group set not found in this course.
The set is locked or the memberships changed since expectedBasis.
Server error.