System.Tag.Configure for tags at root level?

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")

I suspect the system.tag.configure needs to know at least which tag provider to write to from the first parameter. Try this:

path = "[default]"

configs = system.tag.getConfiguration(path, True)
configs = configs[0]['tags']

for tag in configs:
	if str(tag['tagType']) != 'Folder':
		tag['enabled'] = False

system.tag.configure("[default]", configs, "m")

This version cuts off the top level from the configs returned, which only makes sense if we don’t intend to change the top-level item itself and we know there is only one item at the top level. Both of these things are true in this case since the top level is the [default] tag provider itself.

that worked great, thanks!