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

PI Web API Reference

StreamSet UpdateValuesAdHoc

StreamSet UpdateValuesAdHoc

Updates multiple values for the specified streams. See Stream for more information.

Request

POST streamsets/recorded

URL Parameters

  • 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: Unsupported operation on the given AF object.

Sample Request Body

[
  {
    "WebId": "I1AbEDqD5loBNH0erqeqJodtALAYIKyyz2F5BGAxQAVXYRDBAGyPedZG1sUmxOOclp3Flwg",
    "Items": [
      {
        "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
      }
    ]
  },
  {
    "WebId": "I1AbEDqD5loBNH0erqeqJodtALAYIKyyz2F5BGAxQAVXYRDBAGyPedZG1sUmxOOclp3Flwg",
    "Items": [
      {
        "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