Environments for LTI configuration - via API calls?

Jump to solution
carols
Community Explorer

I've created a Turnitin LTI tool for my canvas site via a post to the external tools API 

We have an account on the Sandbox Turnitin system that we want to point at from our beta and test Canvas environments.

I've seen from documentation that it's possible to specify different URLs for different environments for external tools via the Extended Tool configurations documented at

Importing Extended Tool Configurations - Canvas LMS REST API Documentation 

and this is discussed in a recent post here:

Question about environments in LTI configuration 

My question is - can I define a different URL for our test and beta environment via a call to the external tool API, or do I have to do it via XML as in the documents cited above?

Many thanks for any pointers on how to do this

Labels (1)
1 Solution
carols
Community Explorer
Author

I have found an answer to my own question:

In the External Tool API there are parameters that allow XML configuration information to be passed via the API call.

config_type allows you to specify that you are providing some XML configuration for the tool, and specifies where this XML will be provided, either "by_url" or "by_XML"

config_xml allows you to provide the XML tool configuration

Please note that this will override any tool settings you provide via the custom_fields array.

View solution in original post