Skip to content

Commit 0139c51

Browse files
authored
feat(API): Add 'default_encoding' documentation (#733)
1 parent 139bc28 commit 0139c51

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

doc/compiled.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16837,6 +16837,18 @@
1683716837
"description": "(Optional) Requires autotranslate_enabled to be true",
1683816838
"type": "boolean",
1683916839
"example": true
16840+
},
16841+
"default_encoding": {
16842+
"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 <a href='#post-/projects/-project_id-/uploads'>`file_encoding`</a> parameter for Uploads.",
16843+
"type": "string",
16844+
"example": "UTF-8",
16845+
"enum": [
16846+
"UTF-8",
16847+
"UTF-16",
16848+
"UTF-16BE",
16849+
"UTF-16LE",
16850+
"ISO-8859-1"
16851+
]
1684016852
}
1684116853
}
1684216854
}

paths/projects/update.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,14 @@ requestBody:
141141
description: "(Optional) Requires autotranslate_enabled to be true"
142142
type: boolean
143143
example: true
144+
default_encoding:
145+
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 <a href='#post-/projects/-project_id-/uploads'>`file_encoding`</a> parameter for Uploads."
146+
type: string
147+
example: "UTF-8"
148+
enum:
149+
- "UTF-8"
150+
- "UTF-16"
151+
- "UTF-16BE"
152+
- "UTF-16LE"
153+
- "ISO-8859-1"
144154
x-cli-version: "2.6.3"

0 commit comments

Comments
 (0)