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": [
"e9cb9a308fae38a286be61db",
"4d55534699536aef8f257921",
"e0fc8d2d3800a39e9e795ef8",
"14603363ddf04e26be8462c2"
],
"x": -96182362.61803336,
"y": -91462140.57896769
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"3f0e01a0cf30241ee541118e",
"080b081d9c398dc8fd201db5",
"cae1d2b57c26d98d3745347b"
],
"x": -56690441.75863935,
"y": 69244966.08918515
},
"error_handler": {
"name": "childJob",
"summary": "eu minim velit",
"description": "cupidatat eiusmod ea aliqua",
"app": "laboris",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~0/dOdv/iX9uj/j6082/~0/~0"
}
]
},
"groups": [
"25d04c0d445f3132b415ed0d",
"b4ed674061193be3c81303fc",
"f7471f41ecff0cff434d2ab4"
],
"x": -33539705.216043994,
"y": 79341927.50249007,
"type": "operation",
"gridCoordinate": {
"x": 1749515.0046142489,
"y": 16264887.076467052
},
"deprecated": false,
"scheduled": true
}
},
"transitions": {},
"groups": [
"8b6cd328064a95c52e664c21",
"6532e7e8ccb85b1b7263abd4",
"7dbc38cca0dbcfa3bbc417fd"
],
"_id": "f3652a5f-c2bc-d47f-14fb-1f43d027b5dc",
"description": null,
"namespace": null,
"errorHandler": {
"type": "sed id",
"name": "reprehenderit nisi non"
},
"font_size": 12,
"created": "1979-12-22T02:54:32.334Z",
"created_by": "46bdfde72dd4e23882ad6318",
"createdVersion": "sint anim dolore aliqua",
"last_updated": "2000-06-27T02:14:36.142Z",
"last_updated_by": "3665f73a48e46efa019eb277",
"lastUpdatedVersion": "eiusmod",
"tags": [
"consequat occaecat quis",
"dolore cupidatat",
"commodo"
],
"canvasVersion": 2,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/Y8zNaV5T/ui+KpPR,EN/~0/~1/uytb/~1/~0/~1/~0/Ja"
},
{
"type": "encryption",
"pointer": "/Ofyi/~0/RGCRupnYMA/~1/~1/~0/v/gXEm,Qbtg/~0/W1vILl-R"
}
]
}
}
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": [
"1e8cd8fe7c52c808ecc8c44e"
],
"x": -52043042.52964542,
"y": 5915637.254519761
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"ae3bda2ec95531907537d677",
"7b6cdeb526d96ae973fc6229",
"5a1d2c48969e2346f1650652",
"3cceaff83e86652bab6fb605"
],
"x": -82019239.21725488,
"y": 66179086.55294818
},
"error_handler": {
"name": "childJob",
"summary": "eu non irure",
"description": "eu non incididunt consectetur nisi",
"app": "est",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~0"
},
{
"type": "encryption",
"pointer": "/uqz1rZH"
},
{
"type": "encryption",
"pointer": "/pO/kgBQ/xiO"
}
]
},
"groups": [
"b94c6b0fa5b33b5e43b4c20d",
"6a4699764be90f04f43993d0"
],
"x": 24390377.529351115,
"y": 38908789.82541463,
"type": "operation",
"gridCoordinate": {
"x": -66332226.53387718,
"y": -68094773.00604314
},
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"92d25f38c0999e99a49c47c1",
"0ee34a2656202766a3c08895",
"08fc71c027faa330b485be08",
"861dca77ef8a1dd04b1fee96"
],
"_id": "d6aedd8c-47ae-09c4-b13e-101b1dcc79f4",
"description": "est officia",
"namespace": null,
"errorHandler": null,
"font_size": 12,
"created": "1953-12-31T09:58:50.555Z",
"created_by": "d0bc6f8bec7b902f499bd368",
"createdVersion": "id",
"last_updated": "1993-04-09T16:51:35.649Z",
"last_updated_by": "348a32d2ec8ed5ec14e9de7d",
"lastUpdatedVersion": "voluptate",
"tags": [
"esse officia eu Excepteur minim"
],
"canvasVersion": 1.5,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~0/~1/RgVih/~1/~1/I1/qN0oLSFd"
},
{
"type": "encryption",
"pointer": "/~1/Ve1aqdip.ts/Ou3K30jQvW/K/~1/~1/WVCg2mw/~1/~0/~0"
}
]
}