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": [
"beb31c603f199197c76f712a",
"636f864ebe7759b3a6ab6d02"
],
"x": 74905537.46308789,
"y": 97150612.65764594
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"ff9308f1a688804eca81804f",
"f0c3f69c60d77eb77f364902",
"ee193ac61d71f393c8119ef7"
],
"x": 63623602.34103641,
"y": 11000923.085589737
},
"error_handler": {
"name": "childJob",
"summary": "non",
"description": "commodo",
"app": "elit Ut Excepteur",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~0/~0/~0/~1/z9aBCf-sQt/h0rSkc/l02btJI/MFtL/LNV8s"
},
{
"type": "encryption",
"pointer": "/~1/~1/CRjESW2UPO7/g078/EUV/ySRZO/fY/~1/Olb2/W,P"
},
{
"type": "encryption",
"pointer": "/~1/hJ/T,yXpDZb-1/~0"
},
{
"type": "encryption",
"pointer": "/PyQ6en+8N/HnWj/a9h06zgkQk6/CoOX.V+/S/~1/F+BKRb/d/Jb+uK/~1"
}
]
},
"groups": [
"b71a3bac67ed4f18d890fbb5",
"8b1ddf77e4f1f6c9956ced6a"
],
"x": 969392.540739283,
"y": 7422272.291310519,
"type": "operation",
"gridCoordinate": {
"x": 72667232.4905543,
"y": -27127496.22213097
},
"deprecated": true,
"scheduled": false
}
},
"transitions": {},
"groups": [
"f9030ce83d762c18125b68eb",
"c216fd7afc38c424dec28440"
],
"_id": "b98bcb7c-77e2-b6f2-5926-c4ed02791dcb",
"description": "aliquip est",
"errorHandler": null,
"font_size": 12,
"created": "1964-10-15T21:22:55.155Z",
"created_by": "7f633099f5255812e769ae90",
"createdVersion": "dolore voluptate pariatur",
"last_updated": "1983-03-05T00:51:36.802Z",
"last_updated_by": "77beb170333209101fba25c3",
"lastUpdatedVersion": "in fugiat est laboris officia",
"tags": [
"ea mollit sint"
],
"canvasVersion": 1.5,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~1/~0/~0/~0"
},
{
"type": "encryption",
"pointer": "/a/~0/~1/~0/FZ09AjQh/~0/~1/PN/XlFPMypo"
}
]
}
}
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": [
"d2a4fc1c64459318c9de100e"
],
"x": -79944515.8228505,
"y": -9128938.910883114
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"456991139a1017622cd84df4",
"b0ab9dfccb99f50492fff5d5"
],
"x": 40212373.519672275,
"y": -34006984.22626496
},
"error_handler": {
"name": "childJob",
"summary": "cupidatat",
"description": "elit culpa",
"app": "in amet",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~0/yY.Z/KpsqR0Y/~0/~0"
},
{
"type": "encryption",
"pointer": "/~0"
}
]
},
"groups": [
"13cdf2165486621d47c778c7",
"a64a304ecff2a8b84f4121e2"
],
"x": -20752462.353104398,
"y": -87913983.94772992,
"type": "operation",
"gridCoordinate": {
"x": 48574219.29457706,
"y": -58744447.14178768
},
"deprecated": false,
"scheduled": false
}
},
"transitions": {},
"groups": [
"db34dcc94abeecda28499c09",
"590f4c73c0deb3f231ad28f5",
"f7d113d46f720e5afa301cd8",
"2d8a190ecbf031bb5552d56e"
],
"_id": "a499dbe7-2608-6b06-b392-67aaa9ffebf5",
"description": null,
"errorHandler": {
"type": "exercitation est",
"name": "laborum in consectetur mollit"
},
"font_size": 12,
"created": "2011-11-18T02:18:36.192Z",
"created_by": "3058f0b87d28fe7cfe0ce2af",
"createdVersion": "commodo",
"last_updated": "2021-06-18T09:58:34.206Z",
"last_updated_by": "8b0c704d64d17e6b3c4103f5",
"lastUpdatedVersion": "ipsum sit",
"tags": [
"deserunt Lorem pariatur",
"mollit"
],
"canvasVersion": 3,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~0/CZZc/~1/~1"
}
]
}