Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

Understanding the Search API query parameter

New post

Comments

2 comments

  • LoCortes

    Hello ,

    I've done some testing to see what could be useful to you.

     

    You have to have in mind that there is a mandatory field that is the query parameter. That is the only needed field. (Unless you search by metadata template that in that case you would need the mdfilters object).

     

    So, to search for an extension I would use the same value on the query and on the file_extensions parameter:

     Restlet_Search_by_extension.jpg 

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    As you can see, I've used the extension ppt on query and file_extensions. As the name of the file contains it, it works.

     

    Maybe this way it would cover your need.

     

    Regards,

     

    0
    Comment actions Permalink
  • jeff00docusign

    I understand this is a reply to a question dated 2017.

     

    It is still not clear to me why parameter "query" required when there are other parameters may be sufficient for searching for one or more items.

     

    If a /search request is for items of type folder within a specific ancestor_folder_ids, then the parameter query would not be needed.

     

    How would I use parameter query if seeking all entries that are of type folder or type file?

    0
    Comment actions Permalink

Please sign in to leave a comment.