Preview a random group assignment
POST/api/courses/:id/group-sets/:setId/random-assign
Computes a balanced random-assignment PREVIEW without writing anything. The client shows the preview, then applies it by POSTing the returned operations to the memberships endpoint together with basis as expectedBasis (so a change by another staff member since the preview is caught). Never creates groups: a set with no groups returns 400. Blocked when the set is locked. Course staff or admin.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 500
The preview groups plus operations and a basis token.
The set has no groups.
Not signed in.
Not course staff or a system admin.
Group set not found in this course.
The set is locked.
Server error.