StreamSet UpdateValues
- Last UpdatedJun 15, 2023
- 1 minute read
- PI System
- PI Web API Reference
- Developer
StreamSet UpdateValues
Updates multiple values for the specified streams.
Request
POST streamsets/{webId}/recorded
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 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
}
]
}
]