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

# Update Workflow

> Change a Workflow's trigger or actions

Only provided fields change. Sending a new `workflow_data` replaces the whole
block list — trigger and actions together — so include every action you want
to keep.

## Path Parameters

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

## Body

<ParamField body="name" type="string" />

<ParamField body="description" type="string" />

<ParamField body="is_active" type="boolean" />

<ParamField body="workflow_data" type="object">
  Replaces the block list. See [Create Workflow](/api-reference/create-workflow) for
  the shape.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X PUT "https://api.clustr-ai.com/api/public/workflows/7f1e2a33-..." \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"name": "Hot accounts (renamed)"}'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "data": { "workflow": { "id": "7f1e2a33-...", "name": "Hot accounts (renamed)" } }
  }
  ```

  ```json 404 theme={null}
  {
    "success": false,
    "error": { "message": "workflow not found", "code": "NOT_FOUND" }
  }
  ```
</ResponseExample>
