---
title: "Edit TM"
method: PATCH
path: "/tms/{tmId}"
tags: ["Translation Memory"]
---

# Edit TM

`PATCH /tms/{tmId}`

## Request

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

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

## Path parameters

- `tmId` integer, required

## Request body

- TmOperation[]: A JSON Patch document as defined by <a href="https://tools.ietf.org/html/rfc6902#section-3" target="_blank">RFC 6902</a>
  - `op` 'replace' | 'test', required: Patch operation to perform
  - `path` '/groupId' | '/name' | '/languageId' | '/isShared', json-pointer, required: A JSON Pointer as defined by <a href="https://tools.ietf.org/html/rfc6901" target="_blank">RFC 6901</a>

## Response `200`

TM was successfully updated

- EnterpriseTmResource: 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` Tm, required
    - `id` integer
    - `groupId` integer, nullable
    - `userId` integer, nullable
    - `name` string
    - `languageId` string, nullable
    - `languageIds` string[], nullable
    - `segmentsCount` integer: Translation units count
    - `defaultProjectIds` integer[]
    - `projectIds` integer[], nullable
    - `isShared` boolean: Whether the TM should be shared across all projects within the group
    - `webUrl` string
    - `createdAt` string, date-time, nullable

## Other responses

- `400`: Invalid Request Parameters
- `404`: TM 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)
