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

PI Web API Reference

AnalysisRule CreateAnalysisRule

AnalysisRule CreateAnalysisRule

Create a new Analysis Rule as a child of an existing Analysis Rule.

Request

POST analysisrules/{webId}/analysisrules

URL Parameters

  • webId

    The ID of the parent Analysis Rule, on which to create the child Analysis Rule. 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 definition of the new Analysis Rule.

Status Codes

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

Sample Request Body

{
  "ConfigString": "a := TagVal('sinusoid'); b := Pow(a, 2); c := a + b;",
  "PlugInName": "PerformanceEquation",
  "VariableMapping": "b||Attribute1;c||Attribute2"
}
In This Topic
TitleResults for “How to create a CRG?”Also Available in