You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

bcd_nyc's avatar
bcd_nyc
Explorer | Level 4
4 years ago

Strange Behavior Unsharing Folders en Mass

hello,

 

I'm trying to restructure folders I share with my customers ( roughly 5k+ folders ). My folder structure has a simple parent->child relationship, with the parent having a variable amount of children. Some of the child folders have been shared individually.

 

I'm trying to unshare the child folders and only share the parent folder.

 

I've created a test folder, 5 parent folders with 1-3 shared child folders, which I'm using to test the script I've written.

I'm using the api endpoint /sharing/unshare_folder, and it works for the most part, using the node sdk to make the calls.

 

However, sometimes the unshared child folders move from the parent folder and end up in my main dropbox folder for no apparent reason.

 

I noticed that dropbox seems to remove shared folder and put the folder back unshared, and I wonder if it has something to do with that?

 

I'm rate limiting requests to every 3 seconds per parent folder and also only calling the unshare_folder endpoint when this error seems to occur.

 

any help on this would be great! thank you.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    The behavior of putting back the unshared folder in your home folder instead of the original location does not sound expected. Would you be able to share a sample of the API requests/responses showing a case of this so we can look into it specifically? (Be sure to redact your access token though.) Feel free to open an API ticket if you'd prefer to share privately. Thanks!

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,917 PostsLatest Activity: 11 days ago
334 Following

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 or Facebook.

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!