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
agarrkoch
10 months 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...
- 10 months 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
Explorer | 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??
Greg-DB
10 months agoDropbox Staff
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).
- agarrkoch10 months agoExplorer | Level 4
Thanks! I wasn't aware of the share_folder endpoint.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,915 PostsLatest Activity: 5 hours agoIf 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!