AttributeTrait GetByCategory
- Last UpdatedJun 15, 2023
- 1 minute read
- PI System
- PI Web API Reference
- Developer
AttributeTrait GetByCategory
Retrieve all attribute traits of the specified category/categories.
Request
GET attributetraits
URL Parameters
-
category The category of the attribute traits. Multiple categories may be specified with multiple instances of the parameter. If the parameter is not specified, or if its value is "all", then all attribute traits of all categories will be returned. See Attribute Trait for more information.
-
selectedFields List of fields to be returned in the response, separated by semicolons (;). If this parameter is not specified, all available fields will be returned. See Selected Fields for more information.
Status Codes
200: A list of attribute traits.
Sample Response Body
{
"Items": [
{
"Name": "LimitLoLo",
"Abbreviation": "LoLo",
"AllowChildAttributes": "false",
"AllowDuplicates": "false",
"IsAllowedOnRootAttribute": "false",
"IsTypeInherited": "true",
"IsUOMInherited": "true",
"RequireNumeric": "true",
"RequireString": "false",
"Links": {}
},
{
"Name": "LimitLoLo",
"Abbreviation": "LoLo",
"AllowChildAttributes": "false",
"AllowDuplicates": "false",
"IsAllowedOnRootAttribute": "false",
"IsTypeInherited": "true",
"IsUOMInherited": "true",
"RequireNumeric": "true",
"RequireString": "false",
"Links": {}
}
],
"Links": {}
}