Bulk Publish/Unpublish Courses via REST API

brian_t_anders
Community Contributor

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>

Labels (1)