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:
/api/v1/courses/?event=claim&" rel="nofollow noopener noreferrer">https:///api/v1/courses/?event=claim&
Isn't it beautiful when you can find your own answers...Correct syntax below:
/api/v1/courses/?event=claim&" style="color: #2989c5; text-decoration: none; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;" rel="nofollow noopener noreferrer">/api/v1/courses/" target="test_blank" rel="nofollow noopener noreferrer">https:///api/v1/courses/?course[event]=claim&
@brian_t_anders ,
Can you provide an update on the status? Your last part sounds like it was an update where you answered your own question but then there's another "update" where you're having problems with Advanced Rest Client. Since none of those are timestamped, I'm not sure whether the problem is completely solved or still exists for ARC? If the problem is completely resolved, can you mark the question as answered?
On a related note, since you're using Advanced REST Client, you may want to go to the headers section and add your authorization token there. It saves having to add it to every query and it remembers it, which makes it so much nicer.
What you're doing works, but the top-level API Documentation page recommends the header while saying the query string is supported.
API authentication is done with OAuth2. If possible, using the HTTP Authorization header is recommended. Sending the access token in the query string or POST parameters is also supported.
Hi Brian
Is this true for the course that won't unpublish (taken from API documentation):
"A course cannot be unpublished if students have received graded submissions"
Canvas Data Services sent out an alert that a course was concluded (because the course was concluded) and the status of each user in the UI is set to complete, however, the enrollments API endpoint shows the status of each user in the course as active. Is this a common issue? Have I misinterpreted how the individual…
How can one track Canvas Media use without having the reports available from Canvas Studio? Checking API endpoints and the Data 2 schema, there do not seem to be dedicated Canvas Media endpoints. Am I missing some? A method I've considered is using the body field of the wiki_pages table, as this contains the html code of…
Hello, I'm trying to utilize an API call to pull completed certificates and was hoping to download and store the certs as a backup. I can successfully run the API call but it will not allow me to view the certificate unless I access the URL while signed into an account where it's "my" cert. Is there a permissions setting…
UI for weekly progression idea that rest in the Schedule tab of the **K-12 UI** of Canvas it's incomplete and I really would not take it and push it into instance but I am going to post it here because in the past people like @James && @robotcars || @Steve_25 have had terrific input in the past... maybe w/their eyes and…
I have a new React + Flask webapp. It has its own login for users to start using the app. I have added this as an external tool in Canvas. What I want initially is to see of canvas users can start using the webapp without having to login if they click on the external tool link in a canvas course. I have 2 methods…