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

emeraldmedia's avatar
emeraldmedia
New member | Level 2
4 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.