---
title: "Edit Dictionary"
method: PATCH
path: "/projects/{projectId}/dictionaries/{languageId}"
tags: ["Dictionaries"]
---

# Edit Dictionary

`PATCH /projects/{projectId}/dictionaries/{languageId}`

## Request

- Base URL: `https://api.crowdin.com/api/v2`
- URL: `https://api.crowdin.com/api/v2/projects/{projectId}/dictionaries/{languageId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/crowdin/apis/crowdin-enterprise-api-v2/docs/projects/:projectId/dictionaries/:languageId/patch.ts> (a function with typed inputs; its response is checked against the schema)

**Required scopes:** `project.dictionary` (Read and Write).

## Path parameters

- `projectId` integer, required
- `languageId` string, required

## Request body

- DictionaryOperation[]: A JSON Patch document as defined by <a href="https://tools.ietf.org/html/rfc6902#section-3" target="_blank">RFC 6902</a>
  - `op` 'remove' | 'add', required: Patch operation to perform
  - `path` '/words/0', json-pointer, required: A JSON Pointer as defined by <a href="https://tools.ietf.org/html/rfc6901" target="_blank">RFC 6901</a> __Note:__ To delete multiple words with one request, please specify the word indexes in reverse order.

## Response `200`

Dictionary was successfully updated

- DictionaryResource: Base schema of resource container. Container is a wrapper object that contains payload in required `data` property and provides space for adding any other metadata.
  - `data` Dictionary, required
    - `languageId` string
    - `words` string[]

## Other responses

- `400`: Invalid Request Body
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Project or language with specified id was not found
- `405`: Method Not Allowed

---

[API](https://skmtc.dev/crowdin/apis/crowdin-enterprise-api-v2.md) - [All operations](https://skmtc.dev/crowdin/apis/crowdin-enterprise-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/crowdin/apis/crowdin-enterprise-api-v2/revisions/dc68744c5384?raw)
