Search ALL files API
I have seen in the FAQ that it is possible to employ an APU to search files/folder by user, however, is there an API call to search ALL files/folders (using a partial or full file name search)?
Thank you for any help.
I assume you are asking to get the search result for the whole enterprise. If that is the case you can do something like
Note: you do need to contact Box for enabling "enterprise_content" scope if it's not already enabled.
The above request will get any files that contains text "test" or starts with "test" or has "test" anywhere in file. The search API by default returns all the results. Full or partial search doesn't matter.
Please check this out for detail: https://docs.box.com/reference#searching-for-content
Hope this helps.
Is it possible to get all files AND folders that match the search query. It appears that they "type" parameter allows only one type, file OR folder but not both. In case my question isn't clear, imagine I have a file named logo.jpg and a folder named logos. I search for logo and want to get results that include both the image and the folder. Is that possible?
I have a similar question...it appears that using the default search in the box (web) app searches files AND web_links. I would like to include web_link results in my search...analogous to what the previous post wants to do with files and folders.
How do we include multiple types in the search call???
Leaving out the type attribute seems to include everything. Maybe you realized that too but it wasn't clear to me in the beginning. The problem (for me) is still being able to specify just files and folder but not web_links. If you're trying to get files AND web_links but not folders, the question remains of how to specify multiple types.
Please sign in to leave a comment.