PUT/v2/projects/{projectId}/per-language-auto-translation-settings

Set per-language auto-translation settings

Updates the per-language auto-translation settings for a project. Provide an array of configurations that specifies whether imports trigger translation and whether new keys use machine translation or translation memory.

1 parameter · 4 body fields
projectIdintegerrequired
The integer identifier of the project whose per-language auto-translation settings to update.

An array of per-language auto-translation configurations.

enableForImportbooleanrequired
If true, import will trigger batch operation to translate the new new keys. It includes also the data imported via CLI, Figma, or other integrations using batch key import.
languageIdintegeroptional
usingMachineTranslationbooleanrequired
If true, new keys will be automatically translated via batch operationusing primary machine translation service.When "usingTranslationMemory" is enabled, it tries to translate it with translation memory first.
usingTranslationMemorybooleanrequired
If true, new keys will be automatically translated via batch operation using translation memory when 100% match is found

5 status codes
200Returns an object containing the updated per-language auto-translation configurations.
_embeddedobjectoptional
400Returned when a configuration omits a required field or another request value is 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
401Returned when the request is not authenticated.
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 permission to update the settings.
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 project or its settings are not 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; a 401 is returned when authentication is missing or invalid; a 403 is returned when the authenticated user lacks permission; and a 404 is returned when the project or settings are not found. The projectId path parameter must identify the project; each configuration must include enableForImport, usingMachineTranslation, and usingTranslationMemory.