AnsweredAssumed Answered

Bulk Publish/Unpublish Courses via REST API

Question asked by brian.t.anders@mcpsmd.net on Jun 8, 2018
Latest reply on Jun 15, 2018 by James Jones

 

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>

Outcomes