---
title: "Update workflow"
method: PUT
path: "/api/v1/projects/{projectId}/workflows/{id}"
tags: ["Workflows"]
---

# Update workflow

`PUT /api/v1/projects/{projectId}/workflows/{id}`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/projects/{projectId}/workflows/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Replaces the definition and trigger. Executions already running are unaffected; the next one uses the new version.

## Path parameters

- `projectId` string, uuid, required
- `id` string, uuid, required

## Request body

- WorkflowRequest
  - `name` string, required
  - `description` string
  - `enabled` boolean
  - `definition` unknown
  - `triggerType` 'WEBHOOK_EVENT' | 'MANUAL' | 'SCHEDULE'
  - `triggerConfig` unknown

## Response `200`

OK

---

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