Meter Triggers

Create meter trigger

Changed on
post/metertriggers

Request

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

Query parameters

skipWebhookboolean

Set skipWebhook=true, skipWebhook=1 or skipWebhook=yes to skip all webhooks upon successful operation on the endpoint. Learn more about webhooks

Headers

x-organization-idinteger

Required if using a multi organizations token

Request body

Example request

{
  "workOrderTemplate": {
    "data": {
      "assigneeIds": [
        1
      ],
      "description": "A work order sample description",
      "partsUsed": [
        {
          "partId": 963,
          "quantityUsed": 120,
          "locationId": 852
        }
      ],
      "priority": "MEDIUM",
      "procedure": {
        "id": 1234,
        "title": "Control dashboard audit",
        "fields": [
          {
            "label": "Metal Parts: broken, loose, dented, rusty, missing",
            "type": "INSPECTION_CHECK",
            "choices": [
              "Partially"
            ],
            "urls": [
              {
                "label": "MaintainX Website",
                "link": "www.getmaintainx.com"
              }
            ],
            "meterId": 1,
            "index": 1
          }
        ]
      },
      "tagsIds": [
        1
      ],
      "teamIds": [
        1
      ],
      "vendorIds": [
        1
      ]
    }
  }
}

Response

Successfully created the meter trigger

idnumber required

Id of the meter trigger

Example response

{
  "id": 1
}

Changes

    • breaking

      removed the media type application/octet-stream from the request body

    • warning

      removed the request property /////

    • info

      added the new optional header request parameter x-organization-id

    • info

      added the new optional query request parameter skipWebhook

    • info

      added the new optional request property ////

    • info

      added the new optional request property /////

    • info

      added the new optional request property /////

    • info

      added the new optional request property /////

    • info

      added the new optional request property /////

    • info

      added the new optional request property /////

    • info

      request property /// deprecated

    • info

      request property // deprecated

    • info

      request property / deprecated

    • info

      added the new CYCLE_COUNT enum value to the request property /////

    • info

      added the new DECREMENTED_BY_BASED_ON_LAST_READING enum value to the request property /

    • info

      added the new INCREMENTED_BY_BASED_ON_LAST_READING enum value to the request property /

    • info

      added the new UNSUPPORTED enum value to the request property /////

    • info

      the response property became required for the status