Bulk Course Participation Change

Jump to solution
Community Member

Is there an existing API call that will allow for me to select all courses in a given Term and change their Participation to "Term" if they are set as "Course"?

In the past, we allowed instructors to choose their own participation settings. We now have this feature locked. When the new/empty course shells are created, the participation defaults to "Term". However, then instructors import their content from a previous term, the settings are overridden and if the previous version was set to the "Course", this setting gets changed from the default of "Term" to "Course".

We are trying to have a uniform management of student access dates in our courses.

I have found a Live API call that can do this for each course, but was curious if anyone had any guidance on an API call that could handle this for all courses in a given term in-bulk. Thanks for your guidance.

Labels (1)
2 Solutions
Community Coach
Community Coach

Hi @eric_evans1,

I don't think there is a single call to do this.  What you will likely need to do is string some API calls and/or reports together to basically get every course_id you need to update, then call the courses API for each course and change the setting.  I actually have a script written in python that does this and more, and we run it once daily for our whole instance.  I might be able to pare it down to just fixing date settings, shoot me a direct message on here if you're interested.


View solution in original post


Hi @CheleaHoldt,

The three API fields being touched for each course are:

  • course['restrict_enrollments_to_course_dates']
  • course['start_at']
  • course['end_at']

Does this help?


View solution in original post