StreamSet UpdateValueAdHoc
- Last UpdatedJun 15, 2023
- 1 minute read
- PI System
- PI Web API Reference
- Developer
StreamSet UpdateValueAdHoc
Updates a single value for the specified streams. See Stream for more information.
Request
POST streamsets/value
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 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
}
}
]