Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

VijayKumar E's avatar
VijayKumar E
Explorer | Level 3
2 years ago

path_display and path_lower not returned in API response

Hi,

 

While attempting to search for a file from the root directory using the Dropbox API v2 (/2/files/search_v2), I've observed that the path_display and path_lower entries are absent from the API response.

 

I would also like to know under which circumstances these entries will not be included in the response.

 

Furthermore, is there any way to differentiate between shared and personal files in the API response?

 

API used : 

https://api.dropboxapi.com/2/files/search_v2

 

2 Replies

  • Здравко's avatar
    Здравко
    Legendary | Level 20
    2 years ago

    Hi VijayKumar E,

    Supported Dropbox API deals with information available to the user only (no for internal use by Dropbox). In many cases different files and/or folders may have not path (either yet or removed). Such cases can be summarized as all entries (again files and/or folders) that are not mounted. For example if you have something shared to you but not yet accepted sharing. Another example could be deleted file/folder (but not yet permanently - i.e. it's still in trash bin), etc. The same is valid for all endpoints that deal with metadata - not only search.

    Hope this helps.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    2 years ago

    VijayKumar E As Здравко said, if the path values are not set, that indicates that the item is not currently mounted under that account/root.

     

    For sharing information, you can check the 'sharing_info' field which would be set if the item is in a shared folder.

     

    Check out the documentation for /2/files/search_v2 for more information.

About Discuss Dropbox Developer & API

Node avatar for 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!