You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|filter.prefix|string|False|A case-sensitive prefix string to filter documents in the source path for translation. For example, when using an Azure storage blob Uri, use the prefix to restrict sub folders for translation.|
70
-
|filter.suffix|string|False|A case-sensitive suffix string to filter documents in the source path for translation. This is most often use for file extensions.|
71
-
|language|string|False|Language code If none is specified, we will perform auto detect on the document.|
70
+
|filter.suffix|string|False|A case-sensitive suffix string to filter documents in the source path for translation. It's most often use for file extensions.|
71
+
|language|string|False|Language code If none is specified, we'll perform auto detect on the document.|
72
72
|sourceUrl|string|True|Location of the folder / container or single file with your documents.|
@@ -91,7 +91,7 @@ Destination for the finished translated documents.
91
91
|category|string|False|Category / custom system for translation request.|
92
92
|glossaries|Glossary[]|False|Glossary listed below. List of Glossary.|
93
93
|glossaries.format|string|False|Format.|
94
-
|glossaries.glossaryUrl|string|True (if using glossaries)|Location of the glossary. We will use the file extension to extract the formatting if the format parameter isn't supplied. If the translation language pair isn't present in the glossary, it won't be applied.|
94
+
|glossaries.glossaryUrl|string|True (if using glossaries)|Location of the glossary. We'll use the file extension to extract the formatting if the format parameter isn't supplied. If the translation language pair isn't present in the glossary, it won't be applied.|
|glossaries.version|string|False|Optional Version. If not specified, default is used.|
97
97
|targetUrl|string|True|Location of the folder / container with your documents.|
@@ -102,6 +102,9 @@ Destination for the finished translated documents.
102
102
103
103
The following are examples of batch requests.
104
104
105
+
> [!NOTE]
106
+
> In the following examples, limited access has been granted to the contents of an Azure Storage container [using a shared access signature(SAS)](/azure/storage/common/storage-sas-overview) token.
107
+
105
108
**Translating all documents in a container**
106
109
107
110
```json
@@ -124,8 +127,6 @@ The following are examples of batch requests.
124
127
125
128
**Translating all documents in a container applying glossaries**
126
129
127
-
Ensure you have created glossary URL & SAS token for the specific blob/document (not for the container)
128
-
129
130
```json
130
131
{
131
132
"inputs": [
@@ -154,7 +155,7 @@ Ensure you have created glossary URL & SAS token for the specific blob/document
154
155
155
156
**Translating specific folder in a container**
156
157
157
-
Ensure you have specified the folder name (case sensitive) as prefix in filter – though the SAS token is still for the container.
158
+
Make sure you've specified the folder name (case sensitive) as prefix in filter.
158
159
159
160
```json
160
161
{
@@ -179,10 +180,11 @@ Ensure you have specified the folder name (case sensitive) as prefix in filter
179
180
180
181
**Translating specific document in a container**
181
182
182
-
* Ensure you have specified "storageType": "File"
183
-
* Ensure you have created source URL & SAS token for the specific blob/document (not for the container)
184
-
* Ensure you have specified the target filename as part of the target URL – though the SAS token is still for the container.
185
-
* Sample request below shows a single document getting translated into two target languages
183
+
* Specify "storageType": "File"
184
+
* Create source URL & SAS token for the specific blob/document.
185
+
* Specify the target filename as part of the target URL – though the SAS token is still for the container.
186
+
187
+
The sample request below shows a single document translated into two target languages
186
188
187
189
```json
188
190
{
@@ -215,10 +217,10 @@ The following are the possible HTTP status codes that a request returns.
215
217
|--- |--- |
216
218
|202|Accepted. Successful request and the batch request are created by the service. The header Operation-Location will indicate a status url with the operation ID.HeadersOperation-Location: string|
|401|Unauthorized. Please check your credentials.|
220
+
|401|Unauthorized. Check your credentials.|
219
221
|429|Request rate is too high.|
220
222
|500|Internal Server Error.|
221
-
|503|Service is currently unavailable. Please try again later.|
223
+
|503|Service is currently unavailable. Try again later.|
222
224
|Other Status Codes|<ul><li>Too many requests</li><li>Server temporary unavailable</li></ul>|
223
225
224
226
## Error response
@@ -227,10 +229,10 @@ The following are the possible HTTP status codes that a request returns.
227
229
|--- |--- |--- |
228
230
|code|string|Enums containing high-level error codes. Possible values:<br/><ul><li>InternalServerError</li><li>InvalidArgument</li><li>InvalidRequest</li><li>RequestRateTooHigh</li><li>ResourceNotFound</li><li>ServiceUnavailable</li><li>Unauthorized</li></ul>|
229
231
|message|string|Gets high-level error message.|
230
-
|innerError|InnerTranslationError|New Inner Error format which conforms to Cognitive Services API Guidelines. This contains required properties ErrorCode, message and optional properties target, details(key value pair), inner error(this can be nested).|
232
+
|innerError|InnerTranslationError|New Inner Error format that conforms to Cognitive Services API Guidelines. This contains required properties: ErrorCode, message and optional properties target, details(key value pair), and inner error(this can be nested).|
0 commit comments