Create Module Item
create_module_itemAdd an item to a module: Assignment, Page, Quiz, File, Discussion, ExternalUrl, ExternalTool or SubHeader. Returns the created module item, including its new Canvas ID.
Instructions
Add an item to a module: Assignment, Page, Quiz, File, Discussion, ExternalUrl, ExternalTool or SubHeader. Returns the created module item, including its new Canvas ID. Each call adds a new item — calling it twice with the same title adds two items, not one. Which identifying field to pass depends on type: page_url for Page (addressed by slug, not ID), content_id for File, Discussion, Assignment or Quiz, external_url for ExternalUrl or ExternalTool, and neither for SubHeader. Use list_module_items to see what is already in the module, and update_module_item or delete_module_item to change or remove an item afterward. Requires instructor/TA permission to manage course content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Type of content to add | |
| title | Yes | Title of the module item | |
| page_url | No | Page URL slug (required for Page items, which are addressed by slug, not ID) | |
| position | No | Position within the module | |
| course_id | Yes | The Canvas course ID | |
| module_id | Yes | The Canvas module ID | |
| content_id | No | Canvas ID of the content (required for File, Discussion, Assignment, Quiz) | |
| external_url | No | URL for ExternalUrl or ExternalTool items |