diff --git a/api/openapi.yaml b/api/openapi.yaml index 1d82108..1fe2288 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -34195,6 +34195,19 @@ components: description: (Optional) Requires autotranslate_enabled to be true example: true type: boolean + default_encoding: + description: "(Optional) Sets the default encoding for Uploads. If you leave\ + \ it empty, we will try to guess it automatically for you when you Upload\ + \ a file. You can still override this value by setting the `file_encoding`\ + \ parameter for Uploads." + enum: + - UTF-8 + - UTF-16 + - UTF-16BE + - UTF-16LE + - ISO-8859-1 + example: UTF-8 + type: string title: project/update/parameters type: object job_locales_create_parameters: diff --git a/docs/ProjectUpdateParameters.md b/docs/ProjectUpdateParameters.md index 45b74c0..7d4bcfb 100644 --- a/docs/ProjectUpdateParameters.md +++ b/docs/ProjectUpdateParameters.md @@ -26,6 +26,7 @@ Name | Type | Description | Notes **AutotranslateMarkAsUnverified** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional] **AutotranslateUseMachineTranslation** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional] **AutotranslateUseTranslationMemory** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional] +**DefaultEncoding** | **string** | (Optional) Sets the default encoding for Uploads. If you leave it empty, we will try to guess it automatically for you when you Upload a file. You can still override this value by setting the <a href='#post-/projects/-project_id-/uploads'>`file_encoding`</a> parameter for Uploads. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/model_project_update_parameters.go b/model_project_update_parameters.go index 1257f97..825dfef 100644 --- a/model_project_update_parameters.go +++ b/model_project_update_parameters.go @@ -50,4 +50,6 @@ type ProjectUpdateParameters struct { AutotranslateUseMachineTranslation *bool `json:"autotranslate_use_machine_translation,omitempty"` // (Optional) Requires autotranslate_enabled to be true AutotranslateUseTranslationMemory *bool `json:"autotranslate_use_translation_memory,omitempty"` + // (Optional) Sets the default encoding for Uploads. If you leave it empty, we will try to guess it automatically for you when you Upload a file. You can still override this value by setting the `file_encoding` parameter for Uploads. + DefaultEncoding string `json:"default_encoding,omitempty"` }