---
title: "Add TM"
method: POST
path: "/tms"
tags: ["Translation Memory"]
---

# Add TM

`POST /tms`

## Request

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

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

## Request body

- EnterpriseTmCreateForm
  - `name` string, required: Translation Memory name
  - `languageId` string, required: Translation Memory Language Identifier. Get via [List Supported Languages](#operation/api.languages.getMany)
  - `groupId` integer: Group Identifier – defines group to which TM is added. Get via [List Groups](#operation/api.groups.getMany) * If '0' – TM will be available for all projects and groups in your workspace
  - `isShared` boolean: Whether the TM should be shared across all projects within the group

## Response `201`

TM was successfully created

- 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`: Group 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)
