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": [
"7b26c3198ad9db147a770c7b",
"b3c585d43d52da2e6db8df4e",
"e9e02d0996edc9a7e099ba6d"
],
"x": -43204147.97003154,
"y": 46220188.280529946
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"64bba71534bfd5603bfb1cc6",
"e30814ffebf55e8edd8163d1",
"ea5d0b20ed49388643e78941",
"3375a34a358e7526c6af7847",
"d5e9897039fbefe8eb43dd8e"
],
"x": -61513899.72213246,
"y": -40153830.405094974
},
"error_handler": {
"name": "childJob",
"summary": "laborum aute commodo ullamco consectetur",
"description": "nostrud sunt sint Ut",
"app": "ex dolor qui magna",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/Hj3,GdUgi"
},
{
"type": "encryption",
"pointer": "/~1/gHNW/~0/ifQI+8S89b"
}
]
},
"groups": [
"1c913d501759bb5e6c46dd9d",
"b80950eb89594a3f2d641f63",
"9f43b4c65a873681f2c3eec3"
],
"x": -29088904.18157108,
"y": -70188165.33474287,
"type": "operation",
"gridCoordinate": {
"x": 90604117.25729668,
"y": -30758295.66521536
},
"deprecated": true,
"scheduled": false
}
},
"transitions": {},
"groups": [
"4e5fe2079334f69059439550",
"48b31aa758b6fbb13ebf9d27",
"43693e05cbdaf3be8ebdf0de",
"1d01ba72a97179db882b9e13"
],
"_id": "ef0e6c76-caa1-0720-b78e-dcdcd15ca950",
"description": "est ut deserunt Ut magna",
"errorHandler": null,
"font_size": 12,
"created": "2015-11-12T20:53:26.935Z",
"created_by": "2981fa07073bac15fa186014",
"createdVersion": "laboris elit ut deserunt voluptate",
"last_updated": "1997-05-11T04:31:28.811Z",
"last_updated_by": "cf7c7675653f621d435e4fa2",
"lastUpdatedVersion": "ut culpa",
"tags": [
"cupidatat laboris eiusmod sed"
],
"canvasVersion": 1,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~1/~0/j,x2NNdp58/~0/~1/~1/PCKTnc//~1/~1"
},
{
"type": "encryption",
"pointer": "/kK/~0/~1/BdSmJlF"
},
{
"type": "encryption",
"pointer": "/~0/M+gJa/~1/~1/c"
},
{
"type": "encryption",
"pointer": "/ir+bPTpJG/q/~0"
},
{
"type": "encryption",
"pointer": "/rd/~0/ZFEb/kyxC/~0/~0"
}
]
}
}
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": [
"967050e9ea7daf05a2c0f053"
],
"x": 85935670.75103432,
"y": 72570106.53817359
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"9b22cd12dda39d8e8c10fdb5"
],
"x": 67993108.9719331,
"y": 6530822.617440537
},
"error_handler": {
"name": "childJob",
"summary": "minim occaecat dolore veniam velit",
"description": "magna est reprehenderit aliqua ut",
"app": "aliqua deserunt",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~1/s.8/G/~1/~1/~0/~1/~0/~0/oaJXdsmXH0X"
},
{
"type": "encryption",
"pointer": "/zTTXR2/vl+/DGbFOc377M/~1/~1"
},
{
"type": "encryption",
"pointer": "/aAu9gOwFEn/~0/~1"
},
{
"type": "encryption",
"pointer": "/j7iD1GDMz/~1/~0"
}
]
},
"groups": [
"5503a8c1056a2acb166c094b",
"aff2892765ca3cc0e5670465",
"56509fa22b639fedaa83dd85",
"5a355d631a43f4dd50739b50"
],
"x": 41042636.842629015,
"y": 53562999.71166432,
"type": "operation",
"gridCoordinate": {
"x": -68852147.64942572,
"y": 2461309.777907908
},
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"094902a7d8be4fd77e9490c1",
"62046629f9eba02452620558",
"fbd04c95a80df978128cc210",
"c0e4c4bf1d689a580f5e25d7"
],
"_id": "46c068b8-e56d-98ad-d73b-79fd35bd4591",
"description": null,
"errorHandler": null,
"font_size": 12,
"created": "1954-01-28T01:14:04.875Z",
"created_by": "89bc74cf9c3b7c8ff4370c7d",
"createdVersion": "commodo reprehenderit pariatur ad",
"last_updated": "1988-12-13T12:55:51.982Z",
"last_updated_by": "312b8cbc47c374876c5e501a",
"lastUpdatedVersion": "eu sint nostrud sunt aliquip",
"tags": [
"ex",
"Excepteur nostrud amet dolore tempor",
"ex amet ullamco ipsum non"
],
"canvasVersion": 1.5,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~1/FvTBAf,kf/Uf/~0/~1"
},
{
"type": "encryption",
"pointer": "/l98xtn/yqm5/Jg4/43M6/ZBheSdoKS/~1/ZOddMFcBJU/urr/jV2qKh-Lk0"
},
{
"type": "encryption",
"pointer": "/~0/~1/~1"
},
{
"type": "encryption",
"pointer": "/Arit.YM/~1/U2Sq9p"
}
]
}