Open jacekkarczmarczyk opened 4 years ago
Currently, the only way to get the assets without tags is to iterate on all the resources and get the one that tags are empty. I opened a request on your behalf to our product team to support this feature but no ETA yet.
Any updates on this? It has been 4 years. Not being able to search for untagged items is a huge time sucker.
Hi @MargaretHiatt ,
Thanks for your message.
You should be able to search the assets by providing -tags as shown here:
cloudinary.search.expression('-tags').next_cursor(nextCursor).execute().then(res => {
Please check the documentation and the parameter tags accordingly here: https://cloudinary.com/documentation/admin_api#expression_fields
Thanks, Sree
Feature request for Cloudinary_NPM SDK …(If your feature is for other SDKs, please request them there)
Explain your use case
I want to find all photos that don't have any tags
Describe the problem you’re trying to solve
The only way now is to search all photos and filter those without tags, which is time consuming
Do you have a proposed solution?
cloudinary.search.expression('tags=[]')
Other
Or maybe it's possible but I had difficulties with finding the example in docs...