We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
mukund
5 years agoExplorer | Level 3
Not getting sharing_info in response of /search api
Hello,
I am trying to get sharing_info from /search api response by passing query string for search using user_access_token.
api:
https://api.dropboxapi.com/2/files/search_v2
Response should...
Greg-DB
Dropbox Community Moderator
5 years agoThe sharing_info field is optional, meaning that it will not always be returned. The sharing_info field is documented as:
sharing_info FileSharingInfo? Set if this file is contained in a shared folder. This field is optional.
So, since there is no sharing_info in this result, that indicates that this file is not in a shared folder (and so there is no sharing information to return).
For your received file question, please refer to your thread on that topic.
mukund
5 years agoExplorer | Level 3
Thanks for your response.
For below file, It is file is present in shared folder, Still I am not getting sharing_info.
{
"has_more": false,
"matches": [
{
"match_type": {
".tag": "filename"
},
"metadata": {
".tag": "metadata",
"metadata": {
".tag": "file",
"client_modified": "2021-05-05T07:51:18Z",
"id": "id:Ke9OphgV2zsAAAAAAAAAHw",
"is_downloadable": true,
"name": "Screenshot 2021-04-09 at 11.54.18 AM.png",
"rev": "015c19075c155150000000233388450",
"server_modified": "2021-05-05T07:51:18Z",
"size": 4253
}
}
}
]
}As you said, Sharing info is optional, if it is inside shared folder then only "sharing_info" will be available.
- Greg-DB5 years ago
Dropbox Community Moderator
That file is not inside a shared folder. It is only individually shared. That's a different kind of sharing, and so sharing_info won't be returned for it.
About Discuss Dropbox Developer & API
Make connections with 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!