> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lavendly.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update workflow

> Replace fields on a workflow. Pass only what you want to change.

<ParamField path="id" type="string" required>Workflow id.</ParamField>

### Body

Any subset of the [create body](/api-reference/workflows/create) fields.
Omitted fields are left unchanged. `version` is bumped on every successful
write.

### Response

The updated workflow record.

<RequestExample>
  ```bash cURL theme={null}
  curl -X PUT https://api.lavendly.ai/v1/workflows/wf_xyz \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer $LAVENDLY_API_KEY' \
    -d '{ "name": "Bookshop fox, v2" }'
  ```
</RequestExample>

Returns `413 workflow_too_large` if the serialized graph exceeds 5 MB.
