EnumerationSet CreateValue
- Last UpdatedJun 15, 2023
- 1 minute read
- PI System
- PI Web API Reference
- Developer
EnumerationSet CreateValue
Create an enumeration value for a enumeration set.
Request
POST enumerationsets/{webId}/enumerationvalues
URL Parameters
-
webId The ID of the enumeration set on which to create the enumeration value. 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 enumeration value definition.
Status Codes
201: The enumeration value was created. The response's Location header is a link to the enumeration value.
Sample Request Body
{
"Name": "CarBrand|Model3",
"Description": "Model Number of CarBrand",
"Value": 2005
}