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 working on the curl script to associate and un-associate courses with a blueprint course. We have been successful using the Canvas course ID but prefer to use our own configuration of the course SIS_ID. Below is a snip of what we have and it states success on push however the association/un-association appear not be be affected. Does anyone have any thoughts or ideas?
curl https://url.instructure.com/api/v1/courses/sis_course_id:BP_ACCT101/blueprint_templates/default/upda... -X PUT -H 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXX' -d 'course_ids_to_remove[]=sis_course_id:40001.201840.1'
@lmsadmin5 , I have run into the same thing. From what I can tell, the sis_course_id can only be used as part of the end point URL and not as one of the variables that you send. I would love for someone to prove me wrong, though.
You might try adding a feature request to see if this option can be added.
That seems to be correct: the array can only contain the numeric Canvas id of the course. Under the hood there's no lookup; it just takes whatever you give it, assumes it's an integer id, and tries to unlink it from the template.
For some reason, it does seem to always return a successful return code, though. There is validation for ids_to_add, but not for ids_to_remove. That might be worth a bug report.
Thank you both for the validation. We believe we can use the SIS_Course_ID within the URL for the actual Blueprint but not for the course we want to remove the association. I've not put in a bug report so will try and do that soon. In the meantime, we have a script that will grab the Canvas course ID and cross reference this ID to our course ID.
I'm gathering from this thread that there is no way to run a report on which courses are associated with a blueprint. Is this correct or has someone come up with an idea. Also, any further progress towards a UI or script to remove all or any unassociated courses. I find that when we run new course batches (we run new courses for each part of term) that somehow some blueprints have some associations and some do not. I am not quite sure why if I run a new course the blueprints sync back to the associations automatically. Suggestions or thoughts on a fix?
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.