AttributeTemplate Update
- Last UpdatedJun 15, 2023
- 1 minute read
- PI System
- PI Web API Reference
- Developer
AttributeTemplate Update
Update an existing attribute template by replacing items in its definition.
Remarks
Updating an attribute template will propagate changes to the attributes that were created based on the template
Request
PATCH attributetemplates/{webId}
URL Parameters
-
webId The ID of the attribute template. See WebID for more information.
Body Parameter
A partial attribute template containing the desired changes.
Status Codes
204: The attribute template was updated.
Sample Request Body
{
"Name": "Water(2008)",
"Description": "2008 Water Use",
"Type": "Int32",
"TypeQualifier": "",
"DefaultUnitsName": "liter",
"DefaultValue": 0,
"DataReferencePlugIn": "Table Lookup",
"ConfigString": "SELECT [Water Use] FROM [Energy Use 2008] WHERE [Asset ID] = '%Element%'",
"IsConfigurationItem": false,
"IsExcluded": false,
"IsHidden": false,
"IsManualDataEntry": false,
"CategoryNames": [
"Energy Savings Targets"
],
"TraitName": "LimitLoLo"
}