Error when enrolling user through API, getting concluded course error message to an available course
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm trying to enroll an user through the API using the following endpoint
POST /api/v1/sections/:section_id/enrollments
However I'm getting a 400 response with the following body message
{:message=>"Can't add an enrollment to a concluded course."}
But when I go to Canvas there is no signal that this course is concluded, I don't even have the option to unconclude the course according to this guide I've found.
https://community.canvaslms.com/t5/Admin-Guide/How-do-I-unconclude-a-course-in-an-account/ta-p/189#U...
Where can I double check whether indeed the course is concluded or not?
Thanks in advance for the help 🙂
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am just passing through and a Canvas novice myself, but I think I can answer your last question. If you make a web call to get that course there should be a workflow_state https://letstalkscience.instructure.com/doc/api/courses.html#method.courses.show I believe that aligns to whether or not is concluded.
Courses can also have end dates, so maybe that's it?
Just some shots in the dark, hope it helps.