---
title: "PATCH /api/companies/{id}/workflows/{workflow_id}"
method: PATCH
path: "/api/companies/{id}/workflows/{workflow_id}"
tags: ["api"]
---

# PATCH /api/companies/{id}/workflows/{workflow_id}

`PATCH /api/companies/{id}/workflows/{workflow_id}`

## Request body

- Workflow
  - `id` string, uuid
  - `company_id` string
  - `event_source` string
  - `event_destination` string
  - `action` Action, required
    - `id` string, uuid
    - `payload` string
    - `name` string
    - `sentiment` 'negative' | 'neutral' | 'positive'
  - `event` CompanyEvent, required
    - `id` string, uuid
    - `event_id` string, uuid, required
    - `event_name` string, required
    - `risk_level` 'none' | 'low' | 'medium' | 'high'
  - `can_be_supressed` boolean, required
  - `auto_enroll` boolean
  - `channels` string[]

## Response `200`

OK

- Workflow
  - `id` string, uuid
  - `company_id` string
  - `event_source` string
  - `event_destination` string
  - `action` Action, required
    - `id` string, uuid
    - `payload` string
    - `name` string
    - `sentiment` 'negative' | 'neutral' | 'positive'
  - `event` CompanyEvent, required
    - `id` string, uuid
    - `event_id` string, uuid, required
    - `event_name` string, required
    - `risk_level` 'none' | 'low' | 'medium' | 'high'
  - `can_be_supressed` boolean, required
  - `auto_enroll` boolean
  - `channels` string[]

---

[API](https://skmtc.dev/haekka/apis/snippets-api.md) · [All operations](https://skmtc.dev/haekka/apis/snippets-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/haekka/snippets-api/revisions/2a72ba99e389/schema)
