My app uses the Dropbox API to create folders, upload files and share the folders and recently I started getting an error message about exceeding the tree size. After getting this I re-organized a bunch of folders so I no longer have more than 1500 folders within 1 parent folder. I am able to create and share more folders if done through the web interface, but it doesn't seem to work through the API even after moving folders around.
I get the following response when calling the /sharing/share_folder endpoint. Is there something weird going on where Dropbox 'remembers' where a folder was when it was originally shared, and even though I've moved it, it still counts as a shared folder within it's prior parent folder?
{"error_summary": "too_many_mounts/tree_size_exceeded/.", "error": {".tag": "too_many_mounts", "too_many_mounts": {".tag": "tree_size_exceeded", "limit": 1500, "current_count": 1500, "new_count": 1501}}, "user_message": {"locale": "en", "text": "Your Dropbox account has reached the limit for shared folders."}} <br />