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.
We are currently using the conclude option when we remove courses from our catalog now, and I am attempting to make a 'create_or_update' pattern so if we ever try to re-add a course to a catalog again, and transmit, we can change the course back from 'concluded' to 'offer' state (using the "course[event]" option here). Currently we simply fail the create operation, because we don't check if the course exists even if in deleted / concluded state... 😞
Solved! Go to Solution.
Thanks for your reply!
I ended up looking up a root account using api, I can detect it because it has parent_account_id:null
then when I point my api to search courses for that account id instead, now I can find courses even under other subaccounts!
this solves the problem for me
we don't hold on to the course ids from canvas side in our system so we can't use any course specific apis to check if it exists. Hence we need to do a lookup,.. 😞
Have you considered downloading a course provisioning report from your root account and having your program search through CSV file to find the course? Once found, the program could use the Canvas Course ID from the provisioning report to perform the actions you need.
I do hope to automate some of my programs more by not needing to get the provisioning report, but I have made some Python scripts that work well by using the information from course provisioning reports as the starting point.
Thanks for your reply!
I ended up looking up a root account using api, I can detect it because it has parent_account_id:null
then when I point my api to search courses for that account id instead, now I can find courses even under other subaccounts!
this solves the problem for me
I'm glad to hear that performing an API call on the root account gets you all courses for sub-accounts too. That will certainly make it easier when I refine my scripts to become more automated.
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
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.