---
title: "Update a flow"
method: PUT
path: "/api/workers/{workerId}/flows/{flowId}"
tags: ["Flows"]
---

# Update a flow

`PUT /api/workers/{workerId}/flows/{flowId}`

## Path parameters

- `workerId` string, required
- `flowId` string, required

## Request body

- object
  - `name` string
  - `label` string
  - `code` string

## Response `200`

Updated flow

## Other responses

- `400` — Invalid request body
- `401` — Unauthorized
- `404` — Flow not found

---

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