Skip to content

Commit f82e787

Browse files
author
Phrase
committed
1 parent 82e9ee0 commit f82e787

File tree

3 files changed

+23
-11
lines changed

3 files changed

+23
-11
lines changed

docs/Api/UploadsApi.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Method | HTTP request | Description
1212

1313
## uploadCreate
1414

15-
> \Phrase\Model\Upload uploadCreate($project_id, $file, $file_format, $locale_id, $x_phrase_app_otp, $branch, $tags, $update_translations, $update_translation_keys, $update_translations_on_source_match, $update_descriptions, $convert_emoji, $skip_upload_tags, $skip_unverification, $file_encoding, $locale_mapping, $format_options, $autotranslate, $verify_mentioned_translations, $mark_reviewed, $tag_only_affected_keys, $translation_key_prefix)
15+
> \Phrase\Model\Upload uploadCreate($project_id, $file, $file_format, $locale_id, $x_phrase_app_otp, $branch, $tags, $update_translations, $update_custom_metadata, $update_translation_keys, $update_translations_on_source_match, $update_descriptions, $convert_emoji, $skip_upload_tags, $skip_unverification, $file_encoding, $locale_mapping, $format_options, $autotranslate, $verify_mentioned_translations, $mark_reviewed, $tag_only_affected_keys, $translation_key_prefix)
1616
1717
Upload a new file
1818

@@ -41,6 +41,7 @@ $x_phrase_app_otp = 'x_phrase_app_otp_example'; // string | Two-Factor-Authentic
4141
$branch = 'branch_example'; // string | specify the branch to use
4242
$tags = 'tags_example'; // string | List of tags separated by comma to be associated with the new keys contained in the upload.
4343
$update_translations = True; // bool | Indicates whether existing translations should be updated with the file content.
44+
$update_custom_metadata = true; // bool | Indicates whether existing custom metadata properties should be updated with the file content
4445
$update_translation_keys = true; // bool | Pass `false` here to prevent new keys from being created and existing keys updated.
4546
$update_translations_on_source_match = false; // bool | Update target translations only if the source translations of the uploaded multilingual file match the stored translations.
4647
$update_descriptions = True; // bool | Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions.
@@ -57,7 +58,7 @@ $tag_only_affected_keys = false; // bool | Indicates whether only keys affected
5758
$translation_key_prefix = 'translation_key_prefix_example'; // string | This prefix will be added to all uploaded translation key names to prevent collisions. Use a meaningful prefix related to your project or file to keep key names organized.
5859

5960
try {
60-
$result = $apiInstance->uploadCreate($project_id, $file, $file_format, $locale_id, $x_phrase_app_otp, $branch, $tags, $update_translations, $update_translation_keys, $update_translations_on_source_match, $update_descriptions, $convert_emoji, $skip_upload_tags, $skip_unverification, $file_encoding, $locale_mapping, $format_options, $autotranslate, $verify_mentioned_translations, $mark_reviewed, $tag_only_affected_keys, $translation_key_prefix);
61+
$result = $apiInstance->uploadCreate($project_id, $file, $file_format, $locale_id, $x_phrase_app_otp, $branch, $tags, $update_translations, $update_custom_metadata, $update_translation_keys, $update_translations_on_source_match, $update_descriptions, $convert_emoji, $skip_upload_tags, $skip_unverification, $file_encoding, $locale_mapping, $format_options, $autotranslate, $verify_mentioned_translations, $mark_reviewed, $tag_only_affected_keys, $translation_key_prefix);
6162
print_r($result);
6263
} catch (Exception $e) {
6364
echo 'Exception when calling UploadsApi->uploadCreate: ', $e->getMessage(), PHP_EOL;
@@ -78,6 +79,7 @@ Name | Type | Description | Notes
7879
**branch** | **string**| specify the branch to use | [optional]
7980
**tags** | **string**| List of tags separated by comma to be associated with the new keys contained in the upload. | [optional]
8081
**update_translations** | **bool**| Indicates whether existing translations should be updated with the file content. | [optional]
82+
**update_custom_metadata** | **bool**| Indicates whether existing custom metadata properties should be updated with the file content | [optional] [default to true]
8183
**update_translation_keys** | **bool**| Pass `false` here to prevent new keys from being created and existing keys updated. | [optional] [default to true]
8284
**update_translations_on_source_match** | **bool**| Update target translations only if the source translations of the uploaded multilingual file match the stored translations. | [optional] [default to false]
8385
**update_descriptions** | **bool**| Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions. | [optional]

0 commit comments

Comments
 (0)