Skip to Content
1
May 11, 2021 at 08:41 AM

SAP Predictive Asset Insights - Creating Measurement Data

387 Views Last edit May 11, 2021 at 08:42 AM 2 rev

Hello,

does anyone know how to format the body of the POST request for inserting measurement data on SAP PAI. Below are the references of the documentation:

https://help.sap.com/viewer/c5204d715b19467099bd32c370830929/2102/en-US/b9e432f0d9dc491591f76e69410463f9.html

https://help.sap.com/doc/c983364e2dae46ac96dfc366c61ebff6/2102/en-US/Time%20Series%20APIs.html#/

It is not clear to me:

- how to send multiple measurements

- how to associate the timestamp with the measurement

The goal is that of the example -> send multiple temperature measurements with relative timestamp

POST /api/v1/measurements/equipment/{equipmentId}/template/{templateId}/indicatorGroup/{indicatorGroupId}

body: [{

"temperature": 38,

"timestamp": "2021-06-05T08:15:27.432Z"

}, {

"temperature": 40,

"timestamp": "2021-06-05T08:15:30.324Z"

}]

Also is necessary to have a custom timestamp indicator or the API can manage automatically the timestamp of measure?

Documentation is unclear about request formatThank you in advance