We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
BIMcollab
6 years agoHelpful | Level 5
GetMetadata for Team folders - different response based on parameter
Hi, I've noticed a strange behavior when using the /get_metadata endpoint when using it for Team folders on a Business account:
When I use it for a soft deleted folder with "path": "ns:17010...
Greg-DB
Dropbox Community Moderator
6 years agoI just tried this out myself in a test account for reference, and I don't think I'm seeing the same behavior. For example:
curl -X POST https://api.dropboxapi.com/2/files/get_metadata \
--header "Authorization: Bearer <ACCESS_TOKEN>" \
--header "Dropbox-API-Select-User: <MEMBER_ID>" \
--header "Content-Type: application/json" \
--header 'Dropbox-API-Path-Root: {".tag": "root", "root": "1990815600"}' \
--data "{\"path\": \"id:5aUO2rfctSAAAAAAAAAAAQ\", \"include_deleted\": true}"
# {
# ".tag": "deleted",
# "name": "test_410191",
# "path_lower": "/test_410191",
# "path_display": "/test_410191"
# }
Are you using the "Dropbox-API-Path-Root" header though? You would need to use that to set the root of the API call to the team space where the folder existed to get the deleted metadata. Please refer to the Namespace Guide for more information on how this works.
Or, alternatively, are you sure you're using the right file ID? You could get that error if it's not actually the ID of the folder that was deleted.
- BIMcollab6 years agoHelpful | Level 5
Hey Greg,
Unfortunately I am still experiencing the same behavior. Please take a look at the attached scnreenshots of the request:After this request, I soft deleted the team folder in Dropbox and repeteated the request (I haven't changed any headers or the body)
- Greg-DB6 years ago
Dropbox Community Moderator
Thanks, that's helpful. Can you confirm you used the API to create and delete the folder as well? It looks like I was doing something different in my test which resulted in a different behavior. We'll look into the behavior you're seeing.
- BIMcollab6 years agoHelpful | Level 5
Hi Greg,
I can confirm that I used the API to create the folder. However I have only tried deleting it from the Dropbox website (manually) and then restoring it from the website as well. I am not sure what the impact of this is?
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!