Files

Overwrite translations

Changed on

Replace 1–100 existing translations with full translated file content. Requires project:files:write.

post/v2/projects/{projectId}/files/translations/overwrite

Request

  • Base URL
    https://api.gtx.dev
  • Auth
    HTTP bearer

Path parameters

projectIdstring required

Headers

gt-api-version'2025-01-01.v0' | '2025-11-03.v1' | '2026-02-18.v1' | '2026-03-06.v1' | '2026-10-08.v1' required

API contract version. Must be 2026-10-08.v1 or later; requests without it or with an older version return 400.

Request body

Example request

{
  "diffs": [
    {
      "locale": "es",
      "localContent": "{\"greeting\":\"Hola\"}"
    }
  ]
}

Response

Overwrite result for each translation, in request order, even when every translation fails; a translation fails when its source file or translation does not exist, the content does not apply to its format, or the save fails. Retrying with the same content is safe.

Changes

    • warning

      added the new invalid_content_encoding enum value to the //// response property for the response status

    • warning

      added the new invalid_content_encoding enum value to the //// response property for the response status

    • warning

      added the new invalid_content_encoding enum value to the //// response property for the response status

    • warning

      added the new invalid_content_encoding enum value to the //// response property for the response status

    • warning

      added the new invalid_content_encoding enum value to the //// response property for the response status

    • warning

      added the new invalid_content_encoding enum value to the //// response property for the response status

    • warning

      added the new invalid_content_encoding enum value to the //// response property for the response status

    • warning

      added the new invalid_content_encoding enum value to the / response property for the response status

    • warning

      added the new invalid_content_encoding enum value to the ////// response property for the response status

    • warning

      added the new unsupported_content_encoding enum value to the //// response property for the response status

    • warning

      added the new unsupported_content_encoding enum value to the //// response property for the response status

    • warning

      added the new unsupported_content_encoding enum value to the //// response property for the response status

    • warning

      added the new unsupported_content_encoding enum value to the //// response property for the response status

    • warning

      added the new unsupported_content_encoding enum value to the //// response property for the response status

    • warning

      added the new unsupported_content_encoding enum value to the //// response property for the response status

    • warning

      added the new unsupported_content_encoding enum value to the //// response property for the response status

    • warning

      added the new unsupported_content_encoding enum value to the / response property for the response status

    • warning

      added the new unsupported_content_encoding enum value to the ////// response property for the response status

    • warning

      added the new integration_managed_file enum value to the //// response property for the response status

    • warning

      added the new integration_managed_file enum value to the //// response property for the response status

    • warning

      added the new integration_managed_file enum value to the //// response property for the response status

    • warning

      added the new integration_managed_file enum value to the //// response property for the response status

    • warning

      added the new integration_managed_file enum value to the //// response property for the response status

    • warning

      added the new integration_managed_file enum value to the //// response property for the response status

    • warning

      added the new integration_managed_file enum value to the //// response property for the response status

    • warning

      added the new integration_managed_file enum value to the ////// response property for the response status