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

Copy a workflow template as a new template.

POST/api/v1/workflow-templates/{workflow_template_id}/duplicateworkflows:author
注記

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

Copies the newest version, or workflow_template_version_id, as a new template named name. A copy of a Periodic template starts inactive, so it does not run on the schedule.

スコープworkflows:author
非同期いいえ
MCP ツールduplicate_workflow_template
Portal の権限duplicate_workflow_templates, view_workflow_templates, view_workflow_node_configs, view_workflow_template_io

パラメーター​

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

リクエスト本文​

Content-Type型
application/jsonWorkflowTemplateDuplicateInput

応答​

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

スキーマ​

WorkflowTemplate​

フィールド型必須説明
current_workflow_template_version_idstring必須The version that runs now; a workflow started from the template runs it.
entity_sub_typestring必須The document type the template applies to; empty for any.
entity_typestring必須The entity the template applies to; empty for any.
is_activeboolean必須false when the template cannot be started.
namestring必須
project_idstring または null必須The project the template applies to; null for any project.
workflow_template_group_idstring または null必須The template group it sits in; null for none.
workflow_template_idstring必須

WorkflowTemplateDuplicateInput​

フィールド型必須説明
namestring必須The copy's name, up to 500 characters.
workflow_template_group_idstring または null任意The copy's group; absent for the source template's group.
workflow_template_version_idstring または null任意Copy this version rather than the newest.