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

PI Web API Reference

EventFrame GetCategories

EventFrame GetCategories

Get an event frame's categories.

Request

GET eventframes/{webId}/categories

URL Parameters

  • webId

    The ID of the event frame. 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": "I1ECDqD5loBNH0erqeqJodtALAQ_lRME1-QUKrnEUKhMgEUA",
      "Id": "3051f943-7e4d-4241-ab9c-450a84c80450",
      "Name": "CategoryName",
      "Description": "Relative energy use per ton of process feed.",
      "Path": "\\\\MyAssetServer\\Database\\CategoriesElement[CategoryName]",
      "Links": {
        "Self": "https://localhost.osisoft.int/piwebapi/elementcategories/I1ECDqD5loBNH0erqeqJodtALAQ_lRME1-QUKrnEUKhMgEUA"
      }
    },
    {
      "WebId": "I1ECDqD5loBNH0erqeqJodtALAQ_lRME1-QUKrnEUKhMgEUA",
      "Id": "3051f943-7e4d-4241-ab9c-450a84c80450",
      "Name": "CategoryName",
      "Description": "Relative energy use per ton of process feed.",
      "Path": "\\\\MyAssetServer\\Database\\CategoriesElement[CategoryName]",
      "Links": {
        "Self": "https://localhost.osisoft.int/piwebapi/elementcategories/I1ECDqD5loBNH0erqeqJodtALAQ_lRME1-QUKrnEUKhMgEUA"
      }
    }
  ],
  "Links": {}
}
In This Topic
TitleResults for “How to create a CRG?”Also Available in