---
title: "Update Workflow By Id"
method: PUT
path: "/workflows/{workflow_id}"
tags: ["workflows", "alerts"]
---

# Update Workflow By Id

`PUT /workflows/{workflow_id}`

Update a workflow

## Path parameters

- `workflow_id` string, required

## Response `201`

Successful Response

- WorkflowCreateOrUpdateDTO
  - `workflow_id` string, required
  - `status` 'created' | 'updated', required
  - `revision` integer

## Other responses

- `422` — Validation Error

---

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