Summary
          Add Workflow
          Description
          Add a Workflow to the database
          Route
          POST /workflow_builder/workflows/save
          Roles
          
            admin
engineering
support
          
          Parameters
          
            DetailsExampleSchema
          
          
            
              
                | Name | Type | Required | Description | 
            
            
              
    | workflow | object | yes | Workflow's data. | 
            
          
          
            Copied to Clipboard
            
            {
  "workflow": {
    "name": "My Workflow",
    "type": "automation",
    "tasks": {
      "workflow_start": {
        "name": "workflow_start",
        "summary": "workflow_start",
        "groups": [],
        "x": 16557655.539992139,
        "y": -91746663.19928688
      },
      "workflow_end": {
        "name": "workflow_end",
        "summary": "workflow_end",
        "groups": [],
        "x": -13958801.671009451,
        "y": 59227909.89514941
      },
      "error_handler": {
        "name": "childJob",
        "summary": "dolore tempor",
        "description": "quis amet nisi",
        "app": "Ut magna anim",
        "variables": {
          "error": "",
          "decorators": [
            {
              "type": "encryption",
              "pointer": "/xUB/~0/~0/~1"
            }
          ]
        },
        "groups": [
          "f5c03c7d49504ed939840478",
          "2fff1003b3cbb651836ee897",
          "43e2dc9e3540fb07c7b2908a"
        ],
        "type": "operation",
        "deprecated": false,
        "scheduled": false
      }
    },
    "transitions": {},
    "groups": [
      "dca81caf1ff8004c4f3da569",
      "7535dc227460eabeddbd8860",
      "1a790106a681382c08bda9a2"
    ],
    "_id": "077f301f-c37f-551d-d7af-417a6202a7ba",
    "description": null,
    "errorHandler": null,
    "font_size": 12,
    "created": "1960-08-22T07:38:05.786Z",
    "created_by": "90e8a5a96b0d90f8ee4fc079",
    "createdVersion": "nisi",
    "last_updated": "1974-08-19T16:17:59.226Z",
    "last_updated_by": "6ee71eb49e1b8495061d73ae",
    "lastUpdatedVersion": "incididunt occaecat",
    "tags": [],
    "canvasVersion": 1,
    "decorators": [
      {
        "type": "encryption",
        "pointer": "/~0/~1/M8Hf6I8/Jzj3TqpCD"
      },
      {
        "type": "encryption",
        "pointer": "/RrPijFR/5Qw/~0/~1/~1/t,wb/~1"
      },
      {
        "type": "encryption",
        "pointer": "/qFVy736bCv/~0/Ftkch4vOQ/K/dzw5awq/PQ/~0/~1/~0/~1"
      },
      {
        "type": "encryption",
        "pointer": "/hFLZ3LA/~1/~0/~0/SZ/~0/QI-se5i/C61szq/~0"
      }
    ]
  }
}
           
          
            Copied to Clipboard
            
            {
  "type": "object",
  "properties": {
    "workflow": {
      "$ref": "workflowDocument"
    }
  },
  "required": [
    "workflow"
  ],
  "additionalProperties": false
}
           
          Return
          
            DetailsExampleSchema
          
          
            
              
                | Name | Type | Description | 
            
            
              
                | data | object | The new Workflow with its data and ID. | 
            
          
          
            Copied to Clipboard
            
            {
  "name": "My Workflow",
  "type": "automation",
  "tasks": {
    "workflow_start": {
      "name": "workflow_start",
      "summary": "workflow_start",
      "groups": [],
      "x": 94021069.80608743,
      "y": 40186034.00188205
    },
    "workflow_end": {
      "name": "workflow_end",
      "summary": "workflow_end",
      "groups": [],
      "x": -34828902.15778296,
      "y": -97871561.7066074
    },
    "error_handler": {
      "name": "childJob",
      "summary": "Ut ipsum",
      "description": "Duis ipsum",
      "app": "esse nulla",
      "variables": {
        "error": "",
        "decorators": [
          {
            "type": "encryption",
            "pointer": "/~0/~1/P/~1/U/mf/qwls7g1/xWdmSCcQ/~0/~0"
          },
          {
            "type": "encryption",
            "pointer": "/OIkN/~0/~0/S9/yG5/TZPhUTntj/~0/tgM/~1/Kdrx41ct-Y4/d3Xq3Ar"
          }
        ]
      },
      "groups": [
        "e2e1fc01028065fc8eb9938f"
      ],
      "type": "operation",
      "deprecated": false,
      "scheduled": true
    }
  },
  "transitions": {},
  "groups": [
    "dc1be9f001db8b6fed8827f0",
    "2af401160cdb652e1583d337"
  ],
  "_id": "c24825e2-98fb-f645-1829-11e37672b22f",
  "description": "incididunt officia quis",
  "errorHandler": null,
  "font_size": 12,
  "created": "1946-01-25T16:38:11.329Z",
  "created_by": "2a1369690f47cd68e61ae841",
  "createdVersion": "do tempor minim commodo dolor",
  "last_updated": "1993-09-24T21:48:04.054Z",
  "last_updated_by": "97ce596c24db34a8b68033e7",
  "lastUpdatedVersion": "Excepteur",
  "tags": [],
  "canvasVersion": 2,
  "decorators": [
    {
      "type": "encryption",
      "pointer": "/yUDxz/~1"
    },
    {
      "type": "encryption",
      "pointer": "/~1/g/nd/~1/~1"
    },
    {
      "type": "encryption",
      "pointer": "/~1/gI/~0"
    },
    {
      "type": "encryption",
      "pointer": "/LR8CtT/~1/htYk6cw/~1/~1/~0/rXQKa/~1/ZEb47seOy."
    },
    {
      "type": "encryption",
      "pointer": "/~0/hC/~0/~1/ISc//sHwViN,N+/e/tH"
    }
  ]
}