Meters
get/meters/{id}

Request

  • Base URL
    https://api.getmaintainx.com/v1
  • Auth
    HTTP bearer

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
    }
  }
}

Changes

    • warning

      added the new AUTOMATED_SENSOR enum value to the / response property for the response status

    • 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 meter/lastReading/id list-of-types was narrowed by removing types number from media type application/json of response 200

    • 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