Analysis GetCategories
- Last UpdatedJun 15, 2023
- 1 minute read
- PI System
- PI Web API Reference
- Developer
Analysis GetCategories
Get an Analysis' categories.
Request
GET analyses/{webId}/categories
URL Parameters
-
webId The ID of the Analysis. See WebID 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.
-
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.
Status Codes
200: A list of categories.
Sample Response Body
{
"Items": [
{
"WebId": "I1XCDqD5loBNH0erqeqJodtALAoko2-UoOVEibhTWQCk1MDw",
"Id": "f9364aa2-0e4a-4854-9b85-35900a4d4c0f",
"Name": "CategoryName",
"Description": "Relative energy use per ton of process feed.",
"Path": "\\\\MyAssetServer\\Database\\CategoriesAnalysis[CategoryName]",
"Links": {
"Self": "https://localhost.osisoft.int/piwebapi/analysiscategories/I1XCDqD5loBNH0erqeqJodtALAoko2-UoOVEibhTWQCk1MDw"
}
},
{
"WebId": "I1XCDqD5loBNH0erqeqJodtALAoko2-UoOVEibhTWQCk1MDw",
"Id": "f9364aa2-0e4a-4854-9b85-35900a4d4c0f",
"Name": "CategoryName",
"Description": "Relative energy use per ton of process feed.",
"Path": "\\\\MyAssetServer\\Database\\CategoriesAnalysis[CategoryName]",
"Links": {
"Self": "https://localhost.osisoft.int/piwebapi/analysiscategories/I1XCDqD5loBNH0erqeqJodtALAoko2-UoOVEibhTWQCk1MDw"
}
}
],
"Links": {}
}