cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done 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: 

New API v2 sharing and unsharing errors

New API v2 sharing and unsharing errors

Ronan W.
New member | Level 1

Hi,

 

I have a few problems with the new API v2 when trying to remove a user:

curl -X POST https://api.dropboxapi.com/2/sharing/remove_folder_member \
--header "Authorization: Bearer <OMITTED>" \
--header "Content-Type: application/json" \
--data '{"shared_folder_id": "<OMITTED REAL FOLDER ID>", "member": { ".tag": "email", "email": "myemail@me.com"}, "leave_a_copy": false }'

The response says:

Error in call to API function "sharing/remove_folder_member": Cannot remove members by e-mail yet.

 

So I tried to get the dropbox_id to test if I can remove a collaborator through that, but I don't see an endpoint to get the dropbox_id neither an endpoint to list all the collaborators that a folder has.

 

I would be very grateful if someone can help me out.  

 

Thanks a lot,

Ronan

2 Replies 2

Re: New API v2 sharing and unsharing errors

Greg-DB
Dropboxer

The /sharing/remove_folder_member documentation says:

"dropbox_id String Dropbox account, team member, or group ID of member to add."

So, you have a few choices of what kind of ID you can supply. For example, you can get a Dropbox account ID from /users/get_current_account (for the linked user), or of members of a shared folder using /sharing/get_folder_metadata, in membership.user.account_id or team_member_id.

Re: New API v2 sharing and unsharing errors

Ronan W.
New member | Level 1

Thanks Gregory!

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    Ronan W. New member | Level 1
  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?