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

# Update Version Labels

> Change the title and description of a published version, including the live
one. The frozen configuration does not change.



## OpenAPI

````yaml patch /v1/agent/agents/{agent_id}/versions/{version_number}
openapi: 3.1.0
info:
  title: FishAudio OpenAPI
  version: '1'
servers:
  - description: Fish Audio API
    url: https://api.fish.audio
security: []
tags: []
paths:
  /v1/agent/agents/{agent_id}/versions/{version_number}:
    patch:
      tags:
        - Agents
      summary: Update Version Labels
      description: |-
        Change the title and description of a published version, including the
        live one. Only the labels change: the frozen configuration and its
        `config_hash` stay as they were. An explicit `null` clears a label, an
        omitted field keeps its value, and `{}` changes nothing.
      parameters:
        - in: path
          name: agent_id
          description: ''
          required: true
          schema:
            title: Agent Id
            type: string
          deprecated: false
        - in: path
          name: version_number
          description: ''
          required: true
          schema:
            title: Version Number
            type: integer
          deprecated: false
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublicAgentVersionUpdatePayload'
      responses:
        '200':
          description: Request fulfilled, document follows
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  version_number:
                    title: Version Number
                    type: integer
                  version_title:
                    anyOf:
                      - type: string
                      - type: 'null'
                    default: null
                    title: Version Title
                  version_description:
                    anyOf:
                      - type: string
                      - type: 'null'
                    default: null
                    title: Version Description
                  config_hash:
                    title: Config Hash
                    type: string
                  published_at:
                    format: date-time
                    title: Published At
                    type: string
                  is_live:
                    description: >-
                      Whether this is the version new sessions run. Exactly one
                      version of an agent is live, and after a rollback it is
                      not necessarily the highest version_number.
                    title: Is Live
                    type: boolean
                required:
                  - version_number
                  - config_hash
                  - published_at
                  - is_live
                type: object
        '401':
          description: No permission -- see authorization schemes
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                  reason:
                    anyOf:
                      - type: string
                      - type: 'null'
                    default: null
                    title: Reason
                required:
                  - status
                  - message
                type: object
        '404':
          description: Nothing matches the given URI
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                  reason:
                    anyOf:
                      - type: string
                      - type: 'null'
                    default: null
                    title: Reason
                required:
                  - status
                  - message
                type: object
        '422':
          description: ''
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                  reason:
                    anyOf:
                      - type: string
                      - type: 'null'
                    default: null
                    title: Reason
                required:
                  - status
                  - message
                type: object
        '503':
          description: The server cannot process the request due to a high load
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                  reason:
                    anyOf:
                      - type: string
                      - type: 'null'
                    default: null
                    title: Reason
                required:
                  - status
                  - message
                type: object
      security:
        - BearerAuth: []
      x-codeSamples:
        - lang: bash
          label: Update Version Labels
          source: |-
            curl --request PATCH \
              --url https://api.fish.audio/v1/agent/agents/<agent-id>/versions/3 \
              --header 'Authorization: Bearer <token>' \
              --header 'Content-Type: application/json' \
              --data '{
                "version_title": "Tighter greeting",
                "version_description": null
              }'
components:
  schemas:
    PublicAgentVersionUpdatePayload:
      additionalProperties: false
      description: |-
        Version label edit. Explicit null clears a label, an omitted field keeps
        it; `{}` writes nothing.
      properties:
        version_title:
          anyOf:
            - maxLength: 120
              type: string
            - type: 'null'
          default: null
          title: Version Title
        version_description:
          anyOf:
            - maxLength: 2000
              type: string
            - type: 'null'
          default: null
          title: Version Description
      title: PublicAgentVersionUpdatePayload
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

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