Meter Readings

Meter Readings

Retrieve and record meter reading records.

FieldData TypePOST
MeterIDStringX
DescriptionStringX
MeterReadingDecimalX
UnitStringX
ReadingDateDateTimeX
EventStringX

Key: MeterID

Required property: MeterID

Endpoints

GET

URL: https://{site}.mvpplant.com/ODataApi/v1/GetMeterReadings

Description: Retrieve meter reading records.

POST

URL: https://{site}.mvpplant.com/ODataApi/v1/MeterReadings

Description: Create a meter reading record.

Body: Send the property values marked in the POST column.

OData Query Examples

  • Select specific fields:
    https://{site}.mvpplant.com/ODataApi/v1/GetMeterReadings?$select=MeterID,Description,MeterReading,ReadingDate

  • Filter by event:
    https://{site}.mvpplant.com/ODataApi/v1/GetMeterReadings?$filter=Event eq 'Reading'

  • Sort by reading date:
    https://{site}.mvpplant.com/ODataApi/v1/GetMeterReadings?$orderby=ReadingDate desc

  • Return the first 10 records:
    https://{site}.mvpplant.com/ODataApi/v1/GetMeterReadings?$top=10

Notes

  • Use MeterID as the key field for meter reading records.
  • Include only the fields you want to send in the request body.