API Call to Publish or to Unpublished a Course

Jump to solution
gibbonsd
Community Participant

Is there a Canvas REST API that can be used to Publish a course or Unpublish a Course?

Labels (1)
1 Solution
bneporadny
Community Champion

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

View solution in original post