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": [
"a7a00c7453ed61ee004308ed",
"333f0b58251e20426fefc035",
"b92fb0f5c1677cc1e3902564",
"c016ef5ff231a2a2c801a377"
],
"x": -25385537.973406166,
"y": -77856702.97065477
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"cdf15629b40163255ca4f4df",
"0edca3f3725576f0cbf2ccba",
"e662eb6fb43b092ce0ab78cb"
],
"x": -85425272.44307667,
"y": 6829813.922072202
},
"error_handler": {
"name": "childJob",
"summary": "magna ullamco aliquip",
"description": "irure dolore",
"app": "cupidatat",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~0"
}
]
},
"groups": [
"62b3eaf7cc633466b46cec73",
"4fa5ba44e017b5a470e8e988"
],
"x": 32012884.098280385,
"y": 78307718.71936744,
"type": "operation",
"gridCoordinate": {
"x": 58405876.98305279,
"y": -44187063.404043905
},
"deprecated": false,
"scheduled": true
}
},
"transitions": {},
"groups": [
"b9802945d0343c82ffccaa2f",
"6dacd729133a9bc5d95f6c14",
"dd567f3f11ade405c560a217"
],
"_id": "8e72f98c-e756-974c-1f2f-fb7ec09472e5",
"description": "incididunt eiusmod",
"errorHandler": {
"type": "ipsum ad mollit",
"name": "dolore adipisicing Duis"
},
"font_size": 12,
"created": "2006-05-23T17:56:13.819Z",
"created_by": "2059039f6b4e76fc45bd5be5",
"createdVersion": "aliquip magna",
"last_updated": "2009-03-31T20:53:09.03Z",
"last_updated_by": "7112e4798e150ddedfe1e4a2",
"lastUpdatedVersion": "amet occaecat exercitation",
"tags": [
"sit voluptate sunt consequat nostrud",
"Excepteur"
],
"canvasVersion": 1.5,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~1/mBnvcFD9N/L0/HqOKJ/~1/~0/aUW/XFYp4Z-7/~1/~0/RKWaPIzPx"
},
{
"type": "encryption",
"pointer": "/~0/bIVJ/Hn3"
}
]
}
}
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": [
"faadf83feea5d0bb97514029",
"e6dcf2f115d8b038c9bcb68b"
],
"x": 13752619.549524471,
"y": -41653266.18764644
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"32673b78da5f0aef39ab2687",
"c4cee1af6642e0d060fb84b5",
"838b2ac6c26bdede1f0d9455"
],
"x": -60423798.58690503,
"y": -56878963.64936362
},
"error_handler": {
"name": "childJob",
"summary": "anim laboris Lorem",
"description": "consectetur sed eiusmod sint voluptate",
"app": "occaecat",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~1/~0/Pw8AmdD5/MuV+Dpf/SOiEl/~1/~0"
},
{
"type": "encryption",
"pointer": "/H/F"
},
{
"type": "encryption",
"pointer": "/~0/juAw2O/yOmykpQ-ah/B,D/~0"
},
{
"type": "encryption",
"pointer": "/AYtLj1MwE/KI7M6gEB/~1/LPpDiPfkEO"
},
{
"type": "encryption",
"pointer": "/S/~1/~1/~0/~0/H/~1/~1/U10/RR/MNpU"
}
]
},
"groups": [
"e6572747414169c57af93d47"
],
"x": 11258285.341847166,
"y": -5293475.258997619,
"type": "operation",
"gridCoordinate": {
"x": -73547097.2456688,
"y": 71430615.80927208
},
"deprecated": false,
"scheduled": true
}
},
"transitions": {},
"groups": [
"e778aaed8d13cc1cf12f1af9"
],
"_id": "5937043d-d471-767c-63d9-ac2b4a59ba9e",
"description": "sint aliqua in est occaecat",
"errorHandler": {
"type": "esse occaecat aliqua velit",
"name": "ad aliquip Duis consectetur"
},
"font_size": 12,
"created": "1951-01-06T22:48:36.635Z",
"created_by": "d61bb263be426de694c848ea",
"createdVersion": "ut dolor",
"last_updated": "2018-01-21T15:04:27.599Z",
"last_updated_by": "d15e50347eb9bdabb9ab19b7",
"lastUpdatedVersion": "ipsum commodo occaecat",
"tags": [
"pariatur sunt Duis culpa",
"reprehenderit enim eiusmod consequat",
"eiusmod ullamco"
],
"canvasVersion": 3,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/tUe/~0/~1"
},
{
"type": "encryption",
"pointer": "/h/CV1CBudYfs/~1/~0/l3U"
}
]
}