cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done 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: 

Need to give and remove permissions to folders via the API. Is this possible?

Need to give and remove permissions to folders via the API. Is this possible?

BartonFunk
New member | Level 2

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:

  1. Upload the End Users design files and design briefs to a newly created folder (one new folder per order/job)
  2. Give a contractor permission to access said folder.
  3. 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

1 Accepted Solution

Accepted Solutions

Re: Need to give and remove permissions to folders via the API. Is this possible?

Greg-DB
Dropboxer

It sounds like you'd want to use:

 

1. /2/files/upload

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. 

View solution in original post

2 Replies 2

Re: Need to give and remove permissions to folders via the API. Is this possible?

Greg-DB
Dropboxer

It sounds like you'd want to use:

 

1. /2/files/upload

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. 

View solution in original post

Re: Need to give and remove permissions to folders via the API. Is this possible?

BartonFunk
New member | Level 2

That sounds great Greg. I'll discuss this with the developer. Thanks for your help.

 

 

Who's talking

Top contributors to this post

  • User avatar
    BartonFunk New member | Level 2
  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?