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": 78281378.66092578,
"y": -55360714.58875589
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -22093644.518503457,
"y": 3086453.5938484073
},
"error_handler": {
"name": "childJob",
"summary": "sint ipsum esse adipisicing amet",
"description": "dolore deserunt ipsum",
"app": "sint magna",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~1"
}
]
},
"groups": [
"8017e28a87e0ac4c402dcabc",
"8c7e65c3ad9d2c1f49c33503",
"46004b2ae6adb82db931e071",
"a0e265564ec1b4e46c97ac0c",
"f1c3cabc2bbb064566882303"
],
"type": "operation",
"deprecated": false,
"scheduled": false
}
},
"transitions": {},
"groups": [
"0f2624d39decff2d0c6837dc",
"f186d9ef3881a0e2c7aee336",
"844c258210a13e4213e23ddb",
"90c204c2bafa5ec58607eccf"
],
"_id": "568cabab-b6c6-5169-f1ee-2111e722c0a2",
"description": "id",
"errorHandler": null,
"font_size": 12,
"created": "1981-05-04T17:59:28.397Z",
"created_by": "f0d4a929aa778d6ae245372a",
"createdVersion": "mollit eu culpa veniam",
"last_updated": "1992-10-23T15:12:14.844Z",
"last_updated_by": "fe8237423ac5601b98aef168",
"lastUpdatedVersion": "dolore sed fugiat",
"tags": [],
"canvasVersion": 2,
"decorators": [
{
"type": "encryption",
"pointer": "/yjVY/~1/CxYpzM2RK/+/TY"
},
{
"type": "encryption",
"pointer": "/~1/~1/~0"
},
{
"type": "encryption",
"pointer": "/~1/~0/~0/~1"
},
{
"type": "encryption",
"pointer": "/~0/yX3KCYuW2/uNLY2K/~1/~1"
},
{
"type": "encryption",
"pointer": "/~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": -8718842.3471881,
"y": 27859058.84141244
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 10891694.84290871,
"y": 93300464.76389745
},
"error_handler": {
"name": "childJob",
"summary": "dolor dolore",
"description": "culpa",
"app": "in",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~0"
},
{
"type": "encryption",
"pointer": "/~0/~1/UFNLGn,JKv"
},
{
"type": "encryption",
"pointer": "/~0/~0/GbPvRDtk2N,"
},
{
"type": "encryption",
"pointer": "/t8r.9c/~0/~0/VxfxVqknHBm"
}
]
},
"groups": [
"58fd40b36a74c166b314cd00",
"b65787794d38bd048998cfeb",
"88a8a9bbd4a42c0fe1525270",
"5a4b536f0f17a574883036ea"
],
"type": "operation",
"deprecated": false,
"scheduled": false
}
},
"transitions": {},
"groups": [
"f2d499d60fa9c09a0fb4526d",
"28637a4bebb891eb9aa11bea"
],
"_id": "8ae82f4a-b314-974e-23ce-d31dfde9500e",
"description": null,
"errorHandler": null,
"font_size": 12,
"created": "1974-09-19T06:05:38.143Z",
"created_by": "2ff2b1f2ea93d7b0407f1441",
"createdVersion": "nostrud",
"last_updated": "2004-05-23T19:55:12.057Z",
"last_updated_by": "7d63d2b54a28a3fe41785c0e",
"lastUpdatedVersion": "aliquip",
"tags": [],
"canvasVersion": 2,
"decorators": [
{
"type": "encryption",
"pointer": "/~0/~1/~1/~1/~1/~0"
}
]
}