---
title: "Update a trigger"
method: PATCH
path: "/v4/workflows/{workflowId}/triggers/{triggerId}"
tags: ["Workflow Triggers"]
---

# Update a trigger

`PATCH /v4/workflows/{workflowId}/triggers/{triggerId}`

## Request

- Base URL: `https://api.kadoa.com`
- URL: `https://api.kadoa.com/v4/workflows/{workflowId}/triggers/{triggerId}`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Update trigger properties (eventType, enabled)

## Path parameters

- `workflowId` string, required
- `triggerId` string, required

## Headers

- `x-api-key` string
- `Authorization` string

## Request body

- object
  - `eventType` 'workflow_started' | 'workflow_finished' | 'workflow_export_completed' | 'workflow_failed' | 'workflow_recovered' | 'workflow_sample_finished' | 'workflow_data_change' | 'workflow_data_quality_change' | 'workflow_health_degraded'
  - `enabled` boolean

## Response `200`

Trigger updated successfully

## Other responses

- `400`: Invalid input
- `401`: Unauthorized
- `404`: Trigger or workflow not found
- `409`: Update would create a duplicate
- `500`: Internal server error

---

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