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": -64324779.18165724,
        "y": 94948388.42477673
      },
      "workflow_end": {
        "name": "workflow_end",
        "summary": "workflow_end",
        "groups": [],
        "x": 17423353.120042592,
        "y": -29090774.473928466
      },
      "error_handler": {
        "name": "childJob",
        "summary": "sint commodo",
        "description": "esse do sint",
        "app": "non consectetur mollit",
        "variables": {
          "error": "",
          "decorators": [
            {
              "type": "encryption",
              "pointer": "/d665+nCL7Ey/~1"
            },
            {
              "type": "encryption",
              "pointer": "/XzV1s41TD1K/~0/~0/~0/Gnnat5/~1/B3/PlhXZ0Lwo/p/SqE5nVIR5N/~0/~1"
            }
          ]
        },
        "groups": [
          "c75c9c447999c8b8b33500d8",
          "419da5c286d9f35f104f4fc0"
        ],
        "type": "operation",
        "deprecated": true,
        "scheduled": false
      }
    },
    "transitions": {},
    "groups": [
      "d3486bf10dc3c950a9815498",
      "0e4b270319a976c3af25eaca"
    ],
    "_id": "29135464-3b9d-1c2c-37ab-4cc45d77b2a6",
    "description": "mollit sunt Ut dolore",
    "errorHandler": null,
    "font_size": 12,
    "created": "1967-12-28T21:03:01.719Z",
    "created_by": "183daec46c29630106c6b72f",
    "createdVersion": "occaecat laboris ea Lorem nostrud",
    "last_updated": "1969-02-23T04:20:30.827Z",
    "last_updated_by": "d18a7f600930087f237fe342",
    "lastUpdatedVersion": "voluptate",
    "tags": [],
    "canvasVersion": 2,
    "decorators": [
      {
        "type": "encryption",
        "pointer": "/~0/a2gS/H75lMLMJ3J/~1/~0"
      },
      {
        "type": "encryption",
        "pointer": "/MB2F4,q/EoeDMG/wZbhJ"
      },
      {
        "type": "encryption",
        "pointer": "/~0/~0/~0/~1/Z-aaITzLnZd"
      }
    ]
  }
}
           
          
            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": -93676813.68046564,
      "y": -45747476.67101993
    },
    "workflow_end": {
      "name": "workflow_end",
      "summary": "workflow_end",
      "groups": [],
      "x": 36537630.401111186,
      "y": 29241304.962380618
    },
    "error_handler": {
      "name": "childJob",
      "summary": "in laborum deserunt",
      "description": "Excepteur sit ut consectetur",
      "app": "sint ut incididunt",
      "variables": {
        "error": "",
        "decorators": [
          {
            "type": "encryption",
            "pointer": "/~0/~0/AgC-/-LC/t"
          },
          {
            "type": "encryption",
            "pointer": "/dJa+JeIn9/Pw8/XBYd.dsZbpx/~1/B/g6FJ/RnbQAAT8R/~1/fT/9xLniJ/ZWJ//IsV"
          },
          {
            "type": "encryption",
            "pointer": "/~1/G/~1/LPDY/R/wvR2shXUy/~1/~0"
          },
          {
            "type": "encryption",
            "pointer": "/qnS1"
          }
        ]
      },
      "groups": [
        "6cd89d368504a5c76312361d"
      ],
      "type": "operation",
      "deprecated": true,
      "scheduled": true
    }
  },
  "transitions": {},
  "groups": [
    "abd6a87ef928758e37776d79",
    "af116ee16b97cb53ed2add09",
    "8846031fa1ae6e3be313c563",
    "3bc91f64425143462b336ea3"
  ],
  "_id": "9bfa85cc-92d5-138b-893d-66552db1a924",
  "description": "ut sed",
  "errorHandler": {
    "type": "velit magna dolor quis",
    "name": "sint nisi laborum"
  },
  "font_size": 12,
  "created": "1980-10-19T21:19:19.338Z",
  "created_by": "7bf3bf6427eecaf4d8ac5018",
  "createdVersion": "nisi",
  "last_updated": "2007-12-09T01:24:34.999Z",
  "last_updated_by": "e42c52e22be76c6f100cc31c",
  "lastUpdatedVersion": "est do",
  "tags": [],
  "canvasVersion": 1,
  "decorators": [
    {
      "type": "encryption",
      "pointer": "/qvD14+/aVom-/cd6zaijSIos/H2IpG"
    }
  ]
}