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 minim commodo dolor dolor",
        "description": "aliquip",
        "app": "enim nisi officia anim",
        "variables": {
          "error": ""
        },
        "groups": [
          "fe6eec07a43b732d48c8a998"
        ],
        "x": 0.36142061281337046,
        "y": 0.502092050209205,
        "type": "operation",
        "deprecated": true,
        "scheduled": false,
        "retrySettings": {
          "state": [
            "failure",
            "error",
            "success",
            "failure",
            "error"
          ],
          "autoRetry": true,
          "limit": 10,
          "delay": 2000,
          "count": 5
        }
      }
    },
    "transitions": {},
    "groups": [
      "fd6da5e17422d5aeef3599e5"
    ],
    "_id": "5cb7b531d06cceb89fd21b1c",
    "description": "consequat laborum est Excepteur enim",
    "preAutomationTime": 250000,
    "font_size": 12,
    "created": "2014-02-25T10:46:31.287Z",
    "created_by": "fd0d4dc77e7f97f659560c24",
    "last_updated": "1943-08-08T17:59:36.909Z",
    "last_updated_by": "15ac41fbed3794d6e0229087",
    "lastUpdatedVersion": "laboris",
    "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"
    }
  }
}