Turn on tags featureput https://{server}/api/v2.1/repos/{repo_id}/metadata/tags-status/Enable tags to add tags to files and search files by tags.