cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Way to search by property value?

Way to search by property value?

toki4004
Explorer | Level 4

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?

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff

For searching by file property value, use /2/file_properties/properties/search instead: https://www.dropbox.com/developers/documentation/http/documentation#file_properties-properties-searc...

View solution in original post

5 Replies 5

Greg-DB
Dropbox Staff

For searching by file property value, use /2/file_properties/properties/search instead: https://www.dropbox.com/developers/documentation/http/documentation#file_properties-properties-searc...

toki4004
Explorer | Level 4

@Greg-DB Is there a way to limit search to a particular path of items?

Greg-DB
Dropbox Staff

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
Explorer | Level 4

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
Dropbox Staff

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.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    toki4004 Explorer | Level 4
What do Dropbox user levels mean?