Summary
Validate a workflow
Description
Validate a workflow, and return the resulting errors and warnings arrays.
Route
POST /automation-studio/workflows/validate
Roles
admin
engineering
support
apiread
apiwrite
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
workflow |
object |
yes |
The workflow to validate |
Copied to Clipboard
{
"workflow": {
"name": "My Workflow",
"type": "automation",
"tasks": {
"workflow_start": {
"name": "workflow_start",
"summary": "workflow_start",
"groups": [],
"x": 0.36142061281337046,
"y": 0.502092050209205
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 0.36142061281337046,
"y": 0.502092050209205
},
"error_handler": {
"name": "childJob",
"summary": "amet deserunt",
"description": "ex",
"app": "officia labore minim",
"variables": {
"error": ""
},
"groups": [
"287b982aa5265320c2608ad8",
"05417fd1b508ef4f1af523ed",
"fd5a0483e499f2c1868c6b15"
],
"x": 0.36142061281337046,
"y": 0.502092050209205,
"type": "operation",
"deprecated": true,
"scheduled": true,
"retrySettings": {
"state": [
"success",
"error",
"error"
],
"autoRetry": false,
"limit": 10,
"delay": 1000,
"count": 5
}
}
},
"transitions": {},
"groups": [
"d0d09ab552405c562359aae4",
"ae2106d2556032e9d89d7afd"
],
"_id": "5cb7b531d06cceb89fd21b1c",
"description": "dolor aute est magna",
"preAutomationTime": 250000,
"font_size": 12,
"created": "1989-07-21T20:05:06.388Z",
"created_by": "17dd992797c2e36077336345",
"last_updated": "2006-01-11T05:17:56.913Z",
"last_updated_by": "bc037a113694319357f1da3f",
"lastUpdatedVersion": "veniam anim irure nostrud",
"tags": [],
"canvasVersion": 2
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"workflow": {
"title": "workflow",
"$ref": "workflowDocument"
}
},
"required": [
"workflow"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
validationResult |
object |
Errors and warnings output from the validation process |
Copied to Clipboard
{
"errors": [],
"warnings": []
}
Copied to Clipboard
{
"type": "object",
"title": "validationResult",
"properties": {
"errors": {
"type": "array"
},
"warnings": {
"type": "array"
}
}
}