---
title: "Create TM Segment Records"
method: POST
path: "/tms/{tmId}/segments/{segmentId}/records"
tags: ["Translation Memory"]
deprecated: true
---

# Create TM Segment Records

`POST /tms/{tmId}/segments/{segmentId}/records`

## Request

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

> **Deprecated.**

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

Use [Edit TM Segment](#operation/api.tms.segments.patch) instead.

## Path parameters

- `tmId` integer, required
- `segmentId` integer, required

## Request body

- TmSegmentCreateForm
  - `records` object[], required
    - `languageId` string: Language Identifier. Get via [List Supported Languages](#operation/api.languages.getMany)
    - `text` string: Record text

## Response `200`

TM segment data

- TmSegmentResource: 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` TmSegment, required
    - `id` integer: Segment Identifier
    - `records` object[]
      - `id` integer: Record Identifier
      - `languageId` string: Language Identifier
      - `text` string: Record text
      - `usageCount` integer: Count usage of segment record
      - `createdBy` integer: Creator User Identifier
      - `updatedBy` integer: Redactor User Identifier
      - `createdAt` string, date-time, nullable: Date in UTC, ISO 8601
      - `updatedAt` string, date-time, nullable: Date in UTC, ISO 8601

## Other responses

- `400`: Invalid Request Parameters
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Tm or segment with specified id was not found
- `405`: Method Not Allowed
- `422`: Such TM segment record already exists

---

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