Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
agarrkoch
1 year agoExplorer | Level 4
/2/files/get_metadata not returning all keys, e.g. sharing_info and parent_shared_folder_id
Hi,
I need to use this endpoint to get the parent_shared_folder_id.
The problem is that my json data does not return this info.
I get a response that looks like this:
{'.tag': 'f...
- 1 year ago
The sharing_info field, e.g., from /2/files/get_metadata, is optional and only returned, "if this file is contained in a shared folder".
To turn a folder into a shared folder, so that you can then retrieve the shared folder ID like that and/or add members to it, you would use the /2/sharing/share_folder endpoint (or share the folder manually via the Dropbox web site).
agarrkoch
1 year agoExplorer | Level 4
Hi,
So I'm seeing the problem. You only get a shared_folder_id returned to you if at least one person has been shared the folder.
I want to get the shared_folder_id so I can add members to a folder (per API specifications, I need to pass this id). The problem is that if I have no preexisting members for a folder, then I can't get the shared_folder_id. So I'm in a chicken-or-the-egg situation.
How do I work around this??
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!