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

PI Web API Reference

AttributeTemplate Update

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