cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Invalid shared folder id

Invalid shared folder id

emeraldmedia
New member | Level 2

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 !!

1 Reply 1

Greg-DB
Dropbox 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.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?