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.
| Scope | workflows:author |
| Asynchronous | No |
| MCP tool | duplicate_workflow_template |
| Portal permissions | duplicate_workflow_templates, view_workflow_templates, view_workflow_node_configs, view_workflow_template_io |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workflow_template_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
Idempotency-Key | header | string | Optional | max 255 |
Request body
| Content type | Type |
|---|---|
application/json | WorkflowTemplateDuplicateInput |
Responses
| Status | Description | Body |
|---|---|---|
201 | Success. | application/json WorkflowTemplate or object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
409 | conflict, idempotency_in_progress | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | idempotency_key_reused, validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
WorkflowTemplate
| Field | Type | Required | Description |
|---|---|---|---|
current_workflow_template_version_id | string | Required | The version that runs now; a workflow started from the template runs it. |
entity_sub_type | string | Required | The document type the template applies to; empty for any. |
entity_type | string | Required | The entity the template applies to; empty for any. |
is_active | boolean | Required | false when the template cannot be started. |
name | string | Required | |
project_id | string or null | Required | The project the template applies to; null for any project. |
workflow_template_group_id | string or null | Required | The template group it sits in; null for none. |
workflow_template_id | string | Required |
WorkflowTemplateDuplicateInput
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Required | The copy's name, up to 500 characters. |
workflow_template_group_id | string or null | Optional | The copy's group; absent for the source template's group. |
workflow_template_version_id | string or null | Optional | Copy this version rather than the newest. |