---
title: "Edit Term"
method: PATCH
path: "/glossaries/{glossaryId}/terms/{termId}"
tags: ["Glossaries"]
---

# Edit Term

`PATCH /glossaries/{glossaryId}/terms/{termId}`

## Request

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

**Required scopes:** `glossary` (Read and Write).

Updates the term with a JSON Patch document. Only the paths listed in the request schema can be replaced.

__Note:__ A `replace` on `/fields` writes the whole set of custom field values — a field the value omits, or whose value is empty, is cleared

## Path parameters

- `glossaryId` integer, required
- `termId` integer, required

## Request body

- TermOperation[]: A JSON Patch document as defined by [RFC 6902](https://tools.ietf.org/html/rfc6902#section-3)
  - `op` 'replace' | 'test', required: Patch operation to perform
  - `path` '/text' | '/description' | '/partOfSpeech' | '/status' | '/type' | '/gender' | '/url' | '/note' | '/fields', json-pointer, required: A JSON Pointer as defined by [RFC 6901](https://tools.ietf.org/html/rfc6901)

## Response `200`

Term was successfully updated

- EnterpriseTermResource: 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` Term, required
    - `id` integer
    - `userId` integer
    - `glossaryId` integer
    - `languageId` string
    - `text` string
    - `description` string
    - `partOfSpeech` string
    - `status` string
    - `type` string
    - `gender` string
    - `note` string
    - `url` string
    - `conceptId` integer
    - `lemma` string
    - `createdAt` string, date-time: UTC timezone
    - `updatedAt` string, date-time: UTC timezone
    - `fields` EnterpriseAdditionalFields: Fields. Keys get via [List Fields](#operation/api.fields.getMany)

## Other responses

- `400`: Invalid Request Body
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Glossary or term with specified id was not found
- `405`: Method Not Allowed
- `409`: Conflict
- `500`: Internal Server Error
- `503`: Service Unavailable

---

[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)
