Is it possible to use System.Tag.Configure on tags at the root/Provider level (i.e. tags that don’t reside in a folder)?
The code below is pretty much copied from the user manual – if path points to an actual folder, then this works. But when the path is “[default]” or “[]”, I get an error “The tag type ‘Provider’ cannot be created at this location.”, no matter how I set the basePath. The basePath is supposed to be the parent, but at the root level, there is no parent, so is this just a limitation of the script, or is there a way around it? (Besides just making sure all of the tags are organized in folders, which I try to do, but there’s one project where I can’t mess with their tag paths).
path = "[default]"
configs = system.tag.getConfiguration(path, True)
for tag in configs[0]['tags']:
if str(tag['tagType']) != 'Folder':
tag['enabled'] = False
system.tag.configure("", configs, "m")