cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP Predictive Asset Insights - Creating Measurement Data

e_giunta
Participant
693

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/b9e432f0d9dc491591f76e694104...

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

Accepted Solutions (0)

Answers (0)