Update Assignment Group
update_assignment_groupModify an existing course assignment group’s name, position, weight, or drop rules while leaving omitted fields unchanged. Use it to repair weighted gradebooks and set lowest/highest score drops.
Instructions
Update an existing assignment group in a course and return the updated Canvas assignment group object. Only the fields passed are changed — anything omitted keeps its current value, so repeating the same call leaves the group in the same state, unlike create_assignment_group, which always makes a new group. Use it to repair a weighted gradebook: group_weight sets the group's percent of the final grade (which changes nothing unless the course is set to weight its final grade by assignment group — a course setting update_course can turn on), and rules drops the lowest or highest scores in the group, with never_drop exempting specific assignments. Canvas rejects a drop rule larger than the number of active assignments in the group, and refuses a group_weight or rules change with an authorization error — not a validation error — when any assignment in the group falls inside a closed grading period, unless the caller is an account admin. Read list_assignment_groups for the current values and the group ID first. Requires permission to manage assignments in the course.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New assignment group name | |
| rules | No | Drop rules for the group; replaces the existing rules wholesale | |
| position | No | New 1-based position 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 | |
| assignment_group_id | Yes | The Canvas assignment group ID to update |