Canvas and Mastery are experiencing issues due to an ongoing AWS incident. Follow the status at AWS Health Dashboard and Instructure Status Page
I'm a bit frustrated with adding LTI-tools that always have default course navigation = true.
I don't have any possibility to manually switch this to false?
My wish is that we can turn it on course by course, but authenticated on the institution level.
I'm also trying to do this trough the API, but since I'm new to the API I've not succeeded.
I'm using "Advanced REST client" with the following PUT-statement:
What am i doing wrong?
Am I attacking this the wrong way?
Any pointers would be highly appreciated
Solved! Go to Solution.
I think your general approach is okay.
I'm not sure that you can authenticate your API call like you are doing -- but I don't know anything about "Advanced REST client". What do you get back from your API call?
If you generate an API token, then with curl its simply:
curl -X PUT $server/api/v1/accounts/self/external_tools/58 \
-H "Authorization: Bearer $token" \
-F 'course_navigation[default]=false'
@lars_vemund_sol , we've shared this question with the https://community.canvaslms.com/groups/admins?sr=search&searchId=7a3cc444-8da7-49ba-8929-5dc7d1dcda3... and https://community.canvaslms.com/groups/canvas-developers?sr=search&searchId=df5d03ff-9fa8-4457-8822-... groups to attract the eyes of your fellow experts.
Have you tried course_navigation[default]=disabled instead of course_navigation[default]=false? I recently hid an LTI via API using that command.
Both false and disabled will work.
It many calls you can actually use anything you want, except true. That is, any value that is not 'true' is treated as 'false'.
I think your general approach is okay.
I'm not sure that you can authenticate your API call like you are doing -- but I don't know anything about "Advanced REST client". What do you get back from your API call?
If you generate an API token, then with curl its simply:
curl -X PUT $server/api/v1/accounts/self/external_tools/58 \
-H "Authorization: Bearer $token" \
-F 'course_navigation[default]=false'
Thank you.
I'll look into it later today, but i think you helped me with both the question in hand and a general understanding of using the api.
Få Outlook for Android<https://aka.ms/ghei36>
@lars_vemund_sol would you be able to provide a bit more detail about how you were to accomplish this? We have an app that is presenting itself in the same way and we would prefer it be an option that is enabled by course.
To 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.