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": [
"5c454ebfbe304eb892f83ed0",
"3d6f1bd0a8035cef7d8523ba"
],
"x": 79698657.34430042,
"y": -43511600.143512875
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"f053e36614b427fa0529fa6e"
],
"x": -48361641.2682641,
"y": -91106331.756104
},
"error_handler": {
"name": "childJob",
"summary": "dolore",
"description": "quis deserunt velit",
"app": "dolor irure Ut mollit",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/jhc9zZ8z/~1/Oo"
},
{
"type": "encryption",
"pointer": "/~1/~0/j.zZY.r/~0/W/Jon/I3c6uXYEn/Zr24/c6/s4qNfc"
}
]
},
"groups": [
"b6fb8b1864b2eda15b32674e",
"25ae32e03a26036951d49fc3",
"0420ef8a3a6ea5b2a8f145fd",
"de7c5793446f38f13e6ba217",
"72c35f63fa8644222ec4a681"
],
"x": -23590228.25069292,
"y": -64812234.27589899,
"type": "operation",
"gridCoordinate": {
"x": 53894294.48132151,
"y": -16631658.323595569
},
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"4811a44fe7c1d4a3138acc0c",
"ee9d7e73444c4fbe9fb2c6b3",
"c45003f64de5c87ce9396398",
"6902019e44c2e187d7da7ba9",
"72ae699e98e9429c41cd6cf6"
],
"_id": "06afea30-7587-8b8c-7fba-b88c2166aa4e",
"description": null,
"namespace": null,
"errorHandler": {
"type": "Lorem nostrud adipisicing dolor",
"name": "dolore"
},
"font_size": 12,
"created": "2004-03-26T12:22:28.536Z",
"created_by": "4f1af8c2c26f802c60529a5d",
"createdVersion": "mollit labore est Excepteur",
"last_updated": "2015-07-19T06:08:37.857Z",
"last_updated_by": "fd6959833f57a4c751f39073",
"lastUpdatedVersion": "nisi eiusmod tempor",
"tags": [
"cupidatat Excepteur amet nostrud labore",
"eu ea",
"veniam laboris",
"ut veniam minim in"
],
"canvasVersion": 1.5,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~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": [
"4aec54259bf81fc52e90cca2"
],
"x": -43152730.7708206,
"y": 12622456.610533342
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"d303e9a78dd76518687c421f"
],
"x": 24435347.45599112,
"y": -94975665.21576895
},
"error_handler": {
"name": "childJob",
"summary": "officia",
"description": "dolor dolor",
"app": "do non sunt cupidatat",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/rO6gY/~0/~0/~1/~1"
},
{
"type": "encryption",
"pointer": "/bwb-Q/r/CQxh/r25V/~0/~0/Is8AJ+35d,"
},
{
"type": "encryption",
"pointer": "/~0/~1/yv/U/x6igfzs/xdWZ3A8/~0/N/x"
}
]
},
"groups": [
"118ee51a33401ef9919b0fb2",
"a3428d6707d7fc0f23cc150d",
"c4a4cea7c7983651dc771587"
],
"x": 85754132.45144242,
"y": 53353758.5525468,
"type": "operation",
"gridCoordinate": {
"x": -16942557.13954979,
"y": -57791208.32617064
},
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"1b47f444de8027405f5e6ddd",
"a0012a8585be666a3bce4953",
"0d06c8e7130955219dce4b7a",
"a0cdef515fb0f8dc8498e5fb",
"4242fc3202723eda70a5fc1e"
],
"_id": "87404bf0-6327-25a4-9cca-d57821a9a44f",
"description": "est",
"namespace": {
"type": "project",
"_id": "5cb5252a1bbc5a00def564c1",
"name": "commodo sunt velit aliqua",
"accessControl": {
"read": [
"voluptate pariatur",
"laborum sint",
"dolor"
],
"execute": [
"in laboris incididunt nostrud eu",
"est cillum"
],
"write": [
"Ut consequat cillum minim",
"proident ea nostrud aliquip Duis"
],
"manage": [
"aliqua ex",
"nisi ullamco",
"amet elit pariatur",
"aute Duis aliqua"
]
}
},
"errorHandler": null,
"font_size": 12,
"created": "1983-11-02T18:01:39.14Z",
"created_by": "c22b37ac3c386ac776b2098a",
"createdVersion": "in id aliqua velit minim",
"last_updated": "1972-04-19T13:52:36.836Z",
"last_updated_by": "bb274d7422ed2dad00a4129f",
"lastUpdatedVersion": "voluptate culpa exercitation",
"tags": [
"ea Ut anim velit labore"
],
"canvasVersion": 1,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/tJi-G7Bv"
},
{
"type": "encryption",
"pointer": "/X7OkoW0SaGz/~0/~1/fsIXtqc5q-/bG40/~1/~0"
},
{
"type": "encryption",
"pointer": "/OHRMMX,/DYd5zJQ/~1/d,63"
}
]
}