---
title: "Update Handler"
method: PUT
path: "/v1/ai/voice/{id}"
---

# Update Handler

`PUT /v1/ai/voice/{id}`

If a user tries to update a voice that is not owned by them, this call will return an error unless 'starred' is
one of the present parameters. The user will be able to star/unstar voices that do not belong to them, but their
other changes will not be recorded.

## Path parameters

- `id` string, required

## Headers

- `x-api-key` string

## Cookies

- `lmnt-auth0` string, nullable

## Request body

- UpdateVoiceRequest
  - `name` string, nullable
  - `description` string, nullable
  - `gender` string, nullable
  - `starred` boolean, nullable
  - `tags` string[], nullable

## Response `200`

Successful Response

- UpdateVoiceResponse
  - `voice` Voice, required
    - `id` string, required
    - `name` string, required
    - `state` 'preparing' | 'pending' | 'training' | 'ready' | 'broken' | 'cancelled', required
    - `owner` 'system' | 'me' | 'all', required
    - `type` 'instant' | 'professional' | 'intrinsic', required
    - `description` string, nullable
    - `gender` string, nullable
    - `starred` boolean, nullable
    - `tags` string[], nullable
    - `preview_url` string, uri, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/lmnt/apis/yapster.md) · [All operations](https://skmtc.net/lmnt/apis/yapster/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lmnt/yapster/revisions/f153248e1350/schema)
