Meter Readings
Retrieve and record meter reading records.
| Field | Data Type | POST |
|---|---|---|
| MeterID | String | X |
| Description | String | X |
| MeterReading | Decimal | X |
| Unit | String | X |
| ReadingDate | DateTime | X |
| Event | String | X |
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
MeterIDas the key field for meter reading records. - Include only the fields you want to send in the request body.
