400 errors from Canvas API when using static links
We've been using static links in Box to send config.xml files to the Canvas API for a number of years now without issue. Sometime near the beginning of this year, the Canvas API started returning 400 errors when using Box static links in our API calls. The exact same file will work when using another service with the link publicly available (i.e. Google Drive). Did something change?
Example call:
curl -X POST \
'https://{{canvas_instance}}/accounts/{{account_id}}/external_tools' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'X-IU-Authorization: {{api_key}}' \
-H 'cache-control: no-cache' \
-d '{ "name": "Unlock Course",
"consumer_key": "canvas.lti.courseunlocker",
"shared_secret" : "",
"config_type": "by_url",
"config_url": "https://iu.box.com/shared/static/94unpurt11haakrww51fb6bp3z5rxxfa.xml" }
'
Please sign in to leave a comment.
Comments
2 comments