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": [
"d33c7787b450331cd0f454ab",
"e144d1da2b0b78528a710b9c",
"9e95871976d8ef84189cecaa"
],
"x": 16736424.653933033,
"y": -78490157.80842704
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"6a066c95954f559e9c05a28c",
"f10e48e184a276b7c6bc34d8",
"80fdf2267b0caacdbba6fc3b",
"655e1d89a3be80001f4a1407"
],
"x": 50337910.919501334,
"y": 90672732.63687804
},
"error_handler": {
"name": "childJob",
"summary": "consectetur quis Ut eiusmod nulla",
"description": "laborum eu incididunt nisi veniam",
"app": "irure cupidatat adipisicing ex",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/VJpi/zG/~0/~1/x92gOkOQ/oIh/~1"
},
{
"type": "encryption",
"pointer": "/~1/z/n,,L/~1/~0/WDCIJICQqu"
},
{
"type": "encryption",
"pointer": "/~1/DMtEv/OQr5y+"
}
]
},
"groups": [
"715b2b85c670d5e27f43ae35",
"d3556a5e315c75fb77fa4cbc",
"62f0abc14ebe4a50986c2514",
"8bbb995b2d16106b419c9181"
],
"x": 27105095.644982263,
"y": 51482541.66501781,
"type": "operation",
"gridCoordinate": {
"x": 63395742.65772906,
"y": 32107021.502335623
},
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"8fd2265bbeafc197bf213c27",
"f0349ae5ff12471db2624329",
"54fca96d6792e050fc7610b2",
"3c6c7325dbb9ae8b1d4abdfd",
"1368ce15f0b24211efd41bfa"
],
"_id": "a60d73d5-6ab8-59f6-7c26-c7eaae4f5267",
"description": "nostrud ad et do",
"errorHandler": null,
"font_size": 12,
"created": "1990-03-17T02:28:29.533Z",
"created_by": "a4f7ad01cdc423ca2c0ab7f6",
"createdVersion": "fugiat",
"last_updated": "1968-12-08T10:26:51.391Z",
"last_updated_by": "cb301964d4f22b8a1c901506",
"lastUpdatedVersion": "eu pariatur ex",
"tags": [
"non dolore",
"laborum ullamco magna amet Duis"
],
"canvasVersion": 3,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/ifufyQcp"
}
]
}
}
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": [
"28dc7e1be12d1a65d77450bb"
],
"x": -40377704.96916684,
"y": -18785221.95795393
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"6e926c5b7fa2e257044b9580",
"b1e10ad868d4d91a136a3bc8",
"68f777a468a08ebb6f5a95bb"
],
"x": -70859363.30379292,
"y": 55832468.36844742
},
"error_handler": {
"name": "childJob",
"summary": "Excepteur",
"description": "aliquip commodo",
"app": "et",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~0/~0/K4tYpNOpNlJ/~0/Ga/KAAC4"
},
{
"type": "encryption",
"pointer": "/EV/T"
}
]
},
"groups": [
"0cfb74234134abe348a01529",
"24adf78d23dbf6b0846acffe",
"bbf0cef853b25c1f9bf65a7c",
"74240a2256536c90737b0d89",
"3f88b9b382960cac3532f7a5"
],
"x": -24187200.474837795,
"y": -9532370.646873206,
"type": "operation",
"gridCoordinate": {
"x": 57564081.341729164,
"y": 44215525.903802305
},
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"c04f72dfddaad0e04cd86107",
"105ce11c45b5ebd9c0840de8",
"561fbb366801d41c83a0ae1d"
],
"_id": "fec1ff4e-e498-ac78-5193-6b54d6dc39d2",
"description": "sunt qui in",
"errorHandler": {
"type": "mollit eu dolor",
"name": "est"
},
"font_size": 12,
"created": "1977-10-19T02:38:45.666Z",
"created_by": "9cacb4915d27ccad1cb36afc",
"createdVersion": "proident fugiat amet exercitation dolor",
"last_updated": "1965-03-08T02:32:49.82Z",
"last_updated_by": "c041fcb6c1cc7909ce31115b",
"lastUpdatedVersion": "cillum do",
"tags": [
"veniam in ea dolore occaecat",
"do quis commodo nulla",
"fugiat nulla amet culpa consectetur"
],
"canvasVersion": 2,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~0/hF78Ug6s4/c8Jb8srTRU3/~0/~1/~0/~0/~0/x/a7e.3YuS/~0"
}
]
}