---
title: "Patch dictionary"
method: PATCH
path: "/pronunciation-dictionaries/{id}"
tags: ["Pronunciation Dictionaries"]
---

# Patch dictionary

`PATCH /pronunciation-dictionaries/{id}`

## Path parameters

- `id` string, required — Unique identifier of a pronunciation dictionary

## Request body

- PatchDictionaryDto
  - `name` string — The name of the dictionary
  - `description` string — A description of the dictionary
  - `tag` string — A tag for grouping and filtering dictionaries
  - `add_terms` DictionaryTerm[] — Terms to add to the dictionary. An existing term with the same key is replaced
    - `key` string, required — The word to substitute in the script. A single word, without whitespace
    - `value` string, required — The replacement text to be spoken by the text-to-speech engine
    - `modified_at` string
    - `metadata` string
  - `remove_terms` TermKey[] — Keys of terms to remove from the dictionary

## Response `200`

- DictionaryResponseDto
  - `id` string, required — Unique identifier of the dictionary
  - `name` string, required — The name of the dictionary
  - `description` string — A description of the dictionary
  - `size` number, double, required — The number of terms in the dictionary
  - `created_at` string, required — Dictionary creation time as iso-8601 string
  - `modified_at` string, required — Last modified time as iso-8601 string
  - `created_by` string, required — The user id of the user that created the dictionary
  - `tag` string — A tag for grouping and filtering dictionaries
  - `terms` DictionaryTerm[] — The terms of the dictionary - word/phrase substitutions applied to the script before text-to-speech
    - `key` string, required — The word to substitute in the script. A single word, without whitespace
    - `value` string, required — The replacement text to be spoken by the text-to-speech engine
    - `modified_at` string
    - `metadata` string

## Other responses

- `400` — BadRequestError
- `404` — NotFoundError
- `422` — QuotaExceededError

---

[API](https://skmtc.net/d-id/apis/realtime-endpoints.md) · [All operations](https://skmtc.net/d-id/apis/realtime-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/d-id/realtime-endpoints/versions/2f2425e1b6b6/schema)
