We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

yatin_manchanda's avatar
yatin_manchanda
Explorer | Level 4
11 months ago

search (/2/files/search_v2) using multiple paths/regex

Hi, I want to search within multiple folder/subfolders, I tried passing regex/ multiple paths but i got an error for invalid path. Is this possible anyway?

 

For example I want to search within these 2 paths

 

/folder1/subfolder1

/folder2/subfolder2

  • The Dropbox API does not offer the ability to search in multiple paths in a single call, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. Instead, you should issue one call per path.

     

    (Alternatively, you can omit the 'path' entirely, in which case the search will operate on the root and subfolders; you could then filter the results as desired.)

  • The Dropbox API does not offer the ability to search in multiple paths in a single call, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. Instead, you should issue one call per path.

     

    (Alternatively, you can omit the 'path' entirely, in which case the search will operate on the root and subfolders; you could then filter the results as desired.)

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,877 PostsLatest Activity: 3 hours ago
325 Following

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 or Facebook.

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!