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

Create a document template.

POST/api/v1/document-templatesdocument_templates:write
注記

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

The file document must be readable and be a .docx or .xlsx. output_document_type is a document type's exact name. project_id (optional) makes it a project's template; it cannot be changed later.

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

パラメーター​

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

リクエスト本文​

Content-Type型
application/jsonDocumentTemplateCreateInput

応答​

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

スキーマ​

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

DocumentTemplateCreateInput​

フィールド型必須説明
document_idstring必須
output_document_typeobject または null任意
project_idstring または null任意The project the template belongs to; null or absent for a template every project lists. It cannot be changed afterwards.
template_namestring必須