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": [
"b8054a85f8684120c725e838",
"3618125fd07e9f43707803fb",
"3618165c66f13bcc6e92be55",
"ecbcf8fecd158ab58b9ceb40",
"f09681ecdd8897edfe7f1e8b"
],
"x": -37430021.25863635,
"y": -35463144.38218219
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"409c8c2f6479ecfd7dc26cac",
"0f1a71244bfddd0ce3cc7467",
"6f076fad7aa11b04b1d75cf2",
"16a2cdb06825e2d8224b7cca",
"acf0d22968b749054527a58c"
],
"x": -75343475.63665932,
"y": 66508805.269338906
},
"error_handler": {
"name": "childJob",
"summary": "culpa id eiusmod fugiat irure",
"description": "ea nulla commodo",
"app": "aute eiusmod in deserunt",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/K"
},
{
"type": "encryption",
"pointer": "/~0/~1"
},
{
"type": "encryption",
"pointer": "/~1/~1/dKY/~1/jUL4-8isl/~0/~1/~1"
}
]
},
"groups": [
"eb1975869a36de82b15cc7f3",
"ff52d8c5daeee5b274c24736",
"61c3af054e4f9a4c35b24f80",
"bb8ee45a6d5928324ef1122d"
],
"x": -8805577.415525302,
"y": 11507652.786574781,
"type": "operation",
"gridCoordinate": {
"x": -16468945.184084654,
"y": -66856925.65123542
},
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"b2620fc70b9dea96437a2074",
"38f37d50cd2ab7f6b0f4c3fb",
"faba794d85637df2c452823a"
],
"_id": "55b1d01d-bc8b-d7f4-385d-d5dda8be875f",
"description": "officia nostrud eu",
"errorHandler": null,
"font_size": 12,
"created": "2015-01-12T20:20:17.488Z",
"created_by": "49c83c80de5cebda851adae5",
"createdVersion": "minim pariatur id Duis",
"last_updated": "1961-02-13T09:58:01.421Z",
"last_updated_by": "7de0f9d15bda7a2e07795be6",
"lastUpdatedVersion": "do",
"tags": [
"sit",
"anim sit ullamco",
"fugiat sunt exercitation ut dolor",
"dolor fugiat",
"consequat"
],
"canvasVersion": 1,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/Z2/~0/I0S9/HZWJ//~1/hoDOcoCTPQW/~0/~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": [
"66b804379ddf07acde23be7e"
],
"x": 47964058.75525987,
"y": -81291931.6474233
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"e651d9217bd4debbe3536e6c",
"e90da2d5106eb523de5b1eed",
"322c7ca874fbb29b20056baf",
"b9afa053dd259cb00be78adb",
"728b0b87c32bcf57e389990e"
],
"x": -1730025.816250652,
"y": -89567388.11503157
},
"error_handler": {
"name": "childJob",
"summary": "Excepteur proident dolore",
"description": "do dolore dolore ipsum",
"app": "qui",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~1/KDbY/ywV2S6/G1z/~1/~0/~0/EQfFPbry/QnR0O6"
},
{
"type": "encryption",
"pointer": "/~1/k16YQtAovC/~0/~1/LHIxIdL"
},
{
"type": "encryption",
"pointer": "/~1/S4T0q"
}
]
},
"groups": [
"a4f544f871c539bcccd2ab93",
"9e4aa1221d11daa1b9080a0d",
"259036f54ba6753893b486cc"
],
"x": 91510987.35782397,
"y": 17025510.707350478,
"type": "operation",
"gridCoordinate": {
"x": 60159589.06883934,
"y": 81939036.37897071
},
"deprecated": true,
"scheduled": false
}
},
"transitions": {},
"groups": [
"2fb52048fd1cbc4cc07b237a",
"c3ec54f29eff895ac8ef9f00",
"ff5cccad21a1be5f842dddc5",
"44c015d977e0bd0b44645517"
],
"_id": "ee846c7d-2ff7-8aed-f2a8-b9253fbaeb08",
"description": null,
"errorHandler": null,
"font_size": 12,
"created": "1993-11-26T08:11:10.049Z",
"created_by": "c14cdb30d34ec13f26d99535",
"createdVersion": "in commodo Ut",
"last_updated": "1950-02-10T06:08:52.481Z",
"last_updated_by": "cffd7b2ae67a4cf3fdc53e1f",
"lastUpdatedVersion": "Duis ad veniam commodo magna",
"tags": [
"do cillum nisi ut voluptate"
],
"canvasVersion": 1,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~0/t.5lU5r/H/~1/~1/MS36KBW"
}
]
}