> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kadoa.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a trigger

> Update trigger properties (eventType, enabled)



## OpenAPI

````yaml patch /v4/workflows/{workflowId}/triggers/{triggerId}
openapi: 3.0.3
info:
  title: Kadoa API
  version: 3.0.0
  contact:
    name: Support
    email: support@kadoa.com
servers:
  - url: https://api.kadoa.com
security: []
paths:
  /v4/workflows/{workflowId}/triggers/{triggerId}:
    patch:
      tags:
        - Workflow Triggers
      summary: Update a trigger
      description: Update trigger properties (eventType, enabled)
      parameters:
        - name: workflowId
          in: path
          required: true
          schema:
            type: string
        - name: triggerId
          in: path
          required: true
          schema:
            type: string
        - name: x-api-key
          in: header
          required: false
          schema:
            type: string
        - name: Authorization
          in: header
          required: false
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                eventType:
                  type: string
                  enum:
                    - workflow_started
                    - workflow_finished
                    - workflow_export_completed
                    - workflow_failed
                    - workflow_recovered
                    - workflow_sample_finished
                    - workflow_data_change
                    - workflow_validation_anomaly_change
                    - workflow_health_degraded
                enabled:
                  type: boolean
      responses:
        '200':
          description: Trigger updated successfully
        '400':
          description: Invalid input
        '401':
          description: Unauthorized
        '404':
          description: Trigger or workflow not found
        '409':
          description: Update would create a duplicate
        '500':
          description: Internal server error
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for authentication
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Bearer token for authentication

````