Azure.AI.DocumentTranslation (preview:2023-11-01)

2025/09/05 • 1 new, 1 deleted methods

DocumentTranslate (new)
Description API to translate a document.
Reference Link ¶

⚼ Request

POST:  /document:translate
{
api-version: string ,
sourceLanguage: string ,
targetLanguage: string ,
category: string ,
allowFallback: boolean ,
x-ms-client-request-id: string ,
document: file ,
glossary: array ,
}

⚐ Response (200)

{
$headers:
{
x-ms-client-request-id: string ,
}
,
$schema: file ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
DocumentTranslate (removed)
Description API to translate a document.
Reference Link ¶

⚼ Request

POST:  /document:translate
{
api-version: string ,
sourceLanguage: string ,
targetLanguage: string ,
category: string ,
allowFallback: boolean ,
x-ms-client-request-id: string ,
document: file ,
glossary: array ,
}

⚐ Response (200)

{
$headers:
{
x-ms-client-request-id: string ,
}
,
$schema: file ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}