PUT
/v2/projects/{projectId}/languages/{languageId}/key/{keyId}/suggestion/{suggestionId}/acceptAccept a translation suggestion
Accepts a translation suggestion for a key in a language within a project. Set declineOther to control whether other suggestions are declined as part of the operation. The response identifies the accepted suggestion and any suggestions declined alongside it.
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 accept.
projectIdintegerrequired
The integer identifier of the project containing the language and key.
declineOtherbooleanoptional
Whether to decline other suggestions for the key and language.
200Returns the accepted suggestion and an array of identifiers for suggestions declined as part of the operation.
acceptedobjectrequired
declinedarray<integer>required
400Returned when the request is invalid.
codestringrequired
paramsarray<object>optional
401Returned when authentication is missing or invalid.
codestringrequired
paramsarray<object>optional
403Returned when you do not have permission to accept the suggestion.
codestringrequired
paramsarray<object>optional
404Returned when the project, language, key, or suggestion is not found.
codestringrequired
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.