Update Assignment
update_assignmentModify an existing Canvas assignment's name, due dates, points, or HTML description, with optional edit guards that prevent overwriting changes. Use it to safely update one assignment field or fragment.
Instructions
Update an existing assignment in a course.
description replaces the whole HTML description. To change one fragment, pass find and replace instead. Optional guards (any of them makes the tool fetch the assignment first, refuse rather than write on a failed check, and read it back after): expect_updated_at refuses if the assignment changed since you read it; find/replace edits one fragment of the current description; require lists strings that must already be present in it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | No | Exact HTML fragment that must occur exactly once in the current description | |
| name | No | New assignment name/title | |
| due_at | No | New due date in ISO 8601 format | |
| lock_at | No | New lock date in ISO 8601 format | |
| replace | No | Text that replaces find (may be empty to delete it) | |
| require | No | Strings that must already be present in the current description | |
| published | No | Whether to publish the assignment | |
| unlock_at | No | New available date in ISO 8601 format | |
| description | No | New HTML description | |
| grading_type | No | One of: points, letter_grade, pass_fail, percent, not_graded | |
| peer_reviews | No | Enable peer reviews | |
| assignment_id | Yes | Assignment ID to update | |
| points_possible | No | New maximum points | |
| submission_types | No | Comma-separated types (online_text_entry, online_url, online_upload, discussion_topic, none, on_paper, external_tool) | |
| course_identifier | Yes | Course code or Canvas ID | |
| expect_updated_at | No | The assignment's updated_at when you read it; refuse if it has changed | |
| allowed_extensions | No | Comma-separated file extensions (e.g., "pdf,docx,txt") | |
| assignment_group_id | No | Assignment group ID to move to | |
| automatic_peer_reviews | No | Auto-assign peer reviews |