Skip to main content

Check a workflow template for problems the builder warns about.

POST/api/v1/workflow-templates/lintworkflows:read

Warns about a Sub Workflow or Attachment Split step that starts a workflow with no Complete Workflow step or no Output Node. Pass workflow_template_id (its latest version, or workflow_template_version_id) or steps for a draft. Changes nothing.

Scopeworkflows:read
AsynchronousNo
MCP toollint_workflow_templates
Portal permissionslint_workflow_templates

Parameters​

NameInTypeRequiredDescription
Docwize-Versionheaderstring (date)Optional

Request body​

Content typeType
application/jsonWorkflowTemplateLintInput

Responses​

StatusDescriptionBody
200Success.application/json WorkflowTemplateLintResult
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/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​

WorkflowTemplateLintInput​

FieldTypeRequiredDescription
stepsarray of WorkflowTemplateStepInputOptionalA draft's steps, instead of a saved template.
workflow_template_idstring or nullOptionalA saved template, checked at its latest version.
workflow_template_version_idstring or nullOptionalWith workflow_template_id: check this version instead.

WorkflowTemplateLintResult​

FieldTypeRequiredDescription
warningsarray of WorkflowTemplateLintWarningRequired

WorkflowTemplateLintWarning​

FieldTypeRequiredDescription
codestringRequired
messagestringRequired
node_idstringRequired
severitystringRequired
workflow_template_idstringRequired

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