---
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

- UpdateFlowRequest — unresolved $ref

## Response `200`

Updated flow

- Flows
  - `id` string, required
  - `version` integer, required
  - `name` string, required
  - `label` string, nullable
  - `code` string, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required
  - `worker` unknown, required
  - `workerId` string, required
  - `deployments` unknown, required

## Other responses

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

## Changes

- **2025-02-04** `a3da5c68a303` — 1 breaking, 3 warning, 1 info
  - the request's body type/format changed from `object`/`` to ``/``
  - removed the request property `code`
  - removed the request property `label`
  - removed the request property `name`
  - …1 more

[Change history](https://skmtc.dev/brainbasehq/apis/brainbase-api/changes/api/workers/:workerId/flows/:flowId/put.md)

---

[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/a3da5c68a303/schema)
