Your Community is getting an upgrade!
Read about our partnership with Higher Logic and how we will build the next generation of the Instructure Community.
Found this content helpful? Log in or sign up to leave a like!
I'm using the API doc here to attempt to re-activate an enrollment that's in the completed state:
https://canvas.instructure.com/doc/api/enrollments.html#method.enrollments_api.reactivate
I can confirm I'm formulating the URI and the request exactly as documented, but I keep getting a 400: Bad Request error response. Should this work for a completed enrollment?
For reference, the http client being used is PowerShell's Invoke-Webrequest cmdlet. An example URI is:
https://<domain>.instructure.com/api/v1/courses/47594/enrollments/4381761/reactivate
Solved! Go to Solution.
Hi @matt2,
Taking a look at a previous discussion around this issue at Deleting and restoring enrollments via API - Instructure Community - 516051, it seems like you can't use the reactivete endpoint for a concluded enrollment, only an inactive one. It sounds like you'd need to just create a new enrollment via the API to basically unconclude the enrollment.
-Chris
Hi @matt2,
Taking a look at a previous discussion around this issue at Deleting and restoring enrollments via API - Instructure Community - 516051, it seems like you can't use the reactivete endpoint for a concluded enrollment, only an inactive one. It sounds like you'd need to just create a new enrollment via the API to basically unconclude the enrollment.
-Chris
Thanks @chriscas I think that is the answer I am looking for!
To interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign InTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign In