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

PI Web API Reference

AssetServer CreateUnitClass

AssetServer CreateUnitClass

Create a unit class in the specified Asset Server.

Request

POST assetservers/{webId}/unitclasses

URL Parameters

  • webId

    The ID of the server. See WebID for more information.

  • webIdType

    Optional parameter. Used to specify the type of WebID. Useful for URL brevity and other special cases. Default is the value of the configuration item "WebIDType". See WebID Type for more information.

Body Parameter

The new unit class definition.

Status Codes

201: The unit class was created. The response's Location header is a link to the unit class.

Sample Request Body

{
  "Name": "Power",
  "Description": "Power Unit Class",
  "CanonicalUnitName": "watt",
  "CanonicalUnitAbbreviation": "W"
}
In This Topic
TitleResults for “How to create a CRG?”Also Available in