Change a workflow template's details, active flag or settings (JSON Merge Patch).
PATCH/api/v1/workflow-templates/{workflow_template_id}workflows:author
Only the members sent change. The name, type, project, group and active flag change the template in place. Settings are saved as a new version, as its Start step holds them; settings that already hold the sent values are refused. If-Match compares the template's stored columns and its running version.
| Scope | workflows:author |
| Asynchronous | No |
| MCP tool | update_workflow_template |
| Portal permissions | edit_workflow_templates |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workflow_template_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
If-Match | header | string | Optional |
Request body
| Content type | Type |
|---|---|
application/json | WorkflowTemplatePatchInput |
application/merge-patch+json | WorkflowTemplatePatchInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | 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 | application/problem+json Problem |
412 | precondition_failed | 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 | 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 |
WorkflowTemplatePatchInput
| Field | Type | Required | Description |
|---|---|---|---|
canvas | object or null or null | Optional | |
current_workflow_template_version_id | string or null | Optional | |
entity_sub_type | string or null | Optional | |
entity_type | string or null | Optional | |
is_active | boolean or null | Optional | |
name | string or null | Optional | |
project_id | string or null | Optional | |
redacted_count | integer or null | Optional | |
settings | WorkflowTemplateSettingsPatchInput or null | Optional | |
steps | array of WorkflowTemplateStepInput or null | Optional | |
workflow_template_group_id | string or null | Optional | |
workflow_template_id | string or null | Optional | |
workflow_template_version_id | string or null | Optional |
WorkflowTemplateSettingsPatchInput
| Field | Type | Required | Description |
|---|---|---|---|
late_action_request_emails | boolean or null | Optional | |
late_action_request_send_frequency_seconds | integer or null | Optional | |
main_item_requires_actions | boolean or null | Optional | |
notify_owner_about_action_response | boolean or null | Optional | |
notify_owner_about_completion | boolean or null | Optional | |
notify_owner_about_late_action_requests | boolean or null | Optional |
WorkflowTemplateStepInput
| Field | Type | Required | Description |
|---|---|---|---|
inputs | array of WorkflowTemplateStepSettingInput | Optional | |
label | string or null | Optional | |
node_id | string | Required | |
node_type | string | Required | The step type, as list_node_types names it (for example StartNode). |
original_node_id | string or null | Optional | A source step in the visible parent lineage whose unchanged credentials may be retained, independent of step identity. |
outputs | array of WorkflowTemplateStepOutputInput | Optional | |
previous_node_id | string or null | Optional | The step's node_id in the version it was copied from, so it keeps its identity; null for a new step. |
WorkflowTemplateStepOutputInput
| Field | Type | Required | Description |
|---|---|---|---|
response_node_id | string or null | Optional | |
type | string | Required | |
value | string or null | Optional |
WorkflowTemplateStepSettingInput
| Field | Type | Required | Description |
|---|---|---|---|
redacted | boolean | Optional | true when the value is a redacted credential the read replaced. Send it back as the marker to keep the credential the step it continues stores (previous_node_id); a marker on a step with no stored credential is refused. |
type | string | Required | |
value | string or null | Optional |