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.
Solved! Go to Solution.
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
I believe that would be workflow_state that you are looking for.
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.
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.
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