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

# Update Workflow

> Update editable fields on a workflow such as its name and description. Use the lifecycle endpoints to change run state.

<Warning>
  **Legacy endpoint - deprecated.** Unversioned endpoints are scheduled for removal on **July 31, 2026**. A public v1 replacement is not currently listed in the v1 reference. This endpoint remains available for existing integrations until then.
</Warning>

Updates one or more editable fields on a workflow. The `name` and `description` can be edited at any time and the change applies immediately. The workflow's `status` cannot be changed through this endpoint, use the dedicated lifecycle endpoints ([Pause](/docs/api-reference/workflows/pause), [Resume](/docs/api-reference/workflows/resume), [Cancel](/docs/api-reference/workflows/cancel), [Activate](/docs/api-reference/workflows/activate)) so the audit trail records the intent cleanly.

## When to use this

* **Renaming a workflow** after the underlying campaign or sequence is renamed in your internal systems.
* **Editing the description** so dashboard viewers see a more accurate summary of what the workflow does.
* **Bulk metadata updates** when reorganizing workspaces across teams.

To change the graph (nodes and edges), use the workflow-nodes and workflow-edges endpoints. To change lead enrollment, use [Upload Workflow Leads](/docs/api-reference/v1/workflow-leads/add) and [Remove Lead](/docs/api-reference/v1/workflow-leads/delete).

## Path parameters

| Parameter | Description                                      |
| --------- | ------------------------------------------------ |
| `id`      | The workflow ID, for example `wfl_m3v7zb9rk2px`. |

## Errors

* `404 Not Found` is returned when the workflow does not exist.
* `400 Bad Request` is returned when the body contains no editable fields or when a value fails validation.
* `409 Conflict` is returned if you try to change `status` through this endpoint, use the lifecycle endpoints instead.

## Related endpoints

* [Pause Workflow](/docs/api-reference/workflows/pause): change run state.
* [Duplicate Workflow](/docs/api-reference/workflows/duplicate): clone before larger edits.
* [Get Workflow](/docs/api-reference/v1/workflows/get): confirm the new field values.


## OpenAPI

````yaml PATCH /workflows/{id}
openapi: 3.0.0
info:
  title: DialNexa API
  description: >-
    Public REST API for the DialNexa voice AI platform. Versioned endpoints are
    under /v1; unversioned endpoints are legacy and deprecated.
  version: 1.0.0
servers:
  - url: https://api.dialnexa.com
    description: DialNexa production API
security:
  - bearer: []
tags:
  - name: API Keys
  - name: Agent Functions
  - name: Agents V1
  - name: Agents2
  - name: Batch Calls
  - name: Batch Calls V1
  - name: Call Logs
  - name: Calls
  - name: Calls V1
  - name: Campaign Leads
  - name: Campaigns
  - name: External Webhooks
  - name: Knowledge Base
  - name: Knowledge Base V1
  - name: LLMs
  - name: LLMs V1
  - name: Languages
  - name: Languages V1
  - name: Organization Phone Numbers
  - name: Organization Phone Numbers V1
  - name: Phone Number Pricing
  - name: Phone Number Pricing V1
  - name: Transcribers
  - name: Transcribers V1
  - name: User Webhooks
  - name: User Webhooks V1
  - name: V1
  - name: Voices
  - name: Voices V1
  - name: Webcall
  - name: Workflow Leads
  - name: Workflow Leads V1
  - name: Workflows
  - name: Workflows V1
paths:
  /workflows/{id}:
    patch:
      tags:
        - Workflows
      summary: Update a workflow by ID
      description: >-
        **Legacy endpoint - deprecated, scheduled for removal on July 31,
        2026.** Use the `/v1` version for new integrations. 
      operationId: WorkflowsController_update
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
        - name: x-organization-id
          in: header
          description: RSA encrypted organization ID (base64 format)
          required: true
          schema:
            type: string
            example: BASE64_ENCRYPTED_ORG_ID_HERE
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateWorkflowDto'
      responses:
        '200':
          description: Workflow updated successfully
        '404':
          description: Workflow not found
        '500':
          description: Internal Server Error
      deprecated: true
components:
  schemas:
    UpdateWorkflowDto:
      type: object
      properties:
        title:
          type: string
          description: Title of the workflow (max 100 characters)
          example: Updated Customer Onboarding Workflow
          maxLength: 100
        description:
          type: string
          description: Description of the workflow
          example: Updated description
        status:
          type: string
          description: Status of the workflow
          enum:
            - draft
            - active
            - paused
            - completed
            - cancelled
          example: active
        fallback_variables:
          description: Workflow-level default values for lead variables missing on a lead
          example:
            - key: school_name
              default_value: Unknown School
          type: array
          items:
            $ref: '#/components/schemas/WorkflowFallbackVariableDto'
    WorkflowFallbackVariableDto:
      type: object
      properties:
        key:
          type: string
          description: Lead variable key
          example: school_name
        default_value:
          type: string
          description: Default value when the lead does not have this variable
          example: Unknown School
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````