Skip to main content

Change one step of a workflow template (JSON Merge Patch).

PATCH/api/v1/workflow-templates/{workflow_template_id}/nodes/{node_id}workflows:author

Changes the step's inputs and label without re-sending the template. A credential input keeps its stored value unless a new one is sent, and inputs the builder derives from supporting steps are refused. node_id is the step's stable node_id. The change is saved as a new version, the one that runs from now on. If-Match compares the template's stored columns and its running version, as GET of the template answers them.

Scopeworkflows:author
AsynchronousNo
MCP toolupdate_workflow_template_node
Portal permissionsedit_workflow_node_configs

Parameters​

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

Request body​

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

Responses​

StatusDescriptionBody
200Success.application/json WorkflowTemplateStep 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​

WorkflowTemplateStep​

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

WorkflowTemplateStepOutput​

FieldTypeRequiredDescription
response_node_idstring or nullRequired
typestringRequired
valuestring or nullRequired

WorkflowTemplateStepPatchInput​

FieldTypeRequiredDescription
inputsarray of WorkflowTemplateStepSettingInput or nullOptionalInputs to set, each with its type and value. A credential left as the redaction marker keeps its stored value.
labelstring or nullOptionalThe step's team label; "" takes the step out of every section.
remove_inputsarray of string or nullOptionalInput types to delete from the step.

WorkflowTemplateStepSetting​

FieldTypeRequiredDescription
redactedbooleanRequiredtrue 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 nullRequired

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