---
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
  - `name` string, nullable
  - `description` string, nullable
  - `data` object, nullable
  - `folder_id` string, uuid, nullable
  - `endpoint_name` string, nullable
  - `mcp_enabled` boolean, nullable
  - `locked` boolean, nullable
  - `action_name` string, nullable
  - `action_description` string, nullable
  - `access_type` 'PRIVATE' | 'PUBLIC'
  - `fs_path` string, nullable

## Response `200`

Successful Response

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

## Other responses

- `422` — Validation Error

## Changes

- **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
- **2025-10-16** `9bd3e81318d7` — 5 warning, 2 info
  - removed the request property `workspace_id`
  - removed the optional property `detail/items/ctx` from the response with the `422` status
  - removed the optional property `detail/items/input` from the response with the `422` status
  - removed the optional property `name_key` from the response with the `200` status
  - …3 more

[Change 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/0be341779529/schema)
