add_module_item
Add assignments, files, quizzes, pages, or external links to a specific Canvas course module. Specify content details to organize and position items within the module.
Instructions
Add an item to a module.
IMPORTANT: content_id required for File, Discussion, Assignment, Quiz, ExternalTool. page_url required for Page. title required for SubHeader, ExternalUrl.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Item title (required for SubHeader, ExternalUrl; optional for others) | |
| indent | No | Indentation level (0-4) | |
| new_tab | No | Open external links in new tab (default: False) | |
| page_url | No | URL slug of the page (required for Page type) | |
| position | No | Position within module (1-indexed) | |
| item_type | Yes | One of: File, Page, Discussion, Assignment, Quiz, SubHeader, ExternalUrl, ExternalTool | |
| module_id | Yes | Target module ID | |
| content_id | No | Canvas ID of the content (required for File, Discussion, Assignment, Quiz, ExternalTool) | |
| external_url | No | URL for ExternalUrl items | |
| course_identifier | Yes | Course code or Canvas ID | |
| completion_requirement_type | No | One of: must_view, must_submit, must_contribute, min_score, must_mark_done | |
| completion_requirement_min_score | No | Minimum score (only for min_score type) |