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

# Update a voice clone

> Updates the name, language, or gender of a voice clone.



## OpenAPI

````yaml /openapi/voice-clones.yml patch /voice_clones/{id}
openapi: 3.1.0
info:
  title: Voice Clones API
  version: 2.0.0
  description: >-
    Capture and manage voice identities as clones for use in text-to-speech
    synthesis.
  contact:
    email: support@telnyx.com
servers:
  - url: https://api.telnyx.com/v2
security:
  - bearerAuth: []
tags:
  - name: Voice Clones
    description: >-
      Capture and manage voice identities as clones for use in text-to-speech
      synthesis.
paths:
  /voice_clones/{id}:
    patch:
      tags:
        - Voice Clones
      summary: Update a voice clone
      description: Updates the name, language, or gender of a voice clone.
      operationId: updateVoiceClone
      parameters:
        - name: id
          in: path
          required: true
          description: The voice clone UUID.
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VoiceCloneUpdateRequest'
      responses:
        '200':
          description: Voice clone updated successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VoiceCloneResponse'
        '401':
          description: Unauthorized — missing or invalid bearer token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/voice-designs_ErrorResponse'
        '404':
          description: Voice clone not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/voice-designs_ErrorResponse'
        '422':
          description: Unprocessable entity — validation error in the request body.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/voice-designs_ErrorResponse'
      x-codeSamples:
        - lang: JavaScript
          source: >-
            import Telnyx from 'telnyx';


            const client = new Telnyx({
              apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
            });


            const voiceClone = await
            client.voiceClones.update('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {
              name: 'updated-clone',
            });


            console.log(voiceClone.data);
        - lang: Python
          source: |-
            import os
            from telnyx import Telnyx

            client = Telnyx(
                api_key=os.environ.get("TELNYX_API_KEY"),  # This is the default and can be omitted
            )
            voice_clone = client.voice_clones.update(
                id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
                name="updated-clone",
            )
            print(voice_clone.data)
        - lang: Go
          source: "package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/team-telnyx/telnyx-go\"\n\t\"github.com/team-telnyx/telnyx-go/option\"\n)\n\nfunc main() {\n\tclient := telnyx.NewClient(\n\t\toption.WithAPIKey(\"My API Key\"),\n\t)\n\tvoiceClone, err := client.VoiceClones.Update(\n\t\tcontext.TODO(),\n\t\t\"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e\",\n\t\ttelnyx.VoiceCloneUpdateParams{\n\t\t\tName: \"updated-clone\",\n\t\t},\n\t)\n\tif err != nil {\n\t\tpanic(err.Error())\n\t}\n\tfmt.Printf(\"%+v\\n\", voiceClone.Data)\n}\n"
        - lang: Java
          source: |-
            package com.telnyx.sdk.example;

            import com.telnyx.sdk.client.TelnyxClient;
            import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
            import com.telnyx.sdk.models.voiceclones.VoiceCloneUpdateParams;
            import com.telnyx.sdk.models.voiceclones.VoiceCloneUpdateResponse;

            public final class Main {
                private Main() {}

                public static void main(String[] args) {
                    TelnyxClient client = TelnyxOkHttpClient.fromEnv();

                    VoiceCloneUpdateParams params = VoiceCloneUpdateParams.builder()
                        .id("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
                        .name("updated-clone")
                        .build();
                    VoiceCloneUpdateResponse voiceClone = client.voiceClones().update(params);
                }
            }
        - lang: Ruby
          source: >-
            require "telnyx"


            telnyx = Telnyx::Client.new(api_key: "My API Key")


            voice_clone =
            telnyx.voice_clones.update("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            name: "updated-clone")


            puts(voice_clone)
        - lang: CLI
          source: |-
            telnyx voice-clones update \
              --api-key 'My API Key' \
              --id 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e \
              --name updated-clone
components:
  schemas:
    VoiceCloneUpdateRequest:
      type: object
      description: Request body for updating a voice clone.
      required:
        - name
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 255
          description: New name for the voice clone.
        language:
          type: string
          description: Updated ISO 639-1 language code or `auto`.
        gender:
          type: string
          enum:
            - male
            - female
            - neutral
          description: Updated gender for the voice clone.
      example:
        name: updated-clone
    VoiceCloneResponse:
      type: object
      description: Response envelope for a single voice clone.
      properties:
        data:
          $ref: '#/components/schemas/VoiceCloneData'
      example:
        data:
          record_type: voice_clone
          id: 660f9511-f3ac-52e5-b827-557766551111
          source_voice_design_id: 550e8400-e29b-41d4-a716-446655440000
          source_voice_design_version: 1
          name: clone-narrator
          language: en
          gender: male
          label: Speak in a warm, friendly tone
          created_at: '2024-01-01T00:00:00Z'
          updated_at: '2024-01-01T00:00:00Z'
          provider: Telnyx
          provider_supported_models:
            - Qwen3TTS
          provider_voice_id: 660f9511-f3ac-52e5-b827-557766551111
    voice-designs_ErrorResponse:
      type: object
      description: Standard error response envelope.
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/ErrorObject'
      example:
        errors:
          - code: '10005'
            title: Resource not found
            detail: Voice design not found
    VoiceCloneData:
      type: object
      description: A voice clone object.
      properties:
        record_type:
          type: string
          enum:
            - voice_clone
          description: Identifies the resource type.
        id:
          type: string
          format: uuid
          description: Unique identifier for the voice clone.
        source_voice_design_id:
          type:
            - string
            - 'null'
          format: uuid
          description: UUID of the source voice design. `null` for upload-based clones.
        source_voice_design_version:
          type:
            - integer
            - 'null'
          description: >-
            Version of the source voice design used. `null` for upload-based
            clones.
        name:
          type: string
          description: Name of the voice clone.
        language:
          type:
            - string
            - 'null'
          description: ISO 639-1 language code of the voice clone.
        gender:
          type:
            - string
            - 'null'
          enum:
            - male
            - female
            - neutral
            - null
          description: Gender of the voice clone.
        label:
          type:
            - string
            - 'null'
          description: >-
            Voice style description. If not explicitly set on upload, falls back
            to the source design's prompt text.
        created_at:
          type: string
          format: date-time
          description: Timestamp when the voice clone was created.
        updated_at:
          type: string
          format: date-time
          description: Timestamp when the voice clone was last updated.
        provider:
          type: string
          enum:
            - telnyx
            - minimax
            - Telnyx
            - Minimax
          description: Voice synthesis provider used for this clone.
        provider_supported_models:
          type: array
          items:
            type: string
          description: List of TTS model identifiers supported by this clone's provider.
        provider_voice_id:
          type:
            - string
            - 'null'
          description: >-
            Provider-specific voice identifier used for TTS synthesis. For
            Telnyx clones this equals the clone ID; for Minimax it is the
            Minimax-assigned voice ID.
    ErrorObject:
      type: object
      description: A single error object.
      properties:
        code:
          type: string
          description: Telnyx-specific error code.
        title:
          type: string
          description: Short, human-readable summary of the error.
        detail:
          type: string
          description: Detailed, human-readable explanation of the error.
        source:
          type: object
          description: Reference to the source of the error.
          properties:
            pointer:
              type: string
              description: A JSON Pointer (RFC 6901) to the field that caused the error.

````