Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI Web API Reference

ElementTemplate Update

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
}
In This Topic
TitleResults for “How to create a CRG?”Also Available in