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

# Update version

> Update an existing version. See [Versions](https://docs.galtea.ai/concepts/product/version).



## OpenAPI

````yaml https://api.galtea.ai/openapi.json patch /versions/{id}
openapi: 3.0.0
info:
  version: 1.0.0
  title: Product Management Service API
  description: API documentation for Product Management Service
  contact:
    name: Galtea AI
servers:
  - url: https://api.galtea.ai
security:
  - bearerAuth: []
tags: []
externalDocs:
  description: Galtea Platform Documentation
  url: https://docs.galtea.ai
paths:
  /versions/{id}:
    patch:
      tags:
        - versions
      summary: Update version
      description: >-
        Update an existing version. See
        [Versions](https://docs.galtea.ai/concepts/product/version).
      operationId: updateVersion
      parameters:
        - name: id
          in: path
          description: Version ID
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Version'
      responses:
        '200':
          description: Version updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Version'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Version not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    Version:
      type: object
      properties:
        id:
          type: string
          example: ver_123
        productId:
          type: string
          example: prod_123
        userId:
          type: string
          nullable: true
          example: user_123
        name:
          type: string
          example: 1.0.0
        description:
          type: string
          nullable: true
          example: Version description
        modelId:
          type: string
          nullable: true
          example: model_123
        systemPrompt:
          type: string
          nullable: true
          example: You are a helpful assistant
        datasetUri:
          type: string
          nullable: true
          example: https://example.com/dataset.csv
        datasetDescription:
          type: string
          nullable: true
          example: Training dataset
        guardrails:
          type: string
          nullable: true
          example: Safety guidelines
        initializationEndpointConnectionId:
          type: string
          nullable: true
          example: ec_123
        conversationEndpointConnectionId:
          type: string
          nullable: true
          example: ec_123
        finalizationEndpointConnectionId:
          type: string
          nullable: true
          example: ec_123
        phoneConnectionId:
          type: string
          nullable: true
          description: >-
            The version's phone connection (telephony conversation target). At
            most one conversation target may be set across
            conversationEndpointConnectionId, phoneConnectionId, and
            webRtcConnectionId.
          example: phoneConnection_123
        webRtcConnectionId:
          type: string
          nullable: true
          description: >-
            The version's WebRTC connection (live two-way audio conversation
            target). At most one conversation target may be set across
            conversationEndpointConnectionId, phoneConnectionId, and
            webRtcConnectionId.
          example: webRtcConnection_123
        parentVersionId:
          type: string
          nullable: true
          example: ver_122
          description: >-
            Id of the version this one was revised from (its direct parent in
            the revision lineage). On create, providing this value records the
            parent edge; the parent must belong to the same product. Omit or
            null to create a root version with no parent. On responses, this is
            the recorded parent edge (null for roots).
        createdAt:
          type: string
          format: date-time
        deletedAt:
          type: string
          format: date-time
          nullable: true
    Error:
      type: object
      properties:
        error:
          type: string
          example: Error type
        message:
          type: string
          example: Error message description
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key authorization. Pass your API key in the Authorization header as
        a Bearer token. Both new (`gsk_*`) and legacy (`gsk-`) API keys are
        accepted, e.g. `Authorization: Bearer gsk_...` or `Authorization: Bearer
        gsk-...`.

````