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

# Update exit path

> Changes the name, the exit condition, or both on an exit path. Workflow ports follow the path by ID, so links made on it stay in place.



## OpenAPI

````yaml /specs-prettified/realtime/openapi.stable.json patch /v1/stable/playbook-path/{pathID}
openapi: 3.0.0
info:
  title: Realtime
  description: Realtime gateway API service
  version: 1.0.0
  contact: {}
servers:
  - url: https://realtime-api.voiceflow.com
security: []
tags: []
paths:
  /v1/stable/playbook-path/{pathID}:
    patch:
      tags:
        - Playbook Path
      summary: Update exit path
      description: Changes the name, the exit condition, or both on an exit path.
        Workflow ports follow the path by ID, so links made on it stay in place.
      operationId: StablePlaybookPathController_update
      parameters:
        - name: pathID
          required: true
          in: path
          schema:
            type: string
          x-vf-doc:
            description: The ID of the exit path to operate on.
          description: The ID of the exit path to operate on.
        - name: projectID
          required: true
          in: query
          schema:
            type: string
            description: The ID of the project to operate on.
        - name: environmentAlias
          required: true
          in: query
          schema:
            type: string
            description: The alias of the environment to operate on (e.g. `main`).
        - name: playbookID
          required: true
          in: query
          schema:
            type: string
            description: The ID of the playbook the exit path belongs to.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              allOf:
                - $ref: "#/components/schemas/StablePlaybookPathUpdateRequest"
      responses:
        "200":
          description: Returns the updated exit path.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StablePlaybookPathResponse"
          x-vf-doc:
            description: Returns the updated exit path.
      security:
        - token: []
components:
  schemas:
    StablePlaybookPathUpdateRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 255
          description: "The name of the exit path, trimmed. Use Latin letters, digits,
            spaces, hyphens and underscores, as the editor does: the runtime
            turns the name into the snake_case name of the exit tool the model
            calls."
        description:
          nullable: true
          description: "The exit condition: the model reads it to decide when to leave the
            playbook through this path."
          type: string
      additionalProperties: false
    StablePlaybookPathResponse:
      type: object
      properties:
        path:
          $ref: "#/components/schemas/StablePlaybookPath"
      required:
        - path
    StablePlaybookPath:
      type: object
      properties:
        id:
          type: string
        playbookID:
          type: string
          description: The ID of the playbook this exit path belongs to.
        name:
          type: string
          description: The name of the exit path. It labels the port on every Playbook
            step that runs this playbook, and the runtime turns it into the name
            of the exit tool the model calls.
        description:
          nullable: true
          description: "The exit condition: the model reads it to decide when to leave the
            playbook through this path."
          type: string
        createdAt:
          type: string
          format: date-time
          pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
        updatedAt:
          type: string
          format: date-time
          pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
      required:
        - id
        - playbookID
        - name
        - description
        - createdAt
        - updatedAt
  securitySchemes:
    token:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: Voiceflow bearer token
````
