cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
yaach
Community Member

Equivalent on status on Course API

Jump to solution

Migrating from SIS import to Course API. On SIS import there is the status column that sets the status of the course (active, inactive). What is the equivalent by creating a course with Course API? I can't find it on the docs.

Labels (3)
1 Solution
MattHanes
Community Champion

Oh sorry, I didn't realize you wanted it published. That's not what "active" does in the SIS import. You want to send a parameter called "offer" which is boolean. True is published and False is unpublished. The "offer" parameter is described on this page: Courses - Canvas LMS REST API Documentation  

View solution in original post

4 Replies
MattHanes
Community Champion

I believe that would be workflow_state that you are looking for.

MattHanes
Community Champion

I just wanted to add that you don't have to pass that parameter. By default, a course will be created in an "unpublished" workflow_state which is the equivalent of when it's created as "active" via the SIS import. 

yaach
Community Member

Tried that but nope. I need the course to be published when the call is done. I tried workflow_state:available, but did not publish it.

MattHanes
Community Champion

Oh sorry, I didn't realize you wanted it published. That's not what "active" does in the SIS import. You want to send a parameter called "offer" which is boolean. True is published and False is unpublished. The "offer" parameter is described on this page: Courses - Canvas LMS REST API Documentation