Bulk Publish/Unpublish Courses via REST API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2018
09:11 AM
I have been tasked with unpublishing and publishing courses on a daily basis. Using the Advanced REST client, I am able to publish a course while it is in the unpublished state, however, I cannot unpublish a course once it is published.
I am using the PUT method for updating a course
When I run the request below, I am getting an OK response, but the course stays published. The request is as follows I am using to unpublish:
https://<domain>/api/v1/courses/<course>?event=claim&<accesstoken>
Isn't it beautiful when you can find your own answers...Correct syntax below:
https://<domain>/api/v1/courses/<course>?course[event]=claim&<accesstoken>