---
title: "Update workflow metadata"
method: PATCH
path: "/api/workflows/{workflow_id}"
tags: ["workflows"]
---

# Update workflow metadata

`PATCH /api/workflows/{workflow_id}`

Updates mutable workflow metadata (name, description, default_view).

## Path parameters

- `workflow_id` string, required

## Request body

- UpdateWorkflowRequest — Request body for updating an existing saved workflow.
  - `default_view` 'workflow' | 'app' — New default view mode
  - `description` string — New description
  - `name` string — New display name

## Response `200`

Success

- WorkflowResponse — Full workflow entity including metadata and version history.
  - `created_at` string, date-time, required
  - `created_by` string, required
  - `default_view` 'workflow' | 'app'
  - `description` string
  - `forked_from` WorkflowForkedFrom — Reference to the parent workflow from which this workflow was forked.
    - `workflow_id` string
    - `workflow_version_id` string
  - `id` string, required
  - `latest_version` integer, required
  - `name` string
  - `updated_at` string, date-time, required

## Other responses

- `401` — Unauthorized
- `404` — Workflow not found
- `422` — Validation error
- `500` — Internal server error

## Changes

- **2026-06-03** `8560879e6188` — 2 breaking, 9 info
  - removed the required property `error` from the response with the `401` status
  - removed the required property `error` from the response with the `404` status
  - added the new optional request property `default_view`
  - for the `path` request parameter `workflow_id`, the type/format was generalized from `string`/`uuid` to `string`/``
  - …7 more
- **2026-05-22** `c4db9e1283df` — 2 breaking, 3 warning, 6 info
  - the response property `name` became optional for the status `200`
  - the `id` response's property type/format changed from `string`/`uuid` to `string`/`` for status `200`
  - removed the optional property `latest_version_id` from the response with the `200` status
  - removed the optional property `share_id` from the response with the `200` status
  - …7 more
- **2026-05-22** `09a5075587c8` — 3 info
  - api operation id `updateCloudWorkflow` removed and replaced with `updateWorkflow`
  - added the non-success response with the status `422`
  - added the non-success response with the status `500`
- **2026-05-08** `c9640fded659` — 1 info
  - endpoint added
- **2026-04-24** `a66055fa384e` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/comfy-org/apis/comfyui-api/changes/api/workflows/:workflow_id/patch.md)

---

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