Skip to content

Commit f372d1a

Browse files
author
Jann-Skotdal
committed
[cog svcs] Update CT info
1 parent 3a98ccb commit f372d1a

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

articles/cognitive-services/Translator/migrate-to-v3.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ ms.author: v-jansko
1414

1515
# Translator Text API V2 to V3 Migration
1616

17-
The Microsoft Translator team has released Version 3 (V3) of the Translator Text API. This release includes new features, deprecated methods and a new format for sending to, and receiving data from the Microsoft Translator Service. This document provides information for changing applications to use V3. V2 will be deprecated on April 30, 2018 and will be discontinued on April 30, 2019.
17+
> [!NOTE]
18+
> V2 will be deprecated on April 30, 2018 and will be discontinued on April 30, 2019.
19+
20+
The Microsoft Translator team has released Version 3 (V3) of the Translator Text API. This release includes new features, deprecated methods and a new format for sending to, and receiving data from the Microsoft Translator Service. This document provides information for changing applications to use V3.
1821

1922
The end of this document contains helpful links for you to learn more.
2023

articles/cognitive-services/Translator/reference/v3-0-reference.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ The error code is a 6-digit number combining the 3-digit HTTP status code follow
131131
| 403000| The operation is not allowed.|
132132
| 403001| The operation is not allowed because the subscription has exceeded its free quota.|
133133
| 405000| The request method is not supported for the requested resource.|
134+
| 408001| The custom translation system requested is not yet available. Please retry in a few minutes.|
134135
| 415000| The Content-Type header is missing or invalid.|
135136
| 429000, 429001, 429002| The server rejected the request because the client is sending too many requests. Reduce the frequency of requests to avoid throttling.|
136137
| 500000| An unexpected error occurred. If the error persists, report it with date/time of error, request identifier from response header X-RequestId, and client identifier from request header X-ClientTraceId.|

articles/cognitive-services/Translator/reference/v3-0-translate.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ Request parameters passed on the query string are:
8080
<td>toScript</td>
8181
<td>*Optional parameter*.<br/>Specifies the script of the translated text.</td>
8282
</tr>
83+
<tr>
84+
<td>AllowFallback</td>
85+
<td>*Optional parameter*.<br/>Specifies that the service is allowed to fallback to a general system when a custom system does not exist. Possible values are: `true` (default) or `false`.<br/>‘AllowFallback=false’ specifies that the translation should only use systems trained for the ‘category’ specified by the request. If a translation for language X to language Y requires chaining through a pivot language E, then all the systems in the chain (X->E and E->Y) will need to be custom and have the same category. If no system is found with the specific category, the request will return a 400 status code. ‘AllowFallback=true’ specifies that the service is allowed to fallback to a general system when a custom system does not exist.
86+
</td>
87+
</tr>
8388
</table>
8489

8590
Request headers include:
@@ -103,6 +108,13 @@ Request headers include:
103108
<td>X-ClientTraceId</td>
104109
<td>*Optional*.<br/>A client-generated GUID to uniquely identify the request. You can omit this header if you include the trace ID in the query string using a query parameter named `ClientTraceId`.</td>
105110
</tr>
111+
<tr>
112+
<td>X-MT-System</td>
113+
<td>*Optional*.<br/>Specifies the system type that was used for translation for each ‘to’ language requested for translation. The value is a comma-separated list of strings. Each string indicates a type:<br/>
114+
* Custom - Request includes a custom system and at least one custom system was used during translation.
115+
* Team - All other requests
116+
</td>
117+
</tr>
106118
</table>
107119

108120
## Request body
@@ -183,6 +195,10 @@ The following are the possible HTTP status codes that a request returns.
183195
<td>403</td>
184196
<td>The request is not authorized. Check the details error message. This often indicates that all free translations provided with a trial subscription have been used up.</td>
185197
</tr>
198+
<tr>
199+
<td>408</td>
200+
<td>The request could not be fulfilled because a resource is missing. Check the details error message. When using a custom `category`, this often indicates that the custom translation system is not yet available to serve requests. The request should be retried after a waiting period (e.g. 10 minutes).</td>
201+
</tr>
186202
<tr>
187203
<td>429</td>
188204
<td>The caller is sending too many requests.</td>

0 commit comments

Comments
 (0)