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": 40536795.480241805,
"y": -86546278.86363073
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 60502234.12738517,
"y": 72040235.26027662
},
"error_handler": {
"name": "childJob",
"summary": "fugiat cupidatat magna in do",
"description": "Excepteur adipisicing culpa eu magna",
"app": "magna",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/W8L.Ob6M/~1"
},
{
"type": "encryption",
"pointer": "/GDS-vW/~0/vcS/Muq/~0/Zf,1N"
},
{
"type": "encryption",
"pointer": "/~1/~1/BG"
},
{
"type": "encryption",
"pointer": "/~1/Q+,3sLM/~0/~1/~0/~0/~1/b/~1/NVD/Sl"
},
{
"type": "encryption",
"pointer": "/r5nbl/er7/DU/TWrp/~1/~1/~0/O,Scsh4IWzB/Q3UFdU7P/~0/qrn54e+"
}
]
},
"groups": [
"9b55a7eb68ce10fd08b50c88",
"1397ffc1105ac98779bda9ba",
"6a3490aae307e5a55e3c69d4"
],
"type": "operation",
"deprecated": false,
"scheduled": true
}
},
"transitions": {},
"groups": [
"81ff90c0603add5fbaf5d930",
"40b995961853d70a39b5e9ac",
"17968a7d16dca9be7fc5590d",
"30f06dee32fa7c6120340ebd"
],
"_id": "fff8fba0-8e7c-d739-dec4-6e08f20e2461",
"description": "sit aliquip mollit culpa",
"errorHandler": null,
"font_size": 12,
"created": "1983-06-24T13:31:07.398Z",
"created_by": "d041bc3a48f12cc4f73bd92d",
"createdVersion": "ad in",
"last_updated": "1953-04-11T00:52:24.494Z",
"last_updated_by": "8aa9858160c8d6b6ba441ec8",
"lastUpdatedVersion": "mollit aute laboris",
"tags": [],
"canvasVersion": 2,
"decorators": [
{
"type": "encryption",
"pointer": "/dNTMvC/V/~1/~1/PO/~1/yJGZpJlORA"
},
{
"type": "encryption",
"pointer": "/~0/~1/~0/jRZhDyy/~1"
}
]
}
}
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": -87960439.60181707,
"y": 40811798.61434886
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -1575831.1290193945,
"y": -5181488.654953986
},
"error_handler": {
"name": "childJob",
"summary": "cupidatat proident Duis",
"description": "laborum laboris adipisicing id",
"app": "minim",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~1/~0/~1/IOMBb6y/~0/f.c4QLeSpK/Xaf"
},
{
"type": "encryption",
"pointer": "/~0/G1Y9/xt3uLfM/Ajxo3Arzf4/~1/D02fjV/~0/J"
},
{
"type": "encryption",
"pointer": "/QER/~1/~1"
}
]
},
"groups": [
"a447393f58af5d6fbc3bdf15",
"a82aade138ad8b0daecb04ec"
],
"type": "operation",
"deprecated": true,
"scheduled": false
}
},
"transitions": {},
"groups": [
"212d10f15854dca2fd77a5f3",
"f3a2abb926dafa06d4932ba5"
],
"_id": "0b4a0d7b-f86b-e7f2-d036-30229ceffdae",
"description": null,
"errorHandler": null,
"font_size": 12,
"created": "2010-01-14T08:03:23.872Z",
"created_by": "b079bacf8b008956436479a4",
"createdVersion": "officia Duis mollit incididunt",
"last_updated": "2016-12-18T01:46:10.467Z",
"last_updated_by": "e013612810e8e4c987f89e7c",
"lastUpdatedVersion": "ipsum aliqua in eiusmod",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/BCNxe0o/wB.Q/~1/HPQ0B4Gr+/~0/~0/~1/FRr"
},
{
"type": "encryption",
"pointer": "/~0/~1/~0/~0/~0/GQ-q/~0/JV/~0"
},
{
"type": "encryption",
"pointer": "/VzSn"
}
]
}