latestOpenAPI 3.0.02026-08-2217901.1 MB

ef9153fcac7c

Meter Triggers

Update Meter Trigger's Work Order Template

patch/metertriggers/{id}/workordertemplates

Path parameters

idinteger required

ID of the work order template

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

Request body

procedureTemplateIdinteger nullable

ID of the procedure template used

saveProcedureAsTemplateboolean nullable

Save the procedure in data as a new procedure template

titlestring

Title of the work order that will be generated. Same string for meter trigger's name. Setting this will also set the corresponding meter's trigger name.

Example request

{
  "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 edited the procedure template