The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December. Read our blog post for more info about this change.
Found this content helpful? Log in or sign up to leave a like!
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.
Solved! Go to Solution.
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.
-Chris
@chriscas, I was figuring it would be a string of API calls and reports to process, which definitely beats have a student worker manually open each individual course and change it one at a time. 😳 I will send you a DM and see what you have built that we might be able to adapt for our instance. Thank you!
Hi @CheleaHoldt,
The three API fields being touched for each course are:
Does this help?
-Chris
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.
-Chris
@chriscas, I was figuring it would be a string of API calls and reports to process, which definitely beats have a student worker manually open each individual course and change it one at a time. 😳 I will send you a DM and see what you have built that we might be able to adapt for our instance. Thank you!
I'd be very interested in this script as well. @chriscas I just sent you a DM here.
Karen
Chris,
Can you tell me the name of the field where this 'Term' and 'Course' is being modified?
Chelea
Hi @CheleaHoldt,
The three API fields being touched for each course are:
Does this help?
-Chris
This does help. Thank you Chris!
Community helpTo 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