Skip to main content

Function: setGroupingGroups()

function setGroupingGroups(
context,
siteUrl,
groupingId,
groupIds
): Promise<{
changed: string;
groupIds: number[];
}>;

Defined in: areas/participants/groups.ts:230

Makes a grouping's groups exactly groupIds, as its groups page adds and removes them. Groups of other courses aren't offered there and are left out, named in changed. Returns the groups afterwards.

Parameters​

ParameterType
contextBrowserContext
siteUrlstring
groupingIdnumber
groupIdsnumber[]

Returns​

Promise<{ changed: string; groupIds: number[]; }>