# Rename a saved voice

- **Method:** `POST`
- **Path:** `/api/v1/voices/{voice_id}/name`
- **Operation ID:** `rename_voice_api_v1_voices__voice_id__name_post`
- **Tags:** Voices

Update a saved voice's display name.

## Effective servers

- `http://127.0.0.1:8100`

  Voice Creator Pro on this computer

## Path parameters

- **`voice_id` (required)**: `string`

## Request body

**Required:** `true`

**Content type:** `application/json`

schema: `RenameVoiceRequest`

- **`name` (required)**: `string`

  New display name for the voice

**Example:**

```json
{
  "name": "My narrator voice"
}
```

## Responses

### 200 Successful Response

**Content type:** `application/json`

schema: `SuccessMessageResponse`

- **`success` (required)**: `boolean`

  Whether the operation succeeded
- **`message`**: `string`, default: `""`

  Human-readable result message

**Example:**

```json
{
  "success": true,
  "message": ""
}
```

### 400 Invalid voice ID format.

### 404 Voice not found.

### 422 Validation Error

**Content type:** `application/json`

schema: `HTTPValidationError`

- **`detail`**: `array`

  **Items:**

  schema: `ValidationError`
  - **`loc` (required)**: `array of (string | integer)`
  - **`msg` (required)**: `string`
  - **`type` (required)**: `string`
  - **`ctx`**: `object`
  - **`input`**: `any`

**Example:**

```json
{
  "detail": [
    {
      "loc": [
        ""
      ],
      "msg": "",
      "type": "",
      "input": null,
      "ctx": {}
    }
  ]
}
```

## Schemas

- `HTTPValidationError` — shown above.
- `RenameVoiceRequest` — shown above.
- `SuccessMessageResponse` — shown above.
- `ValidationError` — shown above.
