---
title: "Update Voice Dictionary"
method: PATCH
path: "/v1/voice-agents/voice-dictionaries/{id}"
---

# Update Voice Dictionary

`PATCH /v1/voice-agents/voice-dictionaries/{id}`

Updates an existing voice dictionary.

## Path parameters

- `id` string, uuid, required

## Request body

- UpdateVoiceDictionaryRequest
  - `name` string — Updated name of the voice dictionary.
  - `words` object[] — Updated array of word pronunciation mappings.
    - `word` string
    - `pronunciation` string

## Response `200`

Successful response

- UpdateVoiceDictionaryResponse
  - `success` boolean
  - `message` string
  - `messageKey` string
  - `data` object
    - `id` string, uuid
    - `name` string
    - `words` object[]
    - `updatedAt` string, date-time

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Voice dictionary not found
- `500` — Server Side Error

---

[API](https://skmtc.net/tryhamsa/apis/hamsa-api.md) · [All operations](https://skmtc.net/tryhamsa/apis/hamsa-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tryhamsa/hamsa-api/versions/ecbeb5d8dc13/schema)
