Reactivate a completed enrollment via API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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