Create Discussion Topic
create_discussion_topicCreate and publish a discussion topic in a Canvas course so students can view it immediately or on a scheduled delayed post date. Use it to start course conversations with a title and message.
Instructions
Create and publish a discussion topic in a course.
The topic is always created published (there is no draft option here), so students can see it on creation unless delayed_post_at schedules it for later. Unpublishing afterwards with update_discussion_topic does not undo that initial visibility; if the topic must not be seen yet, use delayed_post_at or confirm with the user first. If create_announcement failed, do not post that content here instead: report the failure, because re-posting it publishes the message somewhere the user did not choose.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Discussion topic title | |
| pinned | No | Pin this discussion topic (default: False) | |
| lock_at | No | ISO 8601 datetime to auto-lock the discussion | |
| message | Yes | Discussion topic body content | |
| delayed_post_at | No | ISO 8601 datetime to schedule posting | |
| course_identifier | Yes | Course code or Canvas ID | |
| require_initial_post | No | Students must post before seeing others (default: False) |