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": [],
"x": 40536550.19399539,
"y": 3782452.3918320835
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 59173866.2018069,
"y": -40064852.275746964
},
"error_handler": {
"name": "childJob",
"summary": "dolor est Ut in",
"description": "cillum ea nisi eu Lorem",
"app": "magna eiusmod in",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~1/DPtij-nYeB/~1/~0/W0KPs18HyOT"
},
{
"type": "encryption",
"pointer": "/D7PZxGJb"
}
]
},
"groups": [
"d66cde2454359a00680f1efb",
"85f7b5e1394bd77388af8251",
"6b1c8e29313cc62aac464ad9"
],
"type": "operation",
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"9cf4afaa17e53a88bf9b749b",
"313aa456a437f2db37bf0df3",
"05bcca262c87a8ee8057c291",
"58e445d55112445133587b5f",
"c46bb76026493540606d889e"
],
"_id": "5151b017-0f31-ca02-ee80-c3b16fd0d760",
"description": "nulla occaecat",
"errorHandler": {
"type": "exercitation quis ullamco cillum irure",
"name": "deserunt quis qui Lorem"
},
"font_size": 12,
"created": "1952-06-20T00:38:19.807Z",
"created_by": "1eaac86c7d4e4df2654707c7",
"createdVersion": "sit",
"last_updated": "1999-12-06T16:17:02.103Z",
"last_updated_by": "89c0ccaa3515f9da4380b9bd",
"lastUpdatedVersion": "deserunt adipisicing",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~1/~0/~1"
},
{
"type": "encryption",
"pointer": "/IUgjT8mX,Xn/q3R/wrsYqQ/t/bpVrI/t/~0/~1/~1/Zd/jHaTFE"
},
{
"type": "encryption",
"pointer": "/K,/Asyd/~1"
},
{
"type": "encryption",
"pointer": "/~1/~0/kv,c/~1/~0/R1v67RAs/r065/sTYc+xC/Iy/~0/~1"
},
{
"type": "encryption",
"pointer": "/L/M2cZzLSpa/XxrPH/~1/A2KBwKHd"
}
]
}
}
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": [],
"x": -30539448.86420305,
"y": 20954104.22341834
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 48441321.8223823,
"y": 3056409.0891455263
},
"error_handler": {
"name": "childJob",
"summary": "sint",
"description": "non",
"app": "in cupidatat et",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/wM6/x/4n-byL4,O/tCMGpRDfyA/~1/Hk8/~0/SD/~0/n8/~0/~1"
},
{
"type": "encryption",
"pointer": "/~1/~0/~0/UvS/JtC9lwcO/s/~1/G2xX0/~1/~0/p/X2Aqi3NMq"
},
{
"type": "encryption",
"pointer": "/dzvMTa"
},
{
"type": "encryption",
"pointer": "/~1"
}
]
},
"groups": [
"3773bf557af85f7593aa6a3f",
"128198390f039f40371ada5f",
"4a123a3f5cde767972ef35ab"
],
"type": "operation",
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"32ae6d73f80c314b40b8aad3"
],
"_id": "0715a1f7-f87d-18c9-72c3-5b888b22ec08",
"description": "officia et Lorem",
"errorHandler": {
"type": "nostrud ut",
"name": "cupidatat in"
},
"font_size": 12,
"created": "1997-10-10T06:40:01.999Z",
"created_by": "09737572fc1960315d071f89",
"createdVersion": "sunt deserunt veniam fugiat ad",
"last_updated": "1978-03-12T16:43:32.568Z",
"last_updated_by": "81b78aa02575b282d1c4d76f",
"lastUpdatedVersion": "adipisicing",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~1/tb2F/~1/O,MQHL5jb+"
},
{
"type": "encryption",
"pointer": "/~1/~0/zrB3NlC/~0"
},
{
"type": "encryption",
"pointer": "/jT1"
}
]
}