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

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

DocumentTranslationOperations_GetTranslationsStatus (new)
Description Returns a list of batch requests submitted and the status for each request. This list only contains batch requests submitted by the user (based on the resource). If the number of requests exceeds our paging limit, server-side paging is used. Paginated responses indicate a partial result and include a continuation token in the response. The absence of a continuation token means that no additional pages are available. top, skip and maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection. top indicates the total number of records the user wants to be returned across all pages. skip indicates the number of records to skip from the list of batches based on the sorting method specified. By default, we sort by descending start time. maxpagesize is the maximum items returned in a page. If more items are requested via top (or top is not specified and there are more items to be returned), @nextLink will contain the link to the next page. orderby query parameter can be used to sort the returned list (ex "orderby=createdDateTimeUtc asc" or "orderby=createdDateTimeUtc desc"). The default sorting is descending by createdDateTimeUtc. Some query parameters can be used to filter the returned list (ex: "status=Succeeded,Cancelled") will only return succeeded and cancelled operations. createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by. The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd). The server honors the values specified by the client. However, clients must be prepared to handle responses that contain a different page size or contain a continuation token. When both top and skip are included, the server should first apply skip and then top on the collection. Note: If the server can't honor top and/or skip, the server must return an error to the client informing about it instead of just ignoring the query options. This reduces the risk of the client making assumptions about the data returned.
Reference Link ¶

⚼ Request

GET:  /document/batches
{
api-version: string ,
top: integer ,
skip: integer ,
maxpagesize: integer ,
ids: array ,
statuses: array ,
createdDateTimeUtcStart: string ,
createdDateTimeUtcEnd: string ,
orderby: array ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
createdDateTimeUtc: string ,
lastActionDateTimeUtc: string ,
status: enum ,
error:
{
code: enum ,
message: string ,
target: string ,
innerError:
{
code: string ,
message: string ,
target: string ,
innerError: string ,
}
,
}
,
summary:
{
total: integer ,
failed: integer ,
success: integer ,
inProgress: integer ,
notYetStarted: integer ,
cancelled: integer ,
totalCharacterCharged: integer ,
totalImageScansSucceeded: integer ,
totalImageScansFailed: integer ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
DocumentTranslationOperations_StartTranslation (new)
Description Use this API to submit a bulk (batch) translation request to the Document Translation service. Each request can contain multiple documents and must contain a source and destination container for each document. The prefix and suffix filter (if supplied) are used to filter folders. The prefix is applied to the subpath after the container name. Glossaries / Translation memory can be included in the request and are applied by the service when the document is translated. If the glossary is invalid or unreachable during translation, an error is indicated in the document status. If a file with the same name already exists at the destination, it will be overwritten. The targetUrl for each target language must be unique.
Reference Link ¶

⚼ Request

POST:  /document/batches
{
api-version: string ,
body:
{
inputs:
[
{
source:
{
sourceUrl: string ,
filter:
{
prefix: string ,
suffix: string ,
}
,
language: string ,
storageSource: enum ,
}
,
targets:
[
{
targetUrl: string ,
category: string ,
language: string ,
glossaries:
[
{
glossaryUrl: string ,
format: string ,
version: string ,
storageSource: enum ,
}
,
]
,
storageSource: enum ,
}
,
]
,
storageType: enum ,
}
,
]
,
options:
{
translateTextWithinImage: boolean ,
}
,
}
,
}

⚐ Response (202)

{
operation-location: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
DocumentTranslationOperations_GetTranslationStatus (new)
Description Returns the status for a document translation request. The status includes the overall request status, as well as the status for documents that are being translated as part of that request.
Reference Link ¶

⚼ Request

GET:  /document/batches/{id}
{
api-version: string ,
id: string ,
}

⚐ Response (200)

{
id: string ,
createdDateTimeUtc: string ,
lastActionDateTimeUtc: string ,
status: enum ,
error:
{
code: enum ,
message: string ,
target: string ,
innerError:
{
code: string ,
message: string ,
target: string ,
innerError: string ,
}
,
}
,
summary:
{
total: integer ,
failed: integer ,
success: integer ,
inProgress: integer ,
notYetStarted: integer ,
cancelled: integer ,
totalCharacterCharged: integer ,
totalImageScansSucceeded: integer ,
totalImageScansFailed: integer ,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
DocumentTranslationOperations_CancelTranslation (new)
Description Cancel a currently processing or queued translation. A translation will not be cancelled if it is already completed or failed or cancelling. A bad request will be returned. All documents that have completed translation will not be cancelled and will be charged. All pending documents will be cancelled if possible.
Reference Link ¶

⚼ Request

DELETE:  /document/batches/{id}
{
api-version: string ,
id: string ,
}

⚐ Response (200)

{
id: string ,
createdDateTimeUtc: string ,
lastActionDateTimeUtc: string ,
status: enum ,
error:
{
code: enum ,
message: string ,
target: string ,
innerError:
{
code: string ,
message: string ,
target: string ,
innerError: string ,
}
,
}
,
summary:
{
total: integer ,
failed: integer ,
success: integer ,
inProgress: integer ,
notYetStarted: integer ,
cancelled: integer ,
totalCharacterCharged: integer ,
totalImageScansSucceeded: integer ,
totalImageScansFailed: integer ,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
DocumentTranslationOperations_GetDocumentsStatus (new)
Description Returns the status for all documents in a batch document translation request. If the number of documents in the response exceeds our paging limit, server-side paging is used. Paginated responses indicate a partial result and include a continuation token in the response. The absence of a continuation token means that no additional pages are available. top, skip and maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection. top indicates the total number of records the user wants to be returned across all pages. skip indicates the number of records to skip from the list of document status held by the server based on the sorting method specified. By default, we sort by descending start time. maxpagesize is the maximum items returned in a page. If more items are requested via top (or top is not specified and there are more items to be returned), @nextLink will contain the link to the next page. orderby query parameter can be used to sort the returned list (ex "orderby=createdDateTimeUtc asc" or "orderby=createdDateTimeUtc desc"). The default sorting is descending by createdDateTimeUtc. Some query parameters can be used to filter the returned list (ex: "status=Succeeded,Cancelled") will only return succeeded and cancelled documents. createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by. The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd). When both top and skip are included, the server should first apply skip and then top on the collection. Note: If the server can't honor top and/or skip, the server must return an error to the client informing about it instead of just ignoring the query options. This reduces the risk of the client making assumptions about the data returned.
Reference Link ¶

⚼ Request

GET:  /document/batches/{id}/documents
{
api-version: string ,
id: string ,
top: integer ,
skip: integer ,
maxpagesize: integer ,
ids: array ,
statuses: array ,
createdDateTimeUtcStart: string ,
createdDateTimeUtcEnd: string ,
orderby: array ,
}

⚐ Response (200)

{
value:
[
{
path: string ,
sourcePath: string ,
createdDateTimeUtc: string ,
lastActionDateTimeUtc: string ,
status: enum ,
to: string ,
error:
{
code: enum ,
message: string ,
target: string ,
innerError:
{
code: string ,
message: string ,
target: string ,
innerError: string ,
}
,
}
,
progress: number ,
id: string ,
characterCharged: integer ,
totalImageScansSucceeded: integer ,
totalImageScansFailed: integer ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
DocumentTranslationOperations_GetDocumentStatus (new)
Description Returns the translation status for a specific document based on the request Id and document Id.
Reference Link ¶

⚼ Request

GET:  /document/batches/{id}/documents/{documentId}
{
api-version: string ,
id: string ,
documentId: string ,
}

⚐ Response (200)

{
path: string ,
sourcePath: string ,
createdDateTimeUtc: string ,
lastActionDateTimeUtc: string ,
status: enum ,
to: string ,
error:
{
code: enum ,
message: string ,
target: string ,
innerError:
{
code: string ,
message: string ,
target: string ,
innerError: string ,
}
,
}
,
progress: number ,
id: string ,
characterCharged: integer ,
totalImageScansSucceeded: integer ,
totalImageScansFailed: integer ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
DocumentTranslationOperations_GetSupportedFormats (new)
Description The list of supported formats supported by the Document Translation service. The list includes the common file extension, as well as the content-type if using the upload API.
Reference Link ¶

⚼ Request

GET:  /document/formats
{
api-version: string ,
type: string ,
}

⚐ Response (200)

{
value:
[
{
format: string ,
fileExtensions:
[
string ,
]
,
contentTypes:
[
string ,
]
,
defaultVersion: string ,
versions:
[
string ,
]
,
type: enum ,
}
,
]
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
DocumentTranslationOperations_DocumentTranslate (new)
Description Use this API to submit a single translation request to the Document Translation Service.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
$headers:
{
total-image-scans-failed: integer ,
total-image-scans-succeeded: integer ,
x-metered-usage: integer ,
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 ,
}
,
}
,
}
,
}
DocumentTranslationOperations_GetTranslationsStatus (removed)
Description Returns a list of batch requests submitted and the status for each request. This list only contains batch requests submitted by the user (based on the resource). If the number of requests exceeds our paging limit, server-side paging is used. Paginated responses indicate a partial result and include a continuation token in the response. The absence of a continuation token means that no additional pages are available. top, skip and maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection. top indicates the total number of records the user wants to be returned across all pages. skip indicates the number of records to skip from the list of batches based on the sorting method specified. By default, we sort by descending start time. maxpagesize is the maximum items returned in a page. If more items are requested via top (or top is not specified and there are more items to be returned), @nextLink will contain the link to the next page. orderby query parameter can be used to sort the returned list (ex "orderby=createdDateTimeUtc asc" or "orderby=createdDateTimeUtc desc"). The default sorting is descending by createdDateTimeUtc. Some query parameters can be used to filter the returned list (ex: "status=Succeeded,Cancelled") will only return succeeded and cancelled operations. createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by. The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd). The server honors the values specified by the client. However, clients must be prepared to handle responses that contain a different page size or contain a continuation token. When both top and skip are included, the server should first apply skip and then top on the collection. Note: If the server can't honor top and/or skip, the server must return an error to the client informing about it instead of just ignoring the query options. This reduces the risk of the client making assumptions about the data returned.
Reference Link ¶

⚼ Request

GET:  /document/batches
{
api-version: string ,
top: integer ,
skip: integer ,
maxpagesize: integer ,
ids: array ,
statuses: array ,
createdDateTimeUtcStart: string ,
createdDateTimeUtcEnd: string ,
orderby: array ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
createdDateTimeUtc: string ,
lastActionDateTimeUtc: string ,
status: enum ,
error:
{
code: enum ,
message: string ,
target: string ,
innerError:
{
code: string ,
message: string ,
target: string ,
innerError: string ,
}
,
}
,
summary:
{
total: integer ,
failed: integer ,
success: integer ,
inProgress: integer ,
notYetStarted: integer ,
cancelled: integer ,
totalCharacterCharged: integer ,
totalImageScansSucceeded: integer ,
totalImageScansFailed: integer ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
DocumentTranslationOperations_StartTranslation (removed)
Description Use this API to submit a bulk (batch) translation request to the Document Translation service. Each request can contain multiple documents and must contain a source and destination container for each document. The prefix and suffix filter (if supplied) are used to filter folders. The prefix is applied to the subpath after the container name. Glossaries / Translation memory can be included in the request and are applied by the service when the document is translated. If the glossary is invalid or unreachable during translation, an error is indicated in the document status. If a file with the same name already exists at the destination, it will be overwritten. The targetUrl for each target language must be unique.
Reference Link ¶

⚼ Request

POST:  /document/batches
{
api-version: string ,
body:
{
inputs:
[
{
source:
{
sourceUrl: string ,
filter:
{
prefix: string ,
suffix: string ,
}
,
language: string ,
storageSource: enum ,
}
,
targets:
[
{
targetUrl: string ,
category: string ,
language: string ,
glossaries:
[
{
glossaryUrl: string ,
format: string ,
version: string ,
storageSource: enum ,
}
,
]
,
storageSource: enum ,
}
,
]
,
storageType: enum ,
}
,
]
,
options:
{
translateTextWithinImage: boolean ,
}
,
}
,
}

⚐ Response (202)

{
operation-location: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
DocumentTranslationOperations_GetTranslationStatus (removed)
Description Returns the status for a document translation request. The status includes the overall request status, as well as the status for documents that are being translated as part of that request.
Reference Link ¶

⚼ Request

GET:  /document/batches/{id}
{
api-version: string ,
id: string ,
}

⚐ Response (200)

{
id: string ,
createdDateTimeUtc: string ,
lastActionDateTimeUtc: string ,
status: enum ,
error:
{
code: enum ,
message: string ,
target: string ,
innerError:
{
code: string ,
message: string ,
target: string ,
innerError: string ,
}
,
}
,
summary:
{
total: integer ,
failed: integer ,
success: integer ,
inProgress: integer ,
notYetStarted: integer ,
cancelled: integer ,
totalCharacterCharged: integer ,
totalImageScansSucceeded: integer ,
totalImageScansFailed: integer ,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
DocumentTranslationOperations_CancelTranslation (removed)
Description Cancel a currently processing or queued translation. A translation will not be cancelled if it is already completed or failed or cancelling. A bad request will be returned. All documents that have completed translation will not be cancelled and will be charged. All pending documents will be cancelled if possible.
Reference Link ¶

⚼ Request

DELETE:  /document/batches/{id}
{
api-version: string ,
id: string ,
}

⚐ Response (200)

{
id: string ,
createdDateTimeUtc: string ,
lastActionDateTimeUtc: string ,
status: enum ,
error:
{
code: enum ,
message: string ,
target: string ,
innerError:
{
code: string ,
message: string ,
target: string ,
innerError: string ,
}
,
}
,
summary:
{
total: integer ,
failed: integer ,
success: integer ,
inProgress: integer ,
notYetStarted: integer ,
cancelled: integer ,
totalCharacterCharged: integer ,
totalImageScansSucceeded: integer ,
totalImageScansFailed: integer ,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
DocumentTranslationOperations_GetDocumentsStatus (removed)
Description Returns the status for all documents in a batch document translation request. If the number of documents in the response exceeds our paging limit, server-side paging is used. Paginated responses indicate a partial result and include a continuation token in the response. The absence of a continuation token means that no additional pages are available. top, skip and maxpagesize query parameters can be used to specify a number of results to return and an offset for the collection. top indicates the total number of records the user wants to be returned across all pages. skip indicates the number of records to skip from the list of document status held by the server based on the sorting method specified. By default, we sort by descending start time. maxpagesize is the maximum items returned in a page. If more items are requested via top (or top is not specified and there are more items to be returned), @nextLink will contain the link to the next page. orderby query parameter can be used to sort the returned list (ex "orderby=createdDateTimeUtc asc" or "orderby=createdDateTimeUtc desc"). The default sorting is descending by createdDateTimeUtc. Some query parameters can be used to filter the returned list (ex: "status=Succeeded,Cancelled") will only return succeeded and cancelled documents. createdDateTimeUtcStart and createdDateTimeUtcEnd can be used combined or separately to specify a range of datetime to filter the returned list by. The supported filtering query parameters are (status, ids, createdDateTimeUtcStart, createdDateTimeUtcEnd). When both top and skip are included, the server should first apply skip and then top on the collection. Note: If the server can't honor top and/or skip, the server must return an error to the client informing about it instead of just ignoring the query options. This reduces the risk of the client making assumptions about the data returned.
Reference Link ¶

⚼ Request

GET:  /document/batches/{id}/documents
{
api-version: string ,
id: string ,
top: integer ,
skip: integer ,
maxpagesize: integer ,
ids: array ,
statuses: array ,
createdDateTimeUtcStart: string ,
createdDateTimeUtcEnd: string ,
orderby: array ,
}

⚐ Response (200)

{
value:
[
{
path: string ,
sourcePath: string ,
createdDateTimeUtc: string ,
lastActionDateTimeUtc: string ,
status: enum ,
to: string ,
error:
{
code: enum ,
message: string ,
target: string ,
innerError:
{
code: string ,
message: string ,
target: string ,
innerError: string ,
}
,
}
,
progress: number ,
id: string ,
characterCharged: integer ,
totalImageScansSucceeded: integer ,
totalImageScansFailed: integer ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
DocumentTranslationOperations_GetDocumentStatus (removed)
Description Returns the translation status for a specific document based on the request Id and document Id.
Reference Link ¶

⚼ Request

GET:  /document/batches/{id}/documents/{documentId}
{
api-version: string ,
id: string ,
documentId: string ,
}

⚐ Response (200)

{
path: string ,
sourcePath: string ,
createdDateTimeUtc: string ,
lastActionDateTimeUtc: string ,
status: enum ,
to: string ,
error:
{
code: enum ,
message: string ,
target: string ,
innerError:
{
code: string ,
message: string ,
target: string ,
innerError: string ,
}
,
}
,
progress: number ,
id: string ,
characterCharged: integer ,
totalImageScansSucceeded: integer ,
totalImageScansFailed: integer ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
DocumentTranslationOperations_GetSupportedFormats (removed)
Description The list of supported formats supported by the Document Translation service. The list includes the common file extension, as well as the content-type if using the upload API.
Reference Link ¶

⚼ Request

GET:  /document/formats
{
api-version: string ,
type: string ,
}

⚐ Response (200)

{
value:
[
{
format: string ,
fileExtensions:
[
string ,
]
,
contentTypes:
[
string ,
]
,
defaultVersion: string ,
versions:
[
string ,
]
,
type: enum ,
}
,
]
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
DocumentTranslationOperations_DocumentTranslate (removed)
Description Use this API to submit a single translation request to the Document Translation Service.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
$headers:
{
total-image-scans-failed: integer ,
total-image-scans-succeeded: integer ,
x-metered-usage: integer ,
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 ,
}
,
}
,
}
,
}