PUT/v2/projects/{projectId}/languages/{languageId}/key/{keyId}/suggestion/{suggestionId}/set-active

Set a translation suggestion to active

Sets a translation suggestion to the active state for a key in a language within a project. Provide the identifiers for the project, language, key, and suggestion to select the suggestion to reactivate. The response returns the suggestion with its updated state.

4 parameters
languageIdintegerrequired
The integer identifier of the language associated with the suggestion.
keyIdintegerrequired
The integer identifier of the key associated with the suggestion.
suggestionIdintegerrequired
The integer identifier of the suggestion to set active.
projectIdintegerrequired
The integer identifier of the project containing the language and key.

5 status codes
200Returns the suggestion with its updated state, along with its identifier, translation, language and key identifiers, author, and timestamps.
authorobjectrequired
User who created the comment
createdAtstringrequired
idintegerrequired
isPluralbooleanrequired
keyIdintegerrequired
languageIdintegerrequired
statestringrequired
Allowed:ACTIVEACCEPTEDDECLINED
translationstringoptional
updatedAtstringrequired
400Returned when the request 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 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 you do not have permission to change the suggestion state.
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, language, key, or suggestion is 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 when the request is invalid, a 401 when authentication is missing or invalid, a 403 when you lack permission, and a 404 when a referenced resource is not found. The languageId path parameter, keyId path parameter, suggestionId path parameter, and projectId path parameter must identify the requested resources.