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