Search within a folder using tags - API
回答済みHi,
I am trying to retrieve files with specific tags only, but I have not find the solution yet.
I have this:
curl https://api.box.com/2.0/folders/4***phone number removed for privacy***/items?fields=content_type,name,tags,id -H "Authorization: Bearer MY KEY"
but it retrieves all items inside the folder, I want to use a filter to limit search by tags.
any ideas?
Regards,
-
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
サインインしてコメントを残してください。
コメント
4件のコメント