We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
solitarychild
8 years agoExplorer | Level 3
Sample response for 2/sharing/get_file_metadata user do not have download permission
Can I have a sample response of 2/sharing/get_file_metadata
where the user does not have the "permissions" to download the file?
Thank you.
Greg-DB
Dropbox Community Moderator
8 years agoI'm not sure I understand exactly which scenario you're referring to. Can you elaborate? In any case though, all of the errors that can be returned are listed in the documentation:
https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_file_metadata
The actual response response would be structured JSON, e.g.:
{
"error_summary": "access_error/invalid_file/...",
"error": {
".tag": "access_error",
"access_error": {
".tag": "invalid_file"
}
}
}
Or, if you're interested in a successful result with a "false" permission returned, it would look like:
{
"access_type": {
".tag": "viewer"
},
"id": "id:Hcd4PILNenwAAAAAAAAACw",
"name": "hello.txt",
"owner_team": {
"id": "dbtid:AAALfOJvW_VA8-yeLzHQ5Pug2GR15Z4t8KI",
"name": "TEST API Tester Team"
},
"permissions": [
{
"action": {
".tag": "edit_contents"
},
"allow": false
}
],
"policy": {
"member_policy": {
".tag": "anyone"
},
"resolved_member_policy": {
".tag": "anyone"
},
"acl_update_policy": {
".tag": "editors"
},
"shared_link_policy": {
".tag": "anyone"
},
"viewer_info_policy": {
".tag": "enabled"
}
},
"preview_url": "https://www.dropbox.com/scl/fi/vmn6wlojv52rnm51tmb9a/hello.txt?dl=0",
"time_invited": "2017-03-27T18:31:52Z"
}
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!