Forum Discussion

tikuil's avatar
tikuil
Explorer | Level 3
6 years ago

Sharing folders with write permission using the API (My dropbox App)

Hi,

I'm using a business account, I want the ability to create a folder and share it with maximum access to all members of the team And doing so with the API.
2 methods I tried:
1) I tried first to share folder with others (read-only)  with the API , but afterwards i can't change the permission.

2) I created a shared folder with the team (full access), works

     But I can't set the application root folder to this location.

 

 

1 Reply

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

    If you want to use the Dropbox API to share a folder with write/edit access, you should use the /2/sharing/share_folder endpoint to first make the folder a shared folder, if it isn't already. Then, you can add members with the desired access level (i.e., 'editor' in this case) using /2/sharing/add_folder_member.

     

    By the way, those are links to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible. Those have corresponding native methods for the HTTPS endpoints. 

     

    If something isn't working as expected, I'll be happy to help, but I'd need some more information. In that case, please reply with:

     

    • the name and version number of the platform and SDK/library you are using, if any
    • the steps to reproduce the issue, including relevant code snippet(s)
    • the full text of any error or unexpected output

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!