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

Search within a folder using tags - API

Answered
New post

Comments

4 comments

  • mwiller

     You should be able to use the Search API to do this — something like the following should do what you want (just replace the ALL_CAPS parts with your parameters):

     

    curl -H "Authorization: Bearer ACCESS_TOKEN" https://api.box.com/2.0/search?query=TAG_NAME&content_types=tags&ancestor_folder_ids=FOLDER_ID
    0
    Comment actions Permalink
  • rogerwith

     Thank you,

     

    Tried the code and it worked until certain point, which it will not recognize "ancestor_folder_ids". 

    but thank you again you gave me a way out!

     

    ancestor_folders_ids.png

     

     

     

    0
    Comment actions Permalink
  • phil-northcott

    This didn't work for us.  Is there some documentation on exactly how these strings are supposed to be formed?   

    Ideally we're looking for a regex or sql type search into tag contents (or metadata contents) 

    0
    Comment actions Permalink
  • azndoodle

    Is there confirmation that it's work again?

    0
    Comment actions Permalink

Please sign in to leave a comment.