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!
If I have an external LTI/API based tool is it possible to have it informed when a course containing it is copied? There doesn't currently seem to be a webhook endpoint that does this on:
Hi Matthew --
I think you're correct that there's currently no way for your tool to be informed in real-time when it's been copied into a new course, but there are some LTI Variable Substitutions that you can use to be able to tell when you're receiving an LTI launch into a copied tool.
Take a look at this page in the API docs: <!-- - Canvas LMS REST API Documentation
Specifically, search for "Canvas.course.previousContextIds" and "Canvas.course.previousCourseIds". In theory, you should be able to use those variables to copy local data from a previous context into the current context/course.
Hope this helps!
--Colin
Thanks, this maybe the best I can do. The problem is that the use may not select to copy the LTI tool into the site and so it never gets launched in the new context, therefore I never get to know about the copy. Secondly event if it gets copies the end user may never launch it.
What I'm wanting todo it cleanup some calendar events that an LTI tool put into an site using the Canvas API, if this site then gets copies those events don't necessarily make sense in the copy so I'd like to clean them up.
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