How can I tell via API whether or not a teacher can still add people to a course

Jump to solution
vkg
Community Contributor

Hi, folks.  I'm looking for an efficient way to tell via API whether or not a teacher in a given course is still eligible to add people to it.  My first thought was that the workflow state returned by  /v1/courses would do it but it looks like courses where the term end date has passed still show as available (not completed).

Anyone else figured this out?

Thanks in advance,

Victoria

1 Solution
vkg
Community Contributor
Author

Hey, Brian.  Tx again for your generous help at this.  We're still puzzling out a solution.  We've found that "end_at" is only populated when the date has been entered into the course itself -- NOT when the term has ended. So for our courses "end_" = NULL both for the ongoing term and for prior terms.

So to summarize we're finding that courses have "workflow_state":"available" yet in response to an enrollment action API we get back the message {"message":"Can't add an enrollment to a concluded course."}.  I suspect we need to look at our term dates via  /v1/accounts/{account_id}/terms


View solution in original post

0 Likes