Meter Triggers

Get meter trigger

Changed on
get/metertriggers/{id}

Request

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

Path parameters

idinteger required

ID of the meterTrigger

Query parameters

expandstring[]

Response

Successfully retrieved meterTrigger's information

Example response

{
  "meterTrigger": {
    "workOrderTemplate": {
      "createdAt": "2022-01-01T00:00:00.000Z",
      "deletedAt": "2022-01-01T00:00:00.000Z",
      "updatedAt": "2022-01-01T00:00:00.000Z",
      "data": {
        "assigneeIds": [
          1
        ],
        "attachmentIds": [
          1
        ],
        "description": "A work order sample description",
        "partsUsed": [
          {
            "id": 963,
            "name": "Locknut - 1/8",
            "area": "tool room",
            "unitCost": 120,
            "availableQuantity": 10,
            "minimumQuantity": 5,
            "barcode": "bWFpbnRhaW54Cg==",
            "quantityUsed": 120,
            "locationId": 852
          }
        ],
        "priority": "MEDIUM",
        "procedure": {
          "title": "Control dashboard audit",
          "fields": [
            {
              "id": 1,
              "label": "Metal Parts: broken, loose, dented, rusty, missing",
              "type": "INSPECTION_CHECK",
              "choices": [
                "Partially"
              ],
              "attachmentId": 1,
              "attachments": [
                {
                  "id": 12345,
                  "mimeType": "image/png",
                  "fileName": "image.png",
                  "url": "http://example.com/image.png",
                  "createdAt": "2022-01-01T00:00:00.000Z",
                  "width": 220,
                  "height": 100
                }
              ],
              "urls": [
                {
                  "label": "MaintainX Website",
                  "link": "www.getmaintainx.com"
                }
              ]
            }
          ]
        },
        "tagsIds": [
          1
        ],
        "teamIds": [
          1
        ],
        "vendorIds": [
          1
        ]
      }
    }
  }
}

Changes

    • breaking

      the response property ////// became nullable for the status

    • warning

      removed the optional property ////// from the response with the status

    • warning

      removed the optional property //// from the response with the status

    • warning

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

    • warning

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

    • warning

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

    • warning

      added the new UNSUPPORTED 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

      added the optional property ////// to the response with the status

    • info

      added the optional property ////// to the response with the status

    • info

      added the optional property ////// to the response with the status

    • info

      added the optional property ////// to the response with the 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 meterTrigger/workOrderTemplate/data/title deprecated

    • info

      response property meterTrigger/workOrderTemplate/title deprecated

    • info

      added the required property ////// to the response with the status