メインコンテンツまでスキップ

Start a translation of a document.

POST/api/v1/documents/{document_id}/translationsdocuments:write
注記

このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。

Starts a translation of the document into the language (free text) as the Portal does: the answer is the translation row, PENDING, and it is made in the background by a model (it bills an LLM run). Poll get_document_translation until COMPLETED. Needs Translate Documents and access to the document.

スコープdocuments:write
非同期いいえ
MCP ツールcreate_document_translation
Portal の権限translate_documents

パラメーター​

名前場所型必須説明
document_idpathstring必須
Docwize-Versionheaderstring (date)任意
Idempotency-Keyheaderstring任意max 255

リクエスト本文​

Content-Type型
application/jsonDocumentTranslationCreateInput

応答​

ステータス説明本文
201Success.application/json DocumentTranslation または object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

DocumentTranslation​

フィールド型必須説明
created_atstring (date-time) または null必須
document_translation_idstring必須
languagestring必須The target language, as it was asked for.
statusstring または null必須PENDING while it is being made, COMPLETED when it can be burned into a document, FAILED when it could not be made. Open.
translationobject または null必須The translated text segments with their page and position, format document_translation; null until it is completed.

DocumentTranslationCreateInput​

フィールド型必須説明
languagestring必須The language to translate into, as free text (English, ja, Français). Not blank.