Learn how to make the most out of the Dropbox Community here 💙. 

Forum Discussion

vinke's avatar
vinke
Explorer | Level 4
3 years ago
Solved

/sharing/create_shared_link_with_settings unauthorized

Hello,   im trying to create a shared link with /sharing/create_shared_link_with_settings. Despite having the sharing.write set to my App, i get unauthorized all the time.   What am i missing...
  • Greg-DB's avatar
    Greg-DB
    3 years ago

    vinke Please print out the response body, as it should contain a more useful error message.

     

    While access tokens can be used to access multiple different endpoints, different endpoints do require different scopes, so it's possible that an access token can access one endpoint but not another.

     

    Also, be aware that just adding a scope to your app via the App Console does not retroactively grant that scope to existing access tokens. That being the case, to make any API calls that require that scope, you'll need to get a new access token with that scope. For example, if the access token you're using was not originally created with the "sharing.write" scope, just enabling the "sharing.write" scope on the app itself will not automatically add "sharing.write" to that particular access token, so you'd need to get a new access token for that.