PUT
/v2/projects/{projectId}/translations/labelAdd a label to a translation
Adds a label to a translation selected by its key and language within a project. Supply keyId, labelId, and languageId to identify the translation and label. The response contains the label details.
projectIdintegerrequired
The unique identifier of the project containing the translation.
The key, label, and language identifiers for the translation to label. All fields are required.
keyIdintegerrequired
The unique identifier of the localization key.
labelIdintegerrequired
The unique identifier of the label to add.
languageIdintegerrequired
The unique identifier of the language for the translation.
200Returns the label details, including its identifier, name, color, and description when present.
colorstringrequired
descriptionstringoptional
idintegerrequired
namestringrequired
400Returned when the request body is invalid or a required field is missing.
codestringrequired
paramsarray<object>optional
401Returned when the request is unauthenticated.
codestringrequired
paramsarray<object>optional
403Returned when you do not have permission to label the translation.
codestringrequired
paramsarray<object>optional
404Returned when the project, key, language, or label cannot be found.
codestringrequired
paramsarray<object>optional
Error handling
A 400 is returned when the request body is invalid. A 401 is returned when authentication is missing or invalid, a 403 when you lack permission, and a 404 when a referenced resource cannot be found. The projectId path parameter must identify the project, and keyId, labelId, and languageId are all required.