Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Ronan W.
10 years agoNew member | Level 1
New API v2 sharing and unsharing errors
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
Replies have been turned off for this discussion
- Greg-DB10 years ago
Dropbox Community Moderator
The /sharing/remove_folder_member documentation says:
"
dropbox_idString 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.
- Ronan W.10 years agoNew member | Level 1
Thanks Gregory!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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, Facebook or Instagram.
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!