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

Create translation memory entries for multiple target languages

Creates translation memory entries for multiple target languages in a single atomic operation. Supply sourceText and at least one item in translations, with a target language tag and text for each item. All entries are created together or none are, and a target language must not appear more than once in the request.

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

2 parameters · 2 body fields
organizationIdintegerrequired
The integer identifier of the organization that owns the translation memory.
translationMemoryIdintegerrequired
The integer identifier of the translation memory to add entries to.

Translation memory source text and one or more target translations.

sourceTextstringrequired
Source text (in the TM's source language)
translationsarray<object>required
Target translations to create, one per target language

5 status codes
200Returns an object containing the translation memory entries created by the request.
_embeddedobjectoptional
400Returned when the request body is missing required values, violates a field constraint, or repeats a target language.
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 authentication is missing or invalid.
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 the authenticated user does not have access to the requested resource.
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 for an invalid request body, a 401 when authentication is missing or invalid, and a 403 when the authenticated user lacks access. A 404 is returned when the organizationId path parameter or translationMemoryId path parameter does not identify an available resource. The body must include sourceText and translations; translations must contain at least one item, each item must include targetLanguageTag and targetText, and a target language must not appear more than once. Text fields must be at most 10,000 characters, and targetLanguageTag must be 1 to 20 characters without a comma.