Skip to main content

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.

Scopeworkflows:author
AsynchronousNo
MCP toolupdate_workflow_template
Portal permissionsedit_workflow_templates

Parameters​

NameInTypeRequiredDescription
workflow_template_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

Content typeType
application/jsonWorkflowTemplatePatchInput
application/merge-patch+jsonWorkflowTemplatePatchInput

Responses​

StatusDescriptionBody
200Success.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
409conflictapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_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

WorkflowTemplatePatchInput​

FieldTypeRequiredDescription
canvasobject or null or nullOptional
current_workflow_template_version_idstring or nullOptional
entity_sub_typestring or nullOptional
entity_typestring or nullOptional
is_activeboolean or nullOptional
namestring or nullOptional
project_idstring or nullOptional
redacted_countinteger or nullOptional
settingsWorkflowTemplateSettingsPatchInput or nullOptional
stepsarray of WorkflowTemplateStepInput or nullOptional
workflow_template_group_idstring or nullOptional
workflow_template_idstring or nullOptional
workflow_template_version_idstring or nullOptional

WorkflowTemplateSettingsPatchInput​

FieldTypeRequiredDescription
late_action_request_emailsboolean or nullOptional
late_action_request_send_frequency_secondsinteger or nullOptional
main_item_requires_actionsboolean or nullOptional
notify_owner_about_action_responseboolean or nullOptional
notify_owner_about_completionboolean or nullOptional
notify_owner_about_late_action_requestsboolean or nullOptional

WorkflowTemplateStepInput​

FieldTypeRequiredDescription
inputsarray of WorkflowTemplateStepSettingInputOptional
labelstring or nullOptional
node_idstringRequired
node_typestringRequiredThe step type, as list_node_types names it (for example StartNode).
original_node_idstring or nullOptionalA source step in the visible parent lineage whose unchanged credentials may be retained, independent of step identity.
outputsarray of WorkflowTemplateStepOutputInputOptional
previous_node_idstring or nullOptionalThe step's node_id in the version it was copied from, so it keeps its identity; null for a new step.

WorkflowTemplateStepOutputInput​

FieldTypeRequiredDescription
response_node_idstring or nullOptional
typestringRequired
valuestring or nullOptional

WorkflowTemplateStepSettingInput​

FieldTypeRequiredDescription
redactedbooleanOptionaltrue 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.
typestringRequired
valuestring or nullOptional