---
title: "Update Flow"
method: PATCH
path: "/api/v1/flows/{flow_id}"
tags: ["Flows"]
---

# Update Flow

`PATCH /api/v1/flows/{flow_id}`

Update a flow.

## Path parameters

- `flow_id` string, uuid, required

## Request body

- FlowUpdate
  - `access_type` 'PRIVATE' | 'PUBLIC'
  - `action_description` string, nullable
  - `action_name` string, nullable
  - `data` object, nullable
  - `description` string, nullable
  - `endpoint_name` string, nullable
  - `folder_id` string, uuid, nullable
  - `fs_path` string, nullable
  - `locked` boolean, nullable
  - `mcp_enabled` boolean, nullable
  - `name` string, nullable
  - `workspace_id` string, uuid, nullable

## Response `200`

Successful Response

- FlowRead
  - `access_type` 'PRIVATE' | 'PUBLIC'
  - `action_description` string, nullable — The description of the action associated with the flow
  - `action_name` string, nullable — The name of the action associated with the flow
  - `data` object, nullable
  - `description` string, nullable
  - `endpoint_name` string, nullable
  - `folder_id` string, uuid, nullable, required
  - `gradient` string, nullable
  - `icon` string, nullable
  - `icon_bg_color` string, nullable
  - `id` string, uuid, required
  - `is_component` boolean, nullable
  - `locked` boolean, nullable
  - `mcp_enabled` boolean, nullable — Can be exposed in the MCP server
  - `name` string, required
  - `name_key` string, nullable — Stable i18n key derived from the original English name
  - `tags` string[], nullable — The tags of the flow
  - `updated_at` string, date-time, nullable
  - `user_id` string, uuid, nullable, required
  - `webhook` boolean, nullable — Can be used on the webhook endpoint
  - `workspace_id` string, uuid, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-06-08** `a5c4fa6a88f7` — 3 info
  - added the new optional request property `workspace_id`
  - added the optional property `name_key` to the response with the `200` status
  - added the optional property `workspace_id` to the response with the `200` status
- **2026-03-12** `830c31118215` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2026-03-06** `0be341779529` — 2 info
  - the endpoint scheme security `OAuth2PasswordBearerCookie` was added to the API
  - the endpoint scheme security `OAuth2PasswordBearer` was removed from the API
- **2026-02-18** `191b57fc530b` — 2 info
  - the endpoint scheme security `OAuth2PasswordBearer` was added to the API
  - the endpoint scheme security `OAuth2PasswordBearerCookie` was removed from the API
- **2026-02-10** `0be341779529` — 2 info
  - the endpoint scheme security `OAuth2PasswordBearerCookie` was added to the API
  - the endpoint scheme security `OAuth2PasswordBearer` was removed from the API

[Full history](https://skmtc.dev/langflow-ai/apis/langflow/changes/api/v1/flows/:flow_id/patch.md)

---

[API](https://skmtc.dev/langflow-ai/apis/langflow.md) · [All operations](https://skmtc.dev/langflow-ai/apis/langflow/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/langflow-ai/langflow/revisions/a5c4fa6a88f7/schema)
