Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
BartonFunk
7 years agoNew member | Level 2
Need to give and remove permissions to folders via the API. Is this possible?
Hi
I'm having a web application built for my print company. End users can upload artwork files and design briefs and design contractors then need to be assigned to work on the projects. I need a system to do the following:
- Upload the End Users design files and design briefs to a newly created folder (one new folder per order/job)
- Give a contractor permission to access said folder.
- Remove access when the job is complete.
I'd like to do all of the above via the API. Point 1 is the easy bit, but what about 2 and 3? Can anyone help?
Thanks,
Chris
It sounds like you'd want to use:
2. /2/sharing/share_folder and /2/sharing/add_folder_member
3. /2/sharing/remove_folder_member (and/or optionally /2/sharing/unshare_folder)
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.
2 Replies
- Greg-DB7 years ago
Dropbox Community Moderator
It sounds like you'd want to use:
2. /2/sharing/share_folder and /2/sharing/add_folder_member
3. /2/sharing/remove_folder_member (and/or optionally /2/sharing/unshare_folder)
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.
- BartonFunk7 years agoNew member | Level 2
That sounds great Greg. I'll discuss this with the developer. Thanks for your help.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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!