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": 18109223.452074602,
"y": 81013303.38091844
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -38716488.81240981,
"y": -29325832.59969212
},
"error_handler": {
"name": "childJob",
"summary": "aute reprehenderit tempor consectetur labore",
"description": "occaecat consequat anim",
"app": "magna do",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~1"
}
]
},
"groups": [
"1670586cff3c84961a0fa7b2",
"b6039f40cc48f4d67099795d"
],
"type": "operation",
"deprecated": false,
"scheduled": true
}
},
"transitions": {},
"groups": [
"d92cd98684443790a8c978bc",
"3edfdc2416b869157c9517e4"
],
"_id": "b450f0d6-820b-17a6-8c02-89de64e6ebb5",
"description": "irure occaecat quis exercitation",
"errorHandler": {
"type": "aliquip occaecat nulla Ut et",
"name": "voluptate amet cupidatat aliquip mollit"
},
"font_size": 12,
"created": "1951-01-29T11:27:56.066Z",
"created_by": "0998f21a2a72b24cfab4b428",
"createdVersion": "ut reprehenderit est Duis",
"last_updated": "1974-07-01T09:15:42.679Z",
"last_updated_by": "65fd500c26aa926a319740ae",
"lastUpdatedVersion": "velit pariatur tempor Lorem",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/yxdA,l/~1/~1/drgkb+/gJEcV/~0/UQ5q5n/lJ/vH2FgUsp"
},
{
"type": "encryption",
"pointer": "/~1/fxq8dmNj/DnSx0ERjva7/~1/~1/~1/Nch0t/~0/~0"
},
{
"type": "encryption",
"pointer": "/~0/~1"
},
{
"type": "encryption",
"pointer": "/~1/aoIL3csJ2dG/~1/~0"
},
{
"type": "encryption",
"pointer": "/o/~1/SK1GOe/~0/y4HSl/G/x/giWml/~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": -80476927.71927366,
"y": -72182382.6436074
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 47440168.519591,
"y": 10891189.008742243
},
"error_handler": {
"name": "childJob",
"summary": "Ut ea dolore et",
"description": "qui",
"app": "aute eiusmod et pariatur ipsum",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~0/m/~1/CV1hXcg9/~0/~0"
},
{
"type": "encryption",
"pointer": "/cUxTGnhTK"
}
]
},
"groups": [
"db90e0219ce373f8efe3dd01",
"7ae987f753f7883e81927bc7"
],
"type": "operation",
"deprecated": true,
"scheduled": false
}
},
"transitions": {},
"groups": [
"ee56973e424b5b1c4bb2ac21",
"8a7141203dc3c6dd90d78a79",
"6a99318bf925ccf71b72f5bc"
],
"_id": "0fd87c3b-4335-1273-b28e-0efdd29093c0",
"description": "laborum aliqua dolor",
"errorHandler": null,
"font_size": 12,
"created": "2002-03-23T01:50:45.092Z",
"created_by": "640c0a5649f2c2e2ab67b6e4",
"createdVersion": "aliquip",
"last_updated": "1964-10-25T20:47:57.897Z",
"last_updated_by": "30b9d3a8c8c14a4fefb01548",
"lastUpdatedVersion": "id et dolore reprehenderit",
"tags": [],
"canvasVersion": 2,
"decorators": [
{
"type": "encryption",
"pointer": "/~0/~0/sC"
},
{
"type": "encryption",
"pointer": "/nZ/hyUtgU/~0/~0"
},
{
"type": "encryption",
"pointer": "/~1"
}
]
}