---
title: "Submit translation diffs"
method: POST
path: "/v2/project/files/diffs"
tags: ["Files"]
---

# Submit translation diffs

`POST /v2/project/files/diffs`

Overwrite translations with user-provided localized content.

## Headers

- `gt-api-version` '2025-01-01.v0' | '2025-11-03.v1' | '2026-02-18.v1' | '2026-03-06.v1'
- `gt-project-id` string

## Request body

- object
  - `projectId` string — Ignored. The project ID comes from the authenticated API key.
  - `diffs` object[], required
    - `locale` string, required
    - `diff` string, required — Diff content.
    - `branchId` string
    - `versionId` string, required
    - `fileId` string, required
    - `localContent` string, required — Localized file content that overwrites the stored translation.

## Response `200`

Diffs processed.

- object
  - `filesProcessed` integer
  - `entriesReceived` integer
  - `message` string

## Other responses

- `400` — The request was invalid.
- `401` — Missing or invalid API key.
- `403` — The API key lacks the required permission, or the action is not allowed on the current plan.
- `429` — Rate limit or quota exceeded.

---

[API](https://skmtc.net/generaltranslation/apis/general-translation-api.md) · [All operations](https://skmtc.net/generaltranslation/apis/general-translation-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/generaltranslation/general-translation-api/revisions/7e9372f17040/schema)
