# 1) Create the UDT instance from the DEFINITION, not the internal _types_ path
system.tag.configure(tagPath, [{
"name": "cook",
"type": "UDT_INST",
"udtTypeId": "test", # <= use the UDT definition path
"enabled": True
}], "o")
It is not working; it creates the UDT but does not create the child tags inside.
I don’t know where you got these from, but I suggest you create a UDT instance manually and check its json. The type should be "tagType": "UdtInstance" and use "typeId”: ”test”
On second thoughts, I'll bet this came from AI
Your original code is just creating a memory tag with those two added custom props in it
# 1) Create the UDT instance from the DEFINITION, not the internal _types_ path
system.tag.configure(tagPath, [{
"name": "cook",
"tagType": "UdtInstance",
"UdtType": "test", # <= use the UDT definition path
"enabled": True
}], "o")