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": [
"9047df0760505604929f8472",
"29c195239865885dd11a560b"
],
"x": -49964966.4174437,
"y": 20562443.451263726
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"e8e22a529c10f860ce892777",
"9f96b83ab27b87be54a8dd48"
],
"x": -9947015.022038251,
"y": 85300661.56734148
},
"error_handler": {
"name": "childJob",
"summary": "sint",
"description": "sunt dolor anim reprehenderit sint",
"app": "laborum qui elit est aliquip",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/ahjW6.IbbrB/f7r/y/Sq8g7f3/~1/~0"
}
]
},
"groups": [
"f67c38649bf36e4f27589cbb"
],
"x": 31289763.009666502,
"y": 70424310.47771457,
"type": "operation",
"gridCoordinate": {
"x": -36683431.47098536,
"y": 58756014.86702457
},
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"6e7900e8ea7a0c5b02a29f55",
"dd0931e0c49aafa33587346f",
"c6a902a299470a0509f5d9ef"
],
"_id": "da66abbb-804d-fa7b-0a45-4ba78ed18f86",
"description": "laborum Duis aliqua",
"namespace": null,
"errorHandler": null,
"font_size": 12,
"created": "1960-02-08T12:35:05.11Z",
"created_by": "4b30e6fe7be23aa6de7e09b0",
"createdVersion": "ullamco exercitation",
"last_updated": "1978-07-27T04:34:48.626Z",
"last_updated_by": "d652d432d44f615806fe5228",
"lastUpdatedVersion": "dolore",
"tags": [
"ut",
"nisi",
"dolor laboris",
"qui in",
"in"
],
"canvasVersion": 3,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~0/~0/~0/~1/QAZGR7A+qdB/DVHijeo/vTGdjYGrJK/nYuhDL"
}
]
}
}
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": [
"d17d3ae826bc975822b46be8",
"2dbdf5729b794e681d63a185"
],
"x": -76623208.93450522,
"y": -86415237.86678298
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"b365d1e71f7249213f5e501e",
"c04d13fd759153c85ced1630",
"c21a9f2256971b411d322c6e",
"eb8d886526b406113b385f6f"
],
"x": 83091893.8772769,
"y": -1453767.7370749563
},
"error_handler": {
"name": "childJob",
"summary": "magna non",
"description": "exercitation eiusmod cillum",
"app": "consequat minim",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~1/~1/~0/~1/V2qMu/~0/~0/D/CUN/C1PSO"
},
{
"type": "encryption",
"pointer": "/~1/~1/~0/E35/uV3/~0/~0/~0/RA4w9X/wV/~1"
},
{
"type": "encryption",
"pointer": "/B9G9/I9ezxI+AV/Qyce/nVVK"
},
{
"type": "encryption",
"pointer": "/~1/S/FBpqL84/s.8AeMM-P5v/UYhe3e3SKgP/~0/~0"
}
]
},
"groups": [
"1652f71b8259e35fa59809c0"
],
"x": 89661960.90616524,
"y": 6382903.418545723,
"type": "operation",
"gridCoordinate": {
"x": -23709698.924770087,
"y": -31253632.307504103
},
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"c3d55bd712269f6eb6c211f5",
"30ce3035aa4fa0ee6e2b7bec"
],
"_id": "61c4e39a-8922-7425-cbdf-d2ab3c139d91",
"description": null,
"namespace": null,
"errorHandler": null,
"font_size": 12,
"created": "2009-08-12T23:49:24.745Z",
"created_by": "7af7862961c1de2bfbef673a",
"createdVersion": "do",
"last_updated": "1968-04-25T13:10:58.938Z",
"last_updated_by": "c85ad1854914002c787ae610",
"lastUpdatedVersion": "aute magna",
"tags": [
"nulla sit eiusmod",
"minim deserunt exercitation",
"qui aliquip dolore ipsum",
"non in aute minim"
],
"canvasVersion": 2,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/aUMY8/w3/P2vg5/lALbSwQDMe/h.u4/~1/x0Kg7K-ML"
},
{
"type": "encryption",
"pointer": "/Wqt5PM.YZdE/EjGUcjqbio/Ai-6G2/~0/~1/~1/~0/~1/~0/~1"
},
{
"type": "encryption",
"pointer": "/M2RdA/~1/FJDFW1O-ppp/~1/LYHJAl/Xql+YdZA/~1/~1/~1/~1"
}
]
}