create_groups
Batch-creates student groups with unique case-sensitive names. Optionally assign category, email domains for auto-add, and enrollment email settings.
Instructions
Create student groups. This is a BATCH operation.
Each item needs a `name` of 1 to 100 characters, UNIQUE within the organization
and CASE-SENSITIVE - "Partners" and "partners" are two different groups, which
is a good way to end up with an accidental duplicate.
Optional per item:
`category_id` obfuscated StudentGroupCategory id, which must
belong to this organization or the row fails
`rule_email_domains` bare domains like example.com (no @) that
auto-add learners to this group when they
sign up; duplicates are collapsed
`send_course_enrollment_email` whether members get enrollment email
Within one batch, the first item to claim a name wins and later ones fail.
Requires the `student-groups:write` OAuth scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groups | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | ||
| note | Yes | ||
| total | Yes | ||
| failed | Yes | ||
| succeeded | Yes |