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

Update a document template (JSON Merge Patch).

PATCH/api/v1/document-templates/{document_template_id}document_templates:write
注記

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

The project and deletion are read-only. document_id changes only for an orphaned template, whose document no longer exists (the Portal's upload of a replacement file): the new document must be readable and a .docx or .xlsx, as when creating one; for any other template it is read-only.

スコープdocument_templates:write
非同期いいえ
MCP ツールupdate_document_template
Portal の権限edit_document_templates

パラメーター​

名前場所型必須説明
document_template_idpathstring必須
Docwize-Versionheaderstring (date)任意
If-Matchheaderstring任意

リクエスト本文​

Content-Type型
application/jsonDocumentTemplatePatchInput
application/merge-patch+jsonDocumentTemplatePatchInput

応答​

ステータス説明本文
200Success.application/json DocumentTemplate または 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
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

エラー​

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

スキーマ​

DocumentTemplate​

フィールド型必須説明
deleted_atstring (date-time) または null必須
document_idstring必須The document holding the template file.
document_template_idstring必須
output_document_typeobject または null必須
project_idstring または null必須
template_namestring または null必須

DocumentTemplatePatchInput​

フィールド型必須説明
deleted_atstring (date-time) または null任意
document_idstring または null任意The document holding the template file. Changes only while the template's document no longer exists (an orphaned template); the new document must be readable and a .docx or .xlsx.
document_template_idstring または null任意
output_document_typeobject または null任意
project_idstring または null任意
template_namestring または null任意