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

PI Web API Reference

StreamSet UpdateValue

StreamSet UpdateValue

Updates a single value for the specified streams.

Request

POST streamsets/{webId}/value

URL Parameters

  • webId

    The ID of the parent element, event frame, or attribute. Attributes specified in the body must be descendants of the specified object. See WebID for more information.

  • updateOption

    The desired AFUpdateOption. The default is 'Replace'. See Update Option for more information.

  • bufferOption

    The desired AFBufferOption. The default is 'BufferIfPossible'. See Buffer Option for more information.

Body Parameter

The values to add or update.

Status Codes

202: The value was accepted for a potential buffered update.

204: All updates executed successfully.

207: The operation was a partial success. The response body contains substatuses and errors in the same order as the supplied values.

409: Unsupported operation on the given AF object.

Sample Request Body

[
  {
    "WebId": "I1AbEDqD5loBNH0erqeqJodtALAYIKyyz2F5BGAxQAVXYRDBAGyPedZG1sUmxOOclp3Flwg",
    "Value": {
      "Timestamp": "2014-07-22T14:00:00Z",
      "UnitsAbbreviation": "m",
      "Good": true,
      "Questionable": false,
      "Value": 12.3
    }
  },
  {
    "WebId": "I1AbEDqD5loBNH0erqeqJodtALAYIKyyz2F5BGAxQAVXYRDBAGyPedZG1sUmxOOclp3Flwg",
    "Value": {
      "Timestamp": "2014-07-22T14:00:00Z",
      "UnitsAbbreviation": "m",
      "Good": true,
      "Questionable": false,
      "Value": 12.3
    }
  }
]
In This Topic
TitleResults for “How to create a CRG?”Also Available in