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"
Hello, I'm building a standalone app that integrate with CanvasI) - What are the requirements (and cost if any) for receiving an API developer key issued by Instructure? - Are Instructure-issued keys enabled globally in all Canvas organizations? or will there need to be institution-by-institution enablement? Thanks
Hi everyone, I am seeking some insight into how Canvas LMS handles HTTP errors and how they are reflected in the logs versus the user interface. We are currently observing the following behavior in our environment: Log-only errors: We are seeing 500 (Internal Server Error) and 503 (Service Unavailable) errors recorded in…
I'm currently integrating an LTI tool and attempting to use the Activity.id.history https://canvas.instructure.com/doc/api/file.tools_variable_substitutions.html#activity-id-history variable, but I'm experiencing issues getting it to work properly. What I've Done: Added the Activity.id.history variable to my Developer…
I looked through the LTI Variable Substitutions documentation and while there are variable substitutions available for Canvas.term.name and Canvas.term.id (which is the Canvas incremented ID like "104"), I was surprised to see there was no option for Canvas.term.sisSourceId I tried testing other possible variants that may…
Summary:The Learning Mastery Gradebook allows drag-and-drop reordering of outcome columns, and this triggers a call to /api/v1/courses/:course_id/assign_outcome_order. The API returns 204 No Content (success), but the column order does not persist after page refresh. Steps to Reproduce: Open Learning Mastery Gradebook for…