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

Forum Discussion

toki4004's avatar
toki4004
Helpful | Level 5
3 years ago
Solved

Way to search by property value?

I am assigning a custom property value to a file. Is there a way to search by it? I don't see property groups in your search example for:

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

 How do I make sure that my query only matches a property group value?

5 Replies

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    3 years ago

    No, that functionality doesn't offer a path filter, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.

  • toki4004's avatar
    toki4004
    Helpful | Level 5
    3 years ago

    Ok, I am thinking that to get around it, I would have to create a separate template id for each path and then limit search to that template ID via "template_filter": "id_here". BUT then I might run into "too_many_templates" error. How many is too many? What's that number?

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

    We don't have the specific number documented, but alternatively you can use /2/file_properties/properties/search as-is and filter the results in your code based on the returned PropertiesSearchMatch.path field.

About Dropbox API Support & Feedback

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