PUT/v2/projects/{projectId}/keys/{id}/disabled-languages

Set disabled languages for a localization key

Sets the languages in which a localization key is disabled. Send the language identifiers in languageIds to replace the key's disabled-language selection.

2 parameters · 1 body field
idintegerrequired
The int64 identifier of the localization key.
projectIdintegerrequired
The int64 identifier of the project containing the key.

The disabled-language selection for the key.

languageIdsarray<integer>required
The language identifiers to set as disabled for the key.

5 status codes
200Returns an embedded list of languages in which the key is disabled after the update.
_embeddedobjectoptional
400Returned when the request is invalid or `languageIds` is missing.
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 has no valid authentication.
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 key.
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 key 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 is returned when authentication is missing or invalid. A 403 is returned when the authenticated user lacks access. A 404 is returned when the project or key cannot be found. The id path parameter and projectId path parameter must identify the key and its project. languageIds is required and must contain language identifiers.