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

Duplicate a document template.

POST/api/v1/document-templates/{document_template_id}/duplicatedocument_templates:write
注記

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

Creates a template named "<name> (copy)" on the same file, with the same output type and project (the Portal's duplicate). The copy is a template of its own: renaming or deleting it leaves the original alone. Answers 201 with the copy.

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

パラメーター​

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

応答​

ステータス説明本文
201Success.application/json DocumentTemplate または object
400invalid_versionapplication/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
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 のコードです。各コードからそのページに移動できます。

スキーマ​

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必須