diff --git a/clients/java/src/test/java/com/phrase/client/api/UploadsApiTest.java b/clients/java/src/test/java/com/phrase/client/api/UploadsApiTest.java index c85aebcf..95f3da5d 100644 --- a/clients/java/src/test/java/com/phrase/client/api/UploadsApiTest.java +++ b/clients/java/src/test/java/com/phrase/client/api/UploadsApiTest.java @@ -96,6 +96,7 @@ public void uploadCreateTest() throws ApiException, IOException, InterruptedExce String localeId = "en"; String tags = null; Boolean updateTranslations = null; + Boolean updateTranslationKeys = true; Boolean updateDescriptions = null; Boolean convertEmoji = null; Boolean skipUploadTags = null; @@ -106,7 +107,7 @@ public void uploadCreateTest() throws ApiException, IOException, InterruptedExce Boolean autotranslate = null; Boolean markReviewed = null; Boolean tagOnlyAffectedKeys = null; - Upload response = api.uploadCreate(projectId, file, fileFormat, localeId, xPhraseAppOTP, branch, tags, updateTranslations, updateDescriptions, convertEmoji, skipUploadTags, skipUnverification, fileEncoding, localeMapping, formatOptions, autotranslate, markReviewed, tagOnlyAffectedKeys); + Upload response = api.uploadCreate(projectId, file, fileFormat, localeId, xPhraseAppOTP, branch, tags, updateTranslations, updateTranslationKeys, updateDescriptions, convertEmoji, skipUploadTags, skipUnverification, fileEncoding, localeMapping, formatOptions, autotranslate, markReviewed, tagOnlyAffectedKeys); Assert.assertEquals("valid id returned", "id_example", response.getId()); Assert.assertEquals("valid creation date returned", OffsetDateTime.parse("2015-01-28T09:52:53Z"), response.getCreatedAt()); diff --git a/doc/compiled.json b/doc/compiled.json index da69ebfe..27211555 100644 --- a/doc/compiled.json +++ b/doc/compiled.json @@ -14136,6 +14136,12 @@ "type": "boolean", "example": null }, + "update_translation_keys": { + "description": "Pass `false` here to prevent new keys from being created and existing keys updated.", + "type": "boolean", + "default": true, + "example": null + }, "update_descriptions": { "description": "Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions.", "type": "boolean", diff --git a/paths/uploads/create.yaml b/paths/uploads/create.yaml index 5d71c566..a5739993 100644 --- a/paths/uploads/create.yaml +++ b/paths/uploads/create.yaml @@ -89,6 +89,11 @@ requestBody: description: Indicates whether existing translations should be updated with the file content. type: boolean example: + update_translation_keys: + description: Pass `false` here to prevent new keys from being created and existing keys updated. + type: boolean + default: true + example: update_descriptions: description: Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions. type: boolean