We Want to Hear From You! What Do You Want to See on the Community? Tell us here!

Forum Discussion

martinjuniqe's avatar
martinjuniqe
Explorer | Level 4
8 years ago
Solved

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 webhook POST to the endpoint:

 

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

 

with the following data:

 

"{\"shared_folder_id\": \"{{folderid123456}}\",\"members\": [{\"member\": {\".tag\": \"email\",\"email\": \"{{memberemail123456}}\"},\"access_level\": \"editor\"}],\"quiet\": false,\"custom_message\": \"Here's your share folder!\"}"

 

this always returns: api.dropboxapi.com returned (400) Bad Request and said nothing

 

I can authenticate correctly and it recognizes the end point, i am sure the error is in the syntax somewhere :)

 

I'd really appreciate it if you could assist me and point me in the right direction - i am not a coder and am just taking a crack at something our product team hasn't had time for...

 

Have a good day, cheers from berlin!
Martin

  • Greg-DB's avatar
    Greg-DB
    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.

16 Replies

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,035 PostsLatest Activity: 6 hours ago
410 Following

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

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!