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": [
"32f32c24d8baa455851c2e37",
"386db8b8618dbbc9fbbda4b4"
],
"x": 93790685.34266937,
"y": -36465730.01905078
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"9907306064270671e0fe3cd6",
"93a500658a9e62095f211728",
"fdfcb9c0936e9665befd09f2",
"f8eabfee48c8fdcbff358990"
],
"x": -99447379.49219324,
"y": 52024250.15130201
},
"error_handler": {
"name": "childJob",
"summary": "voluptate mollit minim",
"description": "proident consequat veniam ad sunt",
"app": "anim dolor culpa dolore mollit",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/Ej/r/B2iI"
},
{
"type": "encryption",
"pointer": "/ZPw+/~1/KOFRO/u"
},
{
"type": "encryption",
"pointer": "/~0/~1/~0/w,YiH//~0/~1/zivPp2mO/~1/xXb/~0/UP"
},
{
"type": "encryption",
"pointer": "/K/~0/~1/oTLG4s8,jD/~0/UNloa/OZ.RGV/WA,m/~1"
},
{
"type": "encryption",
"pointer": "/~0/J/~1/~1/~1/WW9/~0/~1/~0/CLsB"
}
]
},
"groups": [
"34d5f26b9fff879765c384f6",
"8a5fb7bd526dd49ada8f0e0a",
"b1e3ad97bf99af5ada2011f0",
"211ea7af4c1507d76172c070",
"1d772bf439d687821fdf4df7"
],
"x": -28156087.987564594,
"y": -9963734.67128846,
"type": "operation",
"gridCoordinate": {
"x": 97682835.05554596,
"y": -76691313.54252294
},
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"4b4b920fb8eda3be2f50b228",
"37abccc1ec419ce1c8318e6d",
"62ea1a32e0c4316ba280c763",
"2d28f2df03b7901aa294adee",
"e2ce5160a79949bbfd6070f7"
],
"_id": "21a7cb2d-9c59-43ea-f0c3-0a9aff58a2ab",
"description": null,
"errorHandler": {
"type": "commodo non et ex",
"name": "est dolor Excepteur"
},
"font_size": 12,
"created": "1965-04-04T20:07:20.452Z",
"created_by": "ed2d86e33b044f3dd0dc7dca",
"createdVersion": "cupidatat in enim eu adipisicing",
"last_updated": "1976-03-14T11:00:06.371Z",
"last_updated_by": "4aaf96cb06cd4f4571e2f33d",
"lastUpdatedVersion": "nostrud ipsum",
"tags": [
"fugiat"
],
"canvasVersion": 2,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/ZEQH/w/~0/~0/ibs/~0/~1/R2cc2bA"
},
{
"type": "encryption",
"pointer": "/Mjaxh/~1/~0/Ma-fh/VU/~1/~1/~1"
},
{
"type": "encryption",
"pointer": "/slezbclzY5/~0/~1/~0/~0/gD/5VVdjD/bex2FA+311n/YmZ5a/~0/IvYPOQ"
},
{
"type": "encryption",
"pointer": "/T2Cdcm/~1/~0/~1/fgH.Wov4cF/~0/~1/GcPZYir-J/yV"
}
]
}
}
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": [
"89f8dc287292b4ebb6bcb119",
"fe4675c25e211b781813379f",
"d1872ab0351edd7733e83be0"
],
"x": -5380491.921918556,
"y": 97325978.58609578
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"a6949e53fd4b6f9bbf7b72f2"
],
"x": -38511721.2844873,
"y": -19187980.714632675
},
"error_handler": {
"name": "childJob",
"summary": "velit Duis",
"description": "sint ea labore anim",
"app": "voluptate dolore esse veniam",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/WgajRM/~0/yIA3HRuZ/~0/~0/~1/~1/j"
},
{
"type": "encryption",
"pointer": "/~0/~0/~0/~1/KvG/z"
}
]
},
"groups": [
"a820fc207b493d4f68d30e9e"
],
"x": 79737915.21174079,
"y": -26229420.19705698,
"type": "operation",
"gridCoordinate": {
"x": 46447454.858002454,
"y": -95557270.33128992
},
"deprecated": false,
"scheduled": false
}
},
"transitions": {},
"groups": [
"8be521ccc2e66f63cebb1c80"
],
"_id": "47e4afeb-d7ae-c984-21f2-7715aab4cf2f",
"description": "irure Excepteur quis minim reprehenderit",
"errorHandler": {
"type": "culpa",
"name": "consequat pariatur officia"
},
"font_size": 12,
"created": "1961-05-17T10:55:32.787Z",
"created_by": "f37ba5679e2f01ff082b5e75",
"createdVersion": "laborum non",
"last_updated": "1976-01-29T15:21:53.334Z",
"last_updated_by": "10b3229e9771e3aa34c595a2",
"lastUpdatedVersion": "ad",
"tags": [
"eiusmod ut elit commodo nisi",
"sint",
"irure est"
],
"canvasVersion": 3,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~0"
},
{
"type": "encryption",
"pointer": "/I+30/~0/~0/~0/~0/~0/~0"
}
]
}