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
martinjuniqe
7 years agoExplorer | Level 4
Need help managing photos with DropBox
Hello Dropbox! I am trying to set up an automated workflow via zapier for our company juniqe.com: i need to invite new folder members as editors via their email, am am trying to do so via a w...
- 7 years ago
If you know the path or ID for the folder, and the folder is already a shared folder, you can get the shared folder ID by calling /2/files/get_metadata. The shared folder ID will be in the result at folder.sharing_info.shared_folder_id. Using /2/sharing/list_folders[/continue] on the folder's parent also works.
Note that creating a shared link for a folder does not make it a "shared folder". These actually refer to two different types of sharing on Dropbox: "shared links" and "shared folders". Folders will only receive shared folder IDs for the second type of sharing, "shared folders".
It sounds like you may have used /2/sharing/create_shared_link_with_settings to make a shared link for the folder. To share the folder in order to get a shared folder ID, you should use /2/sharing/share_folder.
Greg-DB
Dropbox Staff
martinjuniqe That error should just indicate that the 'shared_folder_id' value you supplied in the API call isn't a valid shared folder ID.
Can you double check what's getting sent? Shared folder IDs are just integers, e.g., '12345678'; they are not the same as normal file/folder IDs (which look like 'id:A12bC3-d4E5f6').
You can get the shared folder ID from a number of places on the API, such as /2/files/list_folder[/continue] in FolderMetadata.sharing_info.shared_folder_id, or /2/sharing/list_folders[/continue] or /2/sharing/check_share_job_status in SharedFolderMetadata.shared_folder_id.
martinjuniqe
7 years agoExplorer | Level 4
gotcha. please just dumb it down for me a nod - so i need to first run a get request to find out the shared folder id to call the webhook i'm trying to call. I have an earlier step in the automatization sharing said folder, but this does not return the shared folder id, but only a share link.
the dropbox contains hundreds of folders, is there a simple way to get to the sharedfolderid of the folder by it's regular id or share link?
- Greg-DB7 years agoDropbox Staff
If you know the path or ID for the folder, and the folder is already a shared folder, you can get the shared folder ID by calling /2/files/get_metadata. The shared folder ID will be in the result at folder.sharing_info.shared_folder_id. Using /2/sharing/list_folders[/continue] on the folder's parent also works.
Note that creating a shared link for a folder does not make it a "shared folder". These actually refer to two different types of sharing on Dropbox: "shared links" and "shared folders". Folders will only receive shared folder IDs for the second type of sharing, "shared folders".
It sounds like you may have used /2/sharing/create_shared_link_with_settings to make a shared link for the folder. To share the folder in order to get a shared folder ID, you should use /2/sharing/share_folder.
- martinjuniqe7 years agoExplorer | Level 4
OK so i can could https://api.dropboxapi.com/2/sharing/share_folder as well and get a response including the shared folder id, this seems to work.
but when trying to call the endpoint https://api.dropboxapi.com/2/sharing/add_folder_member afterwards, i am receiving another error
- martinjuniqe7 years agoExplorer | Level 4
thanks, this now works - really appreciate your help!
i guess i did only create a shared link previously, and calling the share_folder endpoint really was what i needed to get to the right id, the next error was caused by something within Zapier i guess, i couldn't reproduce it after trying to run the whole process with an entirely fresh folder, sharing worked like a charm.
thanks guys!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months 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!