PUT/v2/projects/{projectId}/machine-translation-service-settings

Update machine translation settings

Updates machine translation settings for a project. Supply settings with the language-specific service configuration, including a serviceType for each enabled service.

1 parameter · 1 body field
projectIdintegerrequired
The integer identifier of the project whose machine translation settings to update.

Machine translation settings grouped by target language. Provide the settings array with the service configuration for each language.

settingsarray<object>required
An array of language-specific settings. Each item can include enabled service information, a primary service, and a target language identifier.

5 status codes
200Returns an object containing the updated machine translation language configurations.
_embeddedobjectoptional
400Returned when the request is invalid, `settings` is missing, a required `serviceType` is omitted, or a service value is not accepted.
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 machine translation 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, and settings must be provided; each enabledServicesInfo item must include serviceType, and enabledServices and primaryService must use an accepted service value.