Summary
          Validate a workflow
          Description
          Validate a workflow, and return the resulting errors and warnings arrays.
          Route
          POST /workflow_engine/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": "dolore dolor cillum",
        "description": "Lorem culpa aliqua voluptate anim",
        "app": "anim",
        "variables": {
          "error": ""
        },
        "groups": [
          "c4688a1d9d242dc21ab16283",
          "b4ea72a9b150988fea1125b1",
          "6d0781f219641d281b8b28df",
          "18b94f51c01273b4c2866ee5"
        ],
        "x": 0.36142061281337046,
        "y": 0.502092050209205,
        "type": "operation",
        "deprecated": false,
        "scheduled": false,
        "retrySettings": {
          "state": [
            "success"
          ],
          "autoRetry": true,
          "limit": 20,
          "delay": 2000,
          "count": 5
        }
      }
    },
    "transitions": {},
    "groups": [
      "9018b5f0d08a7cc4eaad7527",
      "0d69c349f4d83f8d2890f387",
      "eb4259e8db83cbe6a1b46151",
      "bd7ad364402f6ae53900e4f4"
    ],
    "_id": "4321abcdef694aa79dae47ad",
    "description": null,
    "preAutomationTime": 250000,
    "font_size": 12,
    "created": "1980-02-04T12:25:59.342Z",
    "created_by": "b22b2b57549e9575d8ffc141",
    "last_updated": "1966-01-11T00:32:14.758Z",
    "last_updated_by": "7a28ee89eec6cb4741e91faf",
    "lastUpdatedVersion": "elit aute",
    "tags": [],
    "canvasVersion": 1
  }
}
           
          
            Copied to Clipboard
            
            {
  "type": "object",
  "properties": {
    "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",
  "properties": {
    "errors": {
      "type": "array"
    },
    "warnings": {
      "type": "array"
    }
  }
}