POST/v2/organizations/{organizationId}/translation-memories/{translationMemoryId}/entries

Create a translation memory entry

Creates a translation memory entry containing source text and its translation in a target language. Supply sourceText, targetLanguageTag, and targetText; the language tag follows BCP 47 and the text fields can be empty. The response includes the created entry and its timestamps.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

2 parameters · 3 body fields
organizationIdintegerrequired
The unique numeric identifier of the organization that owns the translation memory.
translationMemoryIdintegerrequired
The unique numeric identifier of the translation memory to add the entry to.

Translation memory entry containing the source text and its target-language translation. All fields are required.

sourceTextstringrequired
Source text (in the TM's source language)
targetLanguageTagstringrequired
Target language tag according to BCP 47 definition
targetTextstringrequired
Target translation text

5 status codes
200Returns the created entry, including its identifier, source text, target language tag, target text, creation timestamp, and last update timestamp.
createdAtintegerrequired
Creation timestamp
idintegerrequired
sourceTextstringrequired
Source text in the TM's source language
targetLanguageTagstringrequired
Target language tag (BCP 47)
targetTextstringrequired
Translated target text
updatedAtintegerrequired
Last update timestamp
400Returned when a required field is missing or a value fails validation.
codestringrequired
Allowed:unauthenticatedapi_access_forbiddenapi_key_not_foundinvalid_api_keyinvalid_project_api_keyproject_api_key_expiredbad_credentialsmfa_enabledinvalid_otp_codemfa_not_enabledcan_not_revoke_own_permissionsdata_corrupted
paramsarray<object>optional
401Returned when the request is unauthenticated.
codestringrequired
Allowed:unauthenticatedapi_access_forbiddenapi_key_not_foundinvalid_api_keyinvalid_project_api_keyproject_api_key_expiredbad_credentialsmfa_enabledinvalid_otp_codemfa_not_enabledcan_not_revoke_own_permissionsdata_corrupted
paramsarray<object>optional
403Returned when access to the organization or operation is forbidden.
codestringrequired
Allowed:unauthenticatedapi_access_forbiddenapi_key_not_foundinvalid_api_keyinvalid_project_api_keyproject_api_key_expiredbad_credentialsmfa_enabledinvalid_otp_codemfa_not_enabledcan_not_revoke_own_permissionsdata_corrupted
paramsarray<object>optional
404Returned when the organization or translation memory cannot be found.
codestringrequired
Allowed:unauthenticatedapi_access_forbiddenapi_key_not_foundinvalid_api_keyinvalid_project_api_keyproject_api_key_expiredbad_credentialsmfa_enabledinvalid_otp_codemfa_not_enabledcan_not_revoke_own_permissionsdata_corrupted
paramsarray<object>optional

Error handling

A 400 is returned when the request is invalid, a 401 when authentication is missing or invalid, a 403 when access is forbidden, and a 404 when the organization or translation memory cannot be found. sourceText, targetLanguageTag, and targetText are required; each text value must be no longer than 10,000 characters, and targetLanguageTag must be 1–20 characters with no commas. The organizationId path parameter identifies the organization, and the translationMemoryId path parameter identifies the memory.