ElementTemplate Update
- Last UpdatedJun 15, 2023
- 1 minute read
- PI System
- PI Web API Reference
- Developer
ElementTemplate Update
Update an element template by replacing items in its definition.
Remarks
Updating the InstanceType property of an element template will not affect any elements that have already been created from this template; it will only affect any future elements created from this template. All other changes will be propagated to elements based on this template.
Request
PATCH elementtemplates/{webId}
URL Parameters
-
webId The ID of the element template to update. See WebID for more information.
Body Parameter
A partial element template containing the desired changes.
Status Codes
204: The element template was updated.
Sample Request Body
{
"Name": "MachineName",
"Description": "Manufacturing Machine MachineName",
"AllowElementToExtend": false,
"BaseTemplate": "Equipment",
"InstanceType": "Element",
"NamingPattern": "%TEMPLATE%",
"CategoryNames": [
"Equipment Assets"
],
"ExtendedProperties": {},
"Severity": "None",
"CanBeAcknowledged": false
}