latestOpenAPI 3.0.02026-08-2217901.1 MB
ef9153fcac7c
Meters
Get meter
get/meters/{id}
Path parameters
idinteger required
ID of the meter
Query parameters
expandstring[]
To expand multiple fields: expand=asset&expand=location
Response
Successfully retrieved meter's information
Example response
{
"meter": {
"id": 123,
"assetId": 123,
"locationId": 123,
"creatorId": 123,
"updaterId": 123,
"uuid": "cd6fdffd-c9e2-4a40-9715-a182a6e5b557",
"description": "This meter is used for monitoring the temperature of the boiler",
"measurementType": "AUTOMATED_SENSOR",
"unit": "Celsius",
"createdAt": "2022-01-01T00:00:00.000Z",
"updatedAt": "2022-01-01T00:00:00.000Z",
"deletedAt": "2022-01-01T00:00:00.000Z",
"asset": {
"id": 963,
"name": "Forklift",
"description": "Forklift that is used to to move heavy equipments around the warehouse",
"parentId": 852,
"criticalityId": 150,
"locationId": 852,
"serialNumber": "000123ABC",
"createdAt": "2022-01-01T00:00:00.000Z",
"updatedAt": "2022-01-01T00:00:00.000Z",
"creatorId": 851
},
"location": {
"id": 963,
"name": "Warehouses",
"description": "The warehouse where we store the forklifts",
"address": "1090 main street, Franklin",
"parentId": 852,
"createdAt": "2022-01-01T00:00:00.000Z",
"updatedAt": "2022-01-01T00:00:00.000Z"
},
"lastReading": {
"meterId": 53,
"createdAt": "2022-01-01T00:00:00.000Z",
"readingDate": "2022-01-01T00:00:00.000Z",
"value": 120
}
}
}