Forum Discussion

emeraldmedia's avatar
emeraldmedia
New member | Level 2
5 years ago

Invalid shared folder id

Hi there

 

Im integrating the ability to share a folder with people that signup to my system

 

 

Basically I got the shared_folder_id.

 

Via here : https://dropbox.github.io/dropbox-api-v2-explorer/#files_list_folder

 

 

I get the id of my folder :

 

"id": "id:OnI0Xzba6WsAAAAAAAE0Hg"

 

 

 

However when I call

 

https://api.dropboxapi.com/2/sharing/add_folder_member

 

 

 

I get ‘Invalid shared folder id’

 

 

Anyone know what’s wrong ?

 

thanks !!

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

    It looks like you're attempting to use the file/folder ID for the shared folder as the shared folder ID. Note that file/folder IDs (commonly labeled 'id') are different than shared folder IDs (commonly labeled 'shared_folder_id').

    You can get the shared folder ID for a shared folder from a number of places on the API, such as /2/files/get_metadata or /2/files/list_folder[/continue], where it is returned as FolderMetadata.sharing_info.shared_folder_id. Or, you can get it from /2/sharing/list_folders[/continue], where it is returned as SharedFolderMetadata.shared_folder_id.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,951 PostsLatest Activity: 44 minutes ago
352 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!