---
title: "Update meter trigger"
method: PATCH
path: "/metertriggers/{id}"
tags: ["Meter Triggers"]
---

# Update meter trigger

`PATCH /metertriggers/{id}`

## Path parameters

- `id` integer, required

## Query parameters

- `skipWebhook` boolean

## Request body

- object — The meter trigger update data
  - `meterTrigger` object
    - `meterId` integer
    - `workOrderTemplateId` integer — Id of an existing work order template. NOTE: If this changes, the name of the meter trigger will also changed to match the name of the linked work order template.
    - `amount` number
    - `condition` 'DECREMENTED_BY' | 'INCREMENTED_BY' | 'IS_EQUAL' | 'IS_GREATER' | 'IS_LESS' | 'INCREMENTED_BY_BASED_ON_LAST_READING' | 'DECREMENTED_BY_BASED_ON_LAST_READING'
    - `dataPoints` object
      - `numerator` integer, required — The number of data points out of "denominator" data points to trigger. E.g: 3 points out of 5 must be in a triggering state
      - `denominator` integer, required — The window of points where the condition gets checked
    - `description` string
    - `minDateForProcessing` string, date-time — Date that the trigger will start to be active
    - `name` string — Name of the trigger
    - `nextTriggerValue` number — Can be set to override the first trigger value
    - `period` integer, nullable — Window in seconds where the data points can be checked

## Response `204`

Successfully updated the meter trigger

## Other responses

- `400` — Failed to create the meter trigger
- `401` — Invalid token
- `404` — Could not find the specified meter trigger.

---

[API](https://skmtc.net/getmaintainx/apis/maintainx-api.md) · [All operations](https://skmtc.net/getmaintainx/apis/maintainx-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getmaintainx/maintainx-api/revisions/ef9153fcac7c/schema)
