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

---

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