cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
lars_vemund_sol
Community Contributor

Removing app from course navigation

Jump to solution

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:

 https://username:password@xxxx.instructure.com/api/v1/accounts/self/external_tools/58?course_navigat... 

What am i doing wrong?

Am I attacking this the wrong way?

Any pointers would be highly appreciated Smiley Happy 

1 Solution
pklove
Community Champion

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'

View solution in original post

6 Replies
tdelillo
Community Champion

Have you tried course_navigation[default]=disabled instead of course_navigation[default]=false? I recently hid an LTI via API using that command.

pklove
Community Champion

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'.

pklove
Community Champion

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
Community Contributor

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>

wojcika
Community Participant

@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. 

0 Kudos