List meters
Changed onEndpoint used to list meter resources
Request
- Base URLhttps://api.getmaintainx.com/v1
- AuthHTTP bearer
Query parameters
Last pagination reference
max number of Meters returned
The measurement type of the meter to filter by
To filter by multiple asset IDs: assets=123&assets=456
To expand multiple fields: expand=asset&expand=location
Headers
Required if using a multi organizations token
Response
Successfully fetched Meters list
Example response
{
"meters": [
{
"id": 123,
"unit": "Celsius",
"measurementType": "AUTOMATED_SENSOR",
"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
}
}
]
}Changes
- info
the response property
became required for the status - info
the response property
became required for the status
- info
- info
added the new optional
headerrequest parameterx-organization-id - info
added the new optional
queryrequest parameterassets - info
added the new optional
queryrequest parametermeasurementType - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
response property
meters/items/lastReading/idlist-of-types was narrowed by removing typesnumberfrom media typeapplication/jsonof response200 - info
added the required property
///to the response with the status - info
added the required property
///to the response with the status - info
added the required property
///to the response with the status - info
added the required property
///to the response with the status - info
added the required property
///to the response with the status - info
added the required property
///to the response with the status - info
added the required property
//to the response with the status
- info