Create Assignment Group
create_assignment_groupCreate a gradebook category such as Homework or Exams in a Canvas course and return the new group with its ID, name, position and weight. Use it to build weighted grading categories.
Instructions
Create a new assignment group (a gradebook category such as Homework or Exams) in a course and return the created Canvas assignment group object, including its id, name, position and group_weight. Not idempotent: each call makes another group even when the name matches an existing one, so read list_assignment_groups first and use update_assignment_group to change a group that already exists; the new group starts empty, and assignments move into it through create_assignment or update_assignment's assignment_group_id. group_weight is the group's percent of the final grade, and it changes nothing unless the course is set to weight its final grade by assignment group — a course setting update_course can turn on. Canvas coerces a missing or non-numeric group_weight to 0. Drop rules are deliberately not accepted here: Canvas validates them against the number of active assignments in the group, which is 0 for a group that does not exist yet, so set them with update_assignment_group once the group has assignments. Requires permission to manage assignments in the course.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The assignment group name (e.g. Homework) | |
| position | No | 1-based position of this group relative to the other assignment groups | |
| course_id | Yes | The Canvas course ID | |
| group_weight | No | The group's percent of the total grade (e.g. 40 for 40%) | |
| sis_source_id | No | The SIS source ID for the group |