# system.tag.importTags only allowed at the root of a tag provider?

**URL:** <https://forum.inductiveautomation.com/t/system-tag-importtags-only-allowed-at-the-root-of-a-tag-provider/115738>\
**Category:** Ignition\
**Created:** [May 27, 2026, 7:21pm UTC](https://forum.inductiveautomation.com/t/system-tag-importtags-only-allowed-at-the-root-of-a-tag-provider/115738 "2026-05-27T19:21:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![craigl](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/craigl/32/5010_2.png) [@craigl](https://forum.inductiveautomation.com/u/craigl)\
**Post date:** [May 27, 2026, 7:21pm UTC](https://forum.inductiveautomation.com/t/system-tag-importtags-only-allowed-at-the-root-of-a-tag-provider/115738/1 "2026-05-27T19:21:21Z")

</div>

I'm trying to build a comprehensive set of tags from all of our sites, and I've run into a snag.

So far I've parsed out all of the UDTs from across our sites and they are deposited into set of files whose stucture mimics the folder/udt structure at our sites. So, I have a bunch of JSON files that each contain a single UDT. I'm able to import them through the UI, but that would be extremeley cumbersome to try to do with all of our UDTs, so I'm trying to import them while preserving the heirarchy.

If I run:

```python
    ret = system.tag.importTags(filePath, "[corp_iot]", "o") 

```

it works fine and puts the UDT at the root of the corp\_iot tag provider, but if I try to specify a folder it returns an error.

```python
    ret = system.tag.importTags(filePath, "[corp_iot]catalog", "o")    

```

_"Error importing tags: Udt definitions can only be imported in the UDT Definitions tab."_

I'd rather not have to construct a JSON file with all the UDTs and the folder structure built in.

What am I missing, or is this just not allowed?

Thanks!

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [May 27, 2026, 9:41pm UTC](https://forum.inductiveautomation.com/t/system-tag-importtags-only-allowed-at-the-root-of-a-tag-provider/115738/2 "2026-05-27T21:41:24Z")

</div>

When you say "UDT" I assumed instances, but are you talking about definitions?  
For definitions, you need to use the parent folder `_types_/`  
Ie  
`[corp_iot]_types_/catalogue`

---

<div class="post-metadata">

**Author:** ![craigl](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/craigl/32/5010_2.png) [@craigl](https://forum.inductiveautomation.com/u/craigl)\
**Post date:** [May 28, 2026, 12:24pm UTC](https://forum.inductiveautomation.com/t/system-tag-importtags-only-allowed-at-the-root-of-a-tag-provider/115738/3 "2026-05-28T12:24:14Z")

</div>

Thanks! I overlooked that \*_facepalm_\*

Works like a charm now
