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

> Update a persona by ID.



## OpenAPI

````yaml /specs-prettified/realtime/openapi.stable.json patch /v1/stable/persona/{personaID}
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/persona/{personaID}:
    patch:
      tags:
        - Persona
      summary: Update persona
      description: Update a persona by ID.
      operationId: StablePersonaController_update
      parameters:
        - name: personaID
          required: true
          in: path
          schema:
            type: string
        - 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`).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              allOf:
                - $ref: "#/components/schemas/StablePersonaUpdateRequest"
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StableUpdateResponse"
      security:
        - token: []
components:
  schemas:
    StablePersonaUpdateRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 255
          description: The name of the persona. Must not already be used by another
            persona in this environment.
        items:
          type: array
          items:
            $ref: "#/components/schemas/StablePersonaItemInput"
          description: "The variable values this persona presets. On update this replaces
            the whole list: send every item the persona should keep. An item
            read back with a null variable cannot be kept: leave it out, or name
            an existing variable in its place."
      additionalProperties: false
    StablePersonaItemInput:
      type: object
      properties:
        variable:
          type: string
          description: The exact name of an existing variable in this environment. Each
            variable may appear at most once in a persona.
        value:
          nullable: true
          description: The value the variable is set to when a test runs with this
            persona. Null leaves it unset.
          type: string
      required:
        - variable
        - value
      additionalProperties: false
    StableUpdateResponse:
      type: object
      properties:
        message:
          type: string
          description: A human-readable message confirming the update.
      required:
        - message
  securitySchemes:
    token:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: Voiceflow bearer token
````
