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

```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)"}'
```

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

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


## OpenAPI

````yaml PUT /workflows/{id}
openapi: 3.1.0
info:
  title: Clustr Public API
  description: >
    Programmatic access to your Clustr network: import connectors, search warm
    intros (opportunities), and manage target accounts.


    ## Authentication

    All endpoints require a Bearer token (API key) in the `Authorization`
    header.


    ```

    Authorization: Bearer <your_api_key>

    ```


    API keys can be created and managed from the [API settings
    page](https://app.clustr-ai.com/api).
  version: '1.0'
  contact:
    name: Clustr Support
    url: https://clustr-ai.com
servers:
  - url: https://api.clustr-ai.com/api/public
    description: Production
security:
  - BearerAuth: []
paths:
  /workflows/{id}:
    parameters:
      - name: id
        description: >-
          The Workflow's Clustr ID (`wf_…`). The id from earlier responses also
          works.
        in: path
        required: true
        schema:
          type: string
        example: wf_kdyc1a5bp0s05kv9dyc1ratd95
    put:
      tags:
        - Workflows
      summary: Update Workflow
      description: Updates a Workflow. Only the fields you send change.
      operationId: updateWorkflow
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateWorkflowRequest'
      responses:
        '200':
          description: The updated Workflow
        '400':
          description: Invalid trigger or action configuration
        '401':
          description: Invalid or missing API key
        '404':
          description: No such Workflow
components:
  schemas:
    UpdateWorkflowRequest:
      type: object
      description: Only provided fields are changed.
      properties:
        name:
          type: string
        description:
          type: string
        is_active:
          type: boolean
        workflow_data:
          type: object
          description: >-
            Replaces the block list. See [Create
            Workflow](/api-reference/create-workflow) for

            the shape.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: The API key you created on the API settings page of the Clustr app.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.