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": [
"283eec1fa07bc72e722c6cfd",
"d4b2b87130e6cf2220672173",
"543a617d05b1dc46a53abd15",
"cbe7fc83d7482b360c1a61b5"
],
"x": 37341910.200588405,
"y": 28952224.422629237
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"6958f7d03c3d9f1324df6b87",
"461ac08d628abbfb328a0969",
"631cd7529f48d0efcc0da002"
],
"x": -2546867.708149314,
"y": 53832663.53638345
},
"error_handler": {
"name": "childJob",
"summary": "sed minim anim nostrud",
"description": "cupidatat sint adipisicing veniam",
"app": "eu",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~1/~1/~1/~1/MZg/~0/Nc/~1/~1/~0/~1"
},
{
"type": "encryption",
"pointer": "/D/l1Ce6/~0/~1/D,+/jExt/dC46"
},
{
"type": "encryption",
"pointer": "/~0/~0/bdl"
}
]
},
"groups": [
"a554e3328409983d30eadea5",
"e0d5b2c7668aa90b0482c309",
"add02b6845ea456d5b0c08fc",
"fce1847dce3241712dad41b4",
"769160cdd1ca94151ede0227"
],
"x": 21729628.890658632,
"y": 41516677.95418334,
"type": "operation",
"gridCoordinate": {
"x": -59024456.879984654,
"y": -65351892.71884323
},
"deprecated": true,
"scheduled": false
}
},
"transitions": {},
"groups": [
"d26d4fe8a5472689ad5f6585",
"0c238ec95e3131ad51d8275a",
"64098cfc34c108a15b6a2648",
"385d8ea60ac5058e4c33fc12",
"e877deb7e8c3cba6cdcd7e3b"
],
"_id": "90e59114-fad4-f27d-f139-f5f697b66d0f",
"description": "dolor",
"errorHandler": {
"type": "aliqua consectetur",
"name": "velit eiusmod sed culpa"
},
"font_size": 12,
"created": "2004-05-09T04:09:51.269Z",
"created_by": "294df00f8a28b4261260b237",
"createdVersion": "aliqua tempor est ex",
"last_updated": "1967-06-07T13:50:55.753Z",
"last_updated_by": "3eeb9d36a71ee030d0d6436d",
"lastUpdatedVersion": "sint incididunt Excepteur",
"tags": [
"ea enim commodo",
"mollit ipsum eiusmod",
"amet cillum sit aute",
"culpa aliquip voluptate officia dolore"
],
"canvasVersion": 1.5,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~0/iEA-sy/vUMKket/xg/Yk4C/~0/Gb+QQAl"
},
{
"type": "encryption",
"pointer": "/csTgLF/JwjTPkU/OqwJf/pUanHb9KoU/~0/p/~1"
},
{
"type": "encryption",
"pointer": "/~1/~0/~1/~1"
},
{
"type": "encryption",
"pointer": "/M2eojVmj77e/~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": [
"39823ea544d6f1c984225414",
"be02f5b85d8b592155bec360",
"95ae880beaed97361a960572"
],
"x": -87031427.79546748,
"y": 73031159.43039921
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"521801cf76eef80e0a3ed713"
],
"x": -30494086.612681,
"y": 40442552.00686094
},
"error_handler": {
"name": "childJob",
"summary": "eu proident reprehenderit ut dolor",
"description": "irure elit",
"app": "Lorem fugiat labore cupidatat enim",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~1/BRE0K/6qbU/A/~0/~1"
}
]
},
"groups": [
"f95c2906d7a5d63f068e271c",
"7d234335b2a1e3e5048ba70b",
"2eea96df39e2eac61dc17692",
"95666ef419d067c3dc0ca3e9"
],
"x": -93625632.22344175,
"y": -42002937.98271529,
"type": "operation",
"gridCoordinate": {
"x": 49476345.83156794,
"y": 41100888.59327629
},
"deprecated": false,
"scheduled": true
}
},
"transitions": {},
"groups": [
"68327e0d148d51758a76b670",
"476fad63637f190685f6976b",
"44ff23edf8f4df1e1c5b8882"
],
"_id": "e1320f7a-f252-f805-e4d2-32cfbd88d677",
"description": "qui veniam dolor",
"errorHandler": null,
"font_size": 12,
"created": "1960-07-14T23:00:38.763Z",
"created_by": "2ccd1c2c03f1295ef4979791",
"createdVersion": "nulla laboris",
"last_updated": "1951-09-28T14:02:39.035Z",
"last_updated_by": "d73578a667fa9be3cdd959b7",
"lastUpdatedVersion": "nisi consequat sint non",
"tags": [
"Duis ex",
"magna",
"eiusmod veniam ullamco reprehenderit",
"Ut ullamco consectetur"
],
"canvasVersion": 1.5,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/VCF8J7YPJNM/~1/~1/SZENQF+68c/~0/~1/~0"
},
{
"type": "encryption",
"pointer": "/kKbFhF/QjrTV/~0/Tlu1NI/tY5f-6gwhF/~0/l2rGaZ/FUQQ8wz2Rm/~0"
}
]
}