API Call to Publish or to Unpublished a Course
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2018
07:24 AM
Is there a Canvas REST API that can be used to Publish a course or Unpublish a Course?
Solved! Go to Solution.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2018
07:59 AM
Hey @gibbonsd ,
When creating a course using the course api you can set the state of the course. You can also use the course update api (Courses - Canvas LMS REST API Documentation ) where you can set course[event] parameter to offer, which published the course.
The code I have written auto publishes the course upon creation and then I use the #unpublished courses report to find courses that have been unpublished by the instructor and go publish them for the instructor 5 days out from the start.
Hope this helps.
Brian