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": 70586390.85762906,
        "y": -36607892.695074365
      },
      "workflow_end": {
        "name": "workflow_end",
        "summary": "workflow_end",
        "groups": [],
        "x": -73903397.01901159,
        "y": -85006874.76403983
      },
      "error_handler": {
        "name": "childJob",
        "summary": "ad in",
        "description": "minim laboris nisi consequat ad",
        "app": "pariatur cillum laboris",
        "variables": {
          "error": "",
          "decorators": [
            {
              "type": "encryption",
              "pointer": "/~0/J,/a.hF9hp/~1/F/OJhWlU1/Jp2qPB/~1/EtORGHI/pwQB8a/YChQK"
            },
            {
              "type": "encryption",
              "pointer": "/fjVKmjOId8J/nXefl/~0/~0/~1/X5dG4jxstCo/~0"
            },
            {
              "type": "encryption",
              "pointer": "/~0/~0/HcoF/~1/~1/BW+0cY/PUO/~1/~0/yxkp9k.xcAJ"
            }
          ]
        },
        "groups": [
          "c989f644cc2e7ea45ad836d7",
          "144911981f401c31a761b182",
          "2783309942055c46c66b6e02"
        ],
        "type": "operation",
        "deprecated": true,
        "scheduled": true
      }
    },
    "transitions": {},
    "groups": [
      "990e0169e080b84f4e265c33"
    ],
    "_id": "48cf31ed-58dc-90d0-6423-59bc0d8db50e",
    "description": null,
    "errorHandler": {
      "type": "dolore",
      "name": "ipsum"
    },
    "font_size": 12,
    "created": "2017-05-24T12:29:57.448Z",
    "created_by": "23e064d1c2fa514c9cfde386",
    "createdVersion": "cillum enim magna aute voluptate",
    "last_updated": "1996-06-16T14:46:22.542Z",
    "last_updated_by": "0fdd269f4faaef755f9d66b5",
    "lastUpdatedVersion": "Duis est pariatur ut",
    "tags": [],
    "canvasVersion": 1,
    "decorators": [
      {
        "type": "encryption",
        "pointer": "/~1/~1/B2MtpSy/QU8hKw/bh/Qndm/~0"
      },
      {
        "type": "encryption",
        "pointer": "/x6l,zdbV,w/~1/R/~1/aGwAJltp/p5./W6p"
      },
      {
        "type": "encryption",
        "pointer": "/VgYdZOfms/G"
      },
      {
        "type": "encryption",
        "pointer": "/lE/Iq8/~0/~1/q/KzNH/~0/~1/~1"
      }
    ]
  }
}
           
          
            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": -24542857.549961194,
      "y": -51742061.904326156
    },
    "workflow_end": {
      "name": "workflow_end",
      "summary": "workflow_end",
      "groups": [],
      "x": -16134195.332533434,
      "y": -87712758.10756612
    },
    "error_handler": {
      "name": "childJob",
      "summary": "deserunt",
      "description": "sunt cupidatat ullamco commodo",
      "app": "cupidatat aliqua eiusmod",
      "variables": {
        "error": "",
        "decorators": [
          {
            "type": "encryption",
            "pointer": "/~1/~1/El40+p"
          },
          {
            "type": "encryption",
            "pointer": "/dMeSJV/x/e9Hl.WN/cIgQI79/vssHfDV"
          },
          {
            "type": "encryption",
            "pointer": "/FBSZ3kaKyu4/A/v.YJm22w/qkK8g//~0/UkXZ2vp/a3XVAT2"
          },
          {
            "type": "encryption",
            "pointer": "/~1/~1/u7fSAYhY"
          },
          {
            "type": "encryption",
            "pointer": "/DC.hMeVM-"
          }
        ]
      },
      "groups": [
        "dfc8aa08abc151758e450efa",
        "c35436ff6cc4f1e90f90028d",
        "a7ec15f9ea897a39a6d8bbb1"
      ],
      "type": "operation",
      "deprecated": false,
      "scheduled": true
    }
  },
  "transitions": {},
  "groups": [
    "7836568c5d0b997face73aa7",
    "46b4db6a15524d43d58810ce"
  ],
  "_id": "0cded9b4-2c82-3574-94eb-089a1f6414aa",
  "description": "consectetur ex ea",
  "errorHandler": null,
  "font_size": 12,
  "created": "1989-10-22T09:42:22.076Z",
  "created_by": "c25cb78126ad8a487b6aa374",
  "createdVersion": "mollit ea incididunt Lorem",
  "last_updated": "1983-01-01T23:42:27.355Z",
  "last_updated_by": "b76133e859fa9c1418356497",
  "lastUpdatedVersion": "minim non irure reprehenderit in",
  "tags": [],
  "canvasVersion": 1,
  "decorators": [
    {
      "type": "encryption",
      "pointer": "/~1/~0/MwX/6wcn2/Wa/~0/x/hiqG/q79u+/Zg344pOQUKo/wwK,fax/~0"
    },
    {
      "type": "encryption",
      "pointer": "/~1/y39mQ/~0/~0/~0/pLckB-KKhLn/~0"
    },
    {
      "type": "encryption",
      "pointer": "/~1/~1/~1"
    },
    {
      "type": "encryption",
      "pointer": "/behB/~1/LtLd/~1/vy/DWM8B9SnOl/~0"
    }
  ]
}