---
title: "Update a DM automation trigger"
method: PATCH
path: "/v2/dm-automations/{flowId}/triggers/{triggerId}"
tags: ["automations"]
---

# Update a DM automation trigger

`PATCH /v2/dm-automations/{flowId}/triggers/{triggerId}`

## Request

- Base URL: `https://backend.blotato.com`
- URL: `https://backend.blotato.com/v2/dm-automations/{flowId}/triggers/{triggerId}`
- Auth: API key in header `blotato-api-key`

Turns one trigger of a DM automation on or off. It takes effect immediately on a live automation, and does not require an update to the flow. Pull the trigger ID from the automation's `triggers`. At least one trigger must stay active while the automation is live.

## Path parameters

- `flowId` string, required
- `triggerId` string, required

## Request body

- object
  - `patch` object, required
    - `isActive` boolean, required

## Response `200`

Default Response

- object
  - `trigger` union, required
    - object
      - `id` string, required
      - `isActive` boolean
      - `keywords` string[], required
      - `postId` string, nullable
      - `type` 'comment-received', required
    - object
      - `id` string, required
      - `isActive` boolean
      - `keywords` string[], required
      - `type` 'message-received', required

## Other responses

- `404`: Not found
- `422`: Validation error
- `500`: Default Response

## Changes

- **2026-09-15** `aa61bc5747f2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/blotato/apis/blotato-api/changes/v2/dm-automations/:flowId/triggers/:triggerId/patch.md)

---

[API](https://skmtc.dev/blotato/apis/blotato-api.md) - [All operations](https://skmtc.dev/blotato/apis/blotato-api/llms.txt) - [OpenAPI document](https://skmtc.dev/blotato/apis/blotato-api/revisions/1efa7629dbf3?raw)
