---
title: "Update Pvc Voice Sample"
method: POST
path: "/v1/voices/pvc/{voice_id}/samples/{sample_id}"
tags: ["pvc-voices"]
---

# Update Pvc Voice Sample

`POST /v1/voices/pvc/{voice_id}/samples/{sample_id}`

## Request

- Base URL: `https://api.elevenlabs.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.elevenlabs.io/v1/voices/pvc/{voice_id}/samples/{sample_id}`
- Auth: none declared

Update a PVC voice sample - apply noise removal, select speaker, change trim times or file name.

## Path parameters

- `voice_id` string, required: Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
- `sample_id` string, required: Sample ID to be used

## Headers

- `xi-api-key` string, nullable: Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

## Request body

- BodyUpdatePVCVoiceSampleV1VoicesPvcVoiceIdSamplesSampleIdPost
  - `remove_background_noise` boolean: If set will remove background noise for voice samples using our audio isolation model. If the samples do not include background noise, it can make the quality worse.
  - `selected_speaker_ids` string[], nullable: Speaker IDs to be used for PVC training. Make sure you send all the speaker IDs you want to use for PVC training in one request because the last request will override the previous ones.
  - `trim_start_time` integer, nullable: The start time of the audio to be used for PVC training. Time should be in milliseconds
  - `trim_end_time` integer, nullable: The end time of the audio to be used for PVC training. Time should be in milliseconds
  - `file_name` string, nullable: The name of the audio file to be used for PVC training.

## Response `200`

Successful Response

- AddVoiceResponseModel
  - `voice_id` string, required: The ID of the voice.

## Other responses

- `422`: Validation Error

## Changes

- **2026-02-08** `5b595807512c`: 2 info
  - api operation id `Update_PVC_voice_sample_v1_voices_pvc__voice_id__samples__sample_id__post` removed and replaced with `edit_pvc_voice_sample`
  - added the new optional request property `file_name`
- **2025-05-16** `503db4198a44`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation/changes/v1/voices/pvc/:voice_id/samples/:sample_id/post.md)

---

[API](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation.md) - [All operations](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation/revisions/d04f5e77c40a?raw)
