Skip to main content

Replace a workflow template's sections.

POST/api/v1/workflow-templates/{workflow_template_id}/sections/replaceworkflows:author

Sends the complete set of sections of the template: each named section with the steps in it. A section not sent is removed, and each step's team label becomes the label of the first section that holds it, as the builder does. 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. The answer is the new set.

Scopeworkflows:author
AsynchronousNo
MCP toolreplace_workflow_template_sections
Portal permissionsedit_workflow_templates

Parameters​

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

Request body​

Content typeType
application/jsonWorkflowTemplateSectionSetInput

Responses​

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

WorkflowTemplateSection​

FieldTypeRequiredDescription
namestringRequiredThe section's label; the steps in it report under this label.
step_idsarray of stringRequiredThe steps in the section, by their node_id from a template read.

WorkflowTemplateSectionInput​

FieldTypeRequiredDescription
namestringRequiredThe section's label; the steps in it report under this label.
step_idsarray of stringRequiredThe steps in the section, by their node_id from a template read.

WorkflowTemplateSectionSet​

FieldTypeRequiredDescription
itemsarray of WorkflowTemplateSectionRequiredThe complete set. A section not listed is removed; an empty list removes them all.

WorkflowTemplateSectionSetInput​

FieldTypeRequiredDescription
itemsarray of WorkflowTemplateSectionInputRequiredThe complete set. A section not listed is removed; an empty list removes them all.