To create an Interface entity in the Smart3D Catalog Schema Database:
POST
<ServiceRoot>/Sites(‘MySiteAlias’)/Plants(‘PlantA’)/Interfaces
{
"Name": "ICustomInterface",
"Description": "Custom Interface"
}
Optionally, user the may also supply the values for related navigation properties to have them created or linked to them:
{
"Name": "ICustomInterface",
"InterfaceMap":
{
"Mappings": ["IObject"]
},
"Properties":
[
{
"Name": "CustomPropertyString",
"Type": "String"
},
{
"Name": "CustomPropertyInt",
"Type": "Int"
}
],
"RealizedByClasses@odata.bind":
[
"Sites('{{AdminSiteAlias}}')/Plants('{{AdminPlantName}}')/Classes('EQUIP:CPEquipment')",
"Sites('{{AdminSiteAlias}}')/Plants('{{AdminPlantName}}')/Classes('EQUIP:CPSmartEquipment')"
]
}