Skip to main content

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.

View source

Request

Responses

The preview groups plus operations and a basis token.