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

PI Web API Reference

Stream UpdateValues

Stream UpdateValues

Updates multiple values for the specified stream.

Request

POST streams/{webId}/recorded

URL Parameters

  • webId

    The ID of the stream. 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 values were 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: The data reference does not support this operation.

Sample Request Body

[
  {
    "Timestamp": "2014-07-22T14:00:00Z",
    "UnitsAbbreviation": "m",
    "Good": true,
    "Questionable": false,
    "Value": 12.3
  },
  {
    "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