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

# Rename a flow or replace its steps



## OpenAPI

````yaml /openapi-v1.json patch /v1/flows/{id}
openapi: 3.0.0
info:
  title: Woku Client API v1
  description: >-
    Public REST API for programmatic management of woku Voice-of-Customer
    programs: trackers, VoC instruments (NPS, woku, CES, CSAT), action plans,
    support tickets, multi-channel sending and response capture. Requests are
    company-scoped by the API key; never send a company id.
  version: 1.0.0
  contact:
    name: Woku
    url: https://woku.app
    email: team@woku.app
servers:
  - url: https://clientapi.woku.app
    description: Production
security: []
tags: []
paths:
  /v1/flows/{id}:
    patch:
      tags:
        - v1 - flows
      summary: Rename a flow or replace its steps
      operationId: V1FlowsController_updateFlow
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
            format: ObjectId
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateFlowBodyDTO'
      responses:
        '200':
          description: Flow updated
        '404':
          description: Flow not found
      security:
        - bearer: []
components:
  schemas:
    UpdateFlowBodyDTO:
      type: object
      properties:
        name:
          type: string
          maxLength: 140
        steps:
          minItems: 1
          maxItems: 20
          description: The new full ordered list of steps.
          type: array
          items:
            $ref: '#/components/schemas/FlowStepBodyDTO'
    FlowStepBodyDTO:
      type: object
      properties:
        type:
          type: string
          enum:
            - woku
            - nps
            - csat
            - ces
          description: Kind of tool the respondent answers in this step.
        toolId:
          type: string
          format: ObjectId
          description: >-
            Tool id (woku, NPS tool, CSAT tool or CES tool). For an nps step,
            your company id means the company-level NPS.
      required:
        - type
        - toolId
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: API key
      type: http
      description: Company secret API key.

````

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