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": -87971911.85199402,
"y": -53876597.101114675
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 37345394.5584954,
"y": -75506148.24997312
},
"error_handler": {
"name": "childJob",
"summary": "do id et nostrud",
"description": "reprehenderit non",
"app": "do in esse ullamco",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~0/iR6dF/1/~1/~1/~0/~1"
}
]
},
"groups": [
"d7f6cfa9ec29ebcc84ff1c26",
"d8643e0c38f172e29bc7064e",
"21b4907268527c6875da04b0",
"403b6dc26c62f23553310e56",
"751ce8facfde96c34af24703"
],
"type": "operation",
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"6c0a22621fc84ad220d0b74c",
"29bdd7885ae9901f17f60c10",
"a580095f8893c0c17a1a26ec",
"102d547ba26ca3b75c7c7ea6",
"b111c98c73480bf3a7a23378"
],
"_id": "92123c54-0b03-a4f9-0d01-f4006a2fc086",
"description": "in occaecat aliquip",
"errorHandler": {
"type": "exercitation",
"name": "consequat velit"
},
"font_size": 12,
"created": "1981-10-13T11:28:46.197Z",
"created_by": "4de13b30ed029b63bb6d8f0e",
"createdVersion": "non culpa ut occaecat",
"last_updated": "1983-11-10T06:02:13.37Z",
"last_updated_by": "04432ce3a3390188ed5a1013",
"lastUpdatedVersion": "irure",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~1/hjau5FN/LxXqUQX9,wV/yFS/v4bEo/vk6B/~1/yeH6h.t0XB/~0"
},
{
"type": "encryption",
"pointer": "/LIHy8uj/~0/~1/~0/ogSt,exw1e/~0/X6oIkMEI"
},
{
"type": "encryption",
"pointer": "/~0/~0/nynGNjv7/~1/i8g/fXz5htAda1L/~1/IkrX3eRUN/w0gZ1H/~0"
},
{
"type": "encryption",
"pointer": "/Qnn/LV,gXfk/I/~1/~1/tdYJB-W/~0/~1/~1/s,,SZM"
},
{
"type": "encryption",
"pointer": "/~0/jgL6FRs/upFzHEy45/~0/~0/~0/d/~1/~0/~0/E"
}
]
}
}
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": -57948657.09330237,
"y": -92623131.93297756
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 59532485.39580366,
"y": 32884937.929925546
},
"error_handler": {
"name": "childJob",
"summary": "veniam",
"description": "minim culpa esse nostrud",
"app": "quis aliqua elit",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/SGMd./~1/Ff1DWo+0RRO/ZtL/~0/~1/~0/~0/~1/~1"
},
{
"type": "encryption",
"pointer": "/XxuDPy/~0/~1/eefzvC,RE2/~1/~0/knGzy0/~1"
}
]
},
"groups": [
"9a48e05854693425965d54c2"
],
"type": "operation",
"deprecated": false,
"scheduled": true
}
},
"transitions": {},
"groups": [
"aca8085c2a2fcd04aadd0d24",
"453af00b4df7f299584bcdd4",
"4545f4901523d67479fb91e1"
],
"_id": "9063381f-dc79-b130-f6c6-5a401d4790d8",
"description": "cillum",
"errorHandler": {
"type": "eiusmod nostrud Duis nulla",
"name": "irure incididunt"
},
"font_size": 12,
"created": "1969-07-18T05:56:54.423Z",
"created_by": "bed1f1778dca81d56ff7f5f5",
"createdVersion": "minim ut laborum labore nulla",
"last_updated": "1999-11-28T22:28:29.301Z",
"last_updated_by": "9684e1c694d4b2b3e785f565",
"lastUpdatedVersion": "irure commodo",
"tags": [],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/QXXa/MGk/Us8rxr"
},
{
"type": "encryption",
"pointer": "/l3PG0P82eO/~0/~1/~1/aSYS/~1/WSMu"
},
{
"type": "encryption",
"pointer": "/Aw,v8ABfY/SE/~0/ZmIkOz/iiqd2/O/uuT/~0/E,JCb/zL8.L2.F/~0"
},
{
"type": "encryption",
"pointer": "/d/H/,ng3Oh7o,/~0/byl/plkG6ycYR/wxK,e1/H2jBAFS4Y7/ME"
},
{
"type": "encryption",
"pointer": "/aPnkCpk3Cq/~1/~0/~0/~0/~1/ydoxsG7Z04K/~1"
}
]
}