cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We're looking to hear about your experience when using Dropbox in a web browser. What parts of Dropbox feels very slow to you and takes a lot of time to get done? What are you trying to do in the Dropbox web browser when you experience slowness? Tell us right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
1
Ask
2
Reply and help

Getting shared Link: Problem with permissions.

Getting shared Link: Problem with permissions.

victorTm90
New member | Level 2

Hello everyone!

I have developed an API for uploading files and generating links for downloading them. However, I am encountering an issue when trying to obtain a shared link.

The problem is that when I send a request to the '/get_shared_link_file' endpoint, I receive the following error:

Error: ".tag": "missing_scope", "required_scope": "share.write".

Even though I have the 'sharing.write' option selected in the App Console. I am using the kunalvarma05/dropbox-php-sdk and the 'postToAPI()' method to make the request in PHP.

If anyone could assist me with this issue, I would greatly appreciate it.

Thank you,
Víctor

1 Reply 1

Re: Getting shared Link: Problem with permissions.

Greg-DB
Dropboxer

A 'missing_scope' error indicates that while the app may have that scope enabled, the particular access token you're using to make the API call does not have that scope granted. 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.

Refer to the OAuth Guide and authorization documentation for more information.

 

By the way, it looks like you may be looking at the error for a different endpoint, or misread the error, because /2/sharing/get_shared_link_file requires 'sharing.read', not 'sharing.write'.

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?