Forum Discussion

Thierry-fr's avatar
Thierry-fr
Explorer | Level 4
8 years ago

https://api.dropboxapi.com/2/sharing/share_folder return "No permission"

Hi,

 

Since 2 days approximatively all calls API Share Folder return an error "No permission". I have an application which create folder on a Team Folder and share it with a group. Since last Friday, I have an error 'No permission' on each try.

I reproduced this issue on API Explorer. If I create a folder in my Dropbox and I try to share it from API:

- https://api.dropboxapi.com/2/sharing/share_folder

I receive an error "No permission", it's my folder, and I'm owner on this folder.

Is it a problem on API or I need to change my call?

 

Best regards.

 

1 Reply

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    8 years ago

    Thanks for the report, and apologies for the trouble and unhelpful error message! 

    It looks like this is the result of a configuration on our side, along with how the API v2 Explorer writes this call. You should be able to work around this by running this outside of the API v2 Explorer and omitting the `link_settings` parameter entirely. 

    That is, the API v2 Explorer constructs this like:

    curl -X POST https://api.dropboxapi.com/2/sharing/share_folder \ --header 'Authorization: Bearer <ACCESS_TOKEN>' \ --header 'Content-Type: application/json' \ --data '{"path":"/test-shared-folder","link_settings":{}}'


    Please try running it manually like this instead, without link_settings:

    curl -X POST https://api.dropboxapi.com/2/sharing/share_folder \ --header 'Authorization: Bearer <ACCESS_TOKEN>' \ --header 'Content-Type: application/json' \ --data '{"path":"/test-shared-folder"}'

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!