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": [
"01382adedd6c1f9bdc655312",
"04bab01bb46b557fbf608d2e",
"7f3c165bbb91d29a18a16a00",
"b507dad1e709bab989196477"
],
"x": 18707378.893631294,
"y": -62149043.52164319
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"4f3e1ce7c50c15c78759caef",
"79cb7381c3a22bf42b7abaff",
"bf7351c222e2f14db9e4ff98",
"75c773d7e2df4eeff31f7b9e"
],
"x": -88975218.87112743,
"y": -37372522.0923669
},
"error_handler": {
"name": "childJob",
"summary": "incididunt officia in",
"description": "cillum eiusmod dolor ad ut",
"app": "aute quis occaecat in",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~0"
},
{
"type": "encryption",
"pointer": "/U37g,px/~1/tGR/M29-9+/B8DJ/CkJo8N/~1/VmJgZB,MZja"
}
]
},
"groups": [
"d59cfc4ed574e90a84ee2d1e",
"81c0f55ceb1ca82e41d1161d"
],
"x": 58917354.73607808,
"y": 57670664.07148355,
"type": "operation",
"gridCoordinate": {
"x": -44000257.567804106,
"y": 15724243.792425558
},
"deprecated": true,
"scheduled": false
}
},
"transitions": {},
"groups": [
"2846233ed0a0ffeac932d999",
"72f3500e1e655311c78ba76d",
"d72546b2299655e5ee180375",
"364224287d8393f8e811a9b1"
],
"_id": "7a733f99-ff64-f37b-27fa-a7eb289dc1f8",
"description": null,
"errorHandler": null,
"font_size": 12,
"created": "2001-12-17T13:14:38.711Z",
"created_by": "7d191a18302d9bccadd6e624",
"createdVersion": "officia proident Excepteur deserunt qui",
"last_updated": "1960-08-19T14:21:54.079Z",
"last_updated_by": "056bfabf5048fa22444f4019",
"lastUpdatedVersion": "ad fugiat do",
"tags": [
"amet qui nisi cupidatat proident",
"quis in consequat consectetur",
"tempor nostrud labore veniam laboris",
"dolore magna dolore velit"
],
"canvasVersion": 1.5,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/T8ZP/~1/~1/~1/~0/~0/~1"
},
{
"type": "encryption",
"pointer": "/i-fh9,51Q/V31loMcHy/~1/~0/MNHR/~1/MNH0+X/~1/dkw95/crTG/rNnie/SwvIdnh"
}
]
}
}
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": [
"73ae525c39deef5b6e97fa9a",
"993f891fe5423e035c57beaf"
],
"x": 37181409.8716214,
"y": -73170854.00871734
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"79e533b0c202bb97c27dd4d9",
"b54f0a337a299fe1c85d6f33"
],
"x": -88679555.49157323,
"y": -72253805.94799593
},
"error_handler": {
"name": "childJob",
"summary": "ipsum mollit adipisicing sed",
"description": "non dolor irure",
"app": "proident",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~0/~0"
},
{
"type": "encryption",
"pointer": "/~0"
},
{
"type": "encryption",
"pointer": "/~1/Z/~0/~0"
},
{
"type": "encryption",
"pointer": "/~0/~0/vf/~0/~0/OQKkqlE9tXi/Rh/OoMrbb"
}
]
},
"groups": [
"828d4f4b7741b8dffbdc7f04",
"376da9bf82d061c789350e63",
"f21473489b14afb724f4dec3",
"a08d50d0490be51e9a8ceb05",
"e83eb25901946d9e41a13d47"
],
"x": 39797961.67016736,
"y": -20659749.267619535,
"type": "operation",
"gridCoordinate": {
"x": -39836772.625900485,
"y": 86141562.2502892
},
"deprecated": false,
"scheduled": false
}
},
"transitions": {},
"groups": [
"da2e37398de1a72d78803711",
"7a4c80d04fbbd14ca0711a65",
"37c8d29eadf6d31515450213",
"78e937c2fb29b59d43d0c98b"
],
"_id": "ad25336c-c33c-275d-7ec0-03344afd22ef",
"description": "velit consectetur incididunt et",
"errorHandler": {
"type": "irure tempor esse nulla",
"name": "aliquip pariatur laboris Ut"
},
"font_size": 12,
"created": "2004-04-06T00:49:45.792Z",
"created_by": "1c8e98670bc6d1c81ee20609",
"createdVersion": "est",
"last_updated": "1947-06-06T14:21:55.96Z",
"last_updated_by": "46fcf552d358f029298d828c",
"lastUpdatedVersion": "esse in qui",
"tags": [
"est esse eu",
"ad nulla elit",
"consequat ex quis adipisicing",
"consequat do dolore",
"esse do"
],
"canvasVersion": 2,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/B4LB74jNA2b/~1"
},
{
"type": "encryption",
"pointer": "/~0/~0/xLfeb7"
}
]
}