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.
| Scope | workflows:author |
| Asynchronous | No |
| MCP tool | update_workflow_template_node |
| Portal permissions | edit_workflow_node_configs |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
workflow_template_id | path | string | Required | |
node_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
If-Match | header | string | Optional |
Request body
| Content type | Type |
|---|---|
application/json | WorkflowTemplateStepPatchInput |
application/merge-patch+json | WorkflowTemplateStepPatchInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json WorkflowTemplateStep 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
WorkflowTemplateStep
| Field | Type | Required | Description |
|---|---|---|---|
inputs | array of WorkflowTemplateStepSetting | Required | |
label | string or null | Required | |
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 | Required | A source step in the visible parent lineage whose unchanged credentials may be retained, independent of step identity. |
outputs | array of WorkflowTemplateStepOutput | Required | |
previous_node_id | string or null | Required | The step's node_id in the version it was copied from, so it keeps its identity; null for a new step. |
WorkflowTemplateStepOutput
| Field | Type | Required | Description |
|---|---|---|---|
response_node_id | string or null | Required | |
type | string | Required | |
value | string or null | Required |
WorkflowTemplateStepPatchInput
| Field | Type | Required | Description |
|---|---|---|---|
inputs | array of WorkflowTemplateStepSettingInput or null | Optional | Inputs to set, each with its type and value. A credential left as the redaction marker keeps its stored value. |
label | string or null | Optional | The step's team label; "" takes the step out of every section. |
remove_inputs | array of string or null | Optional | Input types to delete from the step. |
WorkflowTemplateStepSetting
| Field | Type | Required | Description |
|---|---|---|---|
redacted | boolean | Required | 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 | Required |
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 |