Skip to main content

Copy a workflow template as a new template.

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

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.

Scopeworkflows:author
AsynchronousNo
MCP toolduplicate_workflow_template
Portal permissionsduplicate_workflow_templates, view_workflow_templates, view_workflow_node_configs, view_workflow_template_io

Parameters​

NameInTypeRequiredDescription
workflow_template_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Request body​

Content typeType
application/jsonWorkflowTemplateDuplicateInput

Responses​

StatusDescriptionBody
201Success.application/json WorkflowTemplate or 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

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

WorkflowTemplate​

FieldTypeRequiredDescription
current_workflow_template_version_idstringRequiredThe version that runs now; a workflow started from the template runs it.
entity_sub_typestringRequiredThe document type the template applies to; empty for any.
entity_typestringRequiredThe entity the template applies to; empty for any.
is_activebooleanRequiredfalse when the template cannot be started.
namestringRequired
project_idstring or nullRequiredThe project the template applies to; null for any project.
workflow_template_group_idstring or nullRequiredThe template group it sits in; null for none.
workflow_template_idstringRequired

WorkflowTemplateDuplicateInput​

FieldTypeRequiredDescription
namestringRequiredThe copy's name, up to 500 characters.
workflow_template_group_idstring or nullOptionalThe copy's group; absent for the source template's group.
workflow_template_version_idstring or nullOptionalCopy this version rather than the newest.