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": 28847524.62440674,
"y": -37994074.80319772
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 61717738.32189432,
"y": 41869959.4138532
},
"error_handler": {
"name": "childJob",
"summary": "do dolore",
"description": "ut reprehenderit amet",
"app": "enim labore",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~0"
}
]
},
"groups": [
"4d202df2402ee9403944fcb5",
"5205f22f7a9cc71417b543bd",
"4ac490bd9f4bf1fa0c9a173b",
"9af78a6e08949b881895b909"
],
"type": "operation",
"deprecated": true,
"scheduled": false
}
},
"transitions": {},
"groups": [
"e0ebb43839368a51d662ad51",
"f47082670f0afa9182e1f903"
],
"_id": "febe7480-1785-16ed-7e1f-508bb2da4b68",
"description": "amet labore",
"errorHandler": null,
"font_size": 12,
"created": "2011-03-29T06:09:45.252Z",
"created_by": "d48b67334f27fcd01d5eba81",
"createdVersion": "qui ut Ut ad officia",
"last_updated": "1998-02-03T03:54:38.478Z",
"last_updated_by": "8e36c67312a66d071ff0ed3e",
"lastUpdatedVersion": "sunt veniam quis qui",
"tags": [],
"canvasVersion": 2,
"decorators": [
{
"type": "encryption",
"pointer": "/~0/~1/~1/~0/~1/~1/~1/OqtIl+81Frn/SsQB"
},
{
"type": "encryption",
"pointer": "/~0/lm4at/~1/cwyWH05ssYD/~0/~0/~0"
},
{
"type": "encryption",
"pointer": "/i/p44u/Rz-k"
}
]
}
}
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": 66679736.10559827,
"y": -42027604.12636284
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -26146775.83197631,
"y": 93486591.70278442
},
"error_handler": {
"name": "childJob",
"summary": "aliquip reprehenderit quis Lorem",
"description": "magna ipsum aliquip",
"app": "voluptate Ut minim et",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~1/~1/T,vkV/~1/~0/~0"
},
{
"type": "encryption",
"pointer": "/~1/~0/rBMHyk3"
},
{
"type": "encryption",
"pointer": "/~0/~1/~0/hz/Uu/~0/K/~0/~0/vgoU.4a/~1"
},
{
"type": "encryption",
"pointer": "/~1/~1/~0/ompEFx20x/~0/~1/es3,PHS,9/~0"
},
{
"type": "encryption",
"pointer": "/~1/~1/vfKeHWiIsnp"
}
]
},
"groups": [
"b5c4f59ad3e9d8d727f3311d"
],
"type": "operation",
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"c18de084ef2be7076961a86f",
"33ef8c16a1beb0b934e03c1a",
"ac0fa380cfdfc683b59bb2d0"
],
"_id": "aba2714a-cbc2-20f1-c059-420b5b31166c",
"description": "nostrud sed nisi mollit",
"errorHandler": null,
"font_size": 12,
"created": "1978-08-10T19:45:53.217Z",
"created_by": "e3c243b1a35e113554afa5c4",
"createdVersion": "consectetur tempor sit",
"last_updated": "1963-02-25T05:45:54.716Z",
"last_updated_by": "6d0628a539e0993b070b8291",
"lastUpdatedVersion": "ad Duis in ea cupidatat",
"tags": [],
"canvasVersion": 2,
"decorators": [
{
"type": "encryption",
"pointer": "/~0/~0/~1/Cbjo1G/~1/byZJVOx6Q"
},
{
"type": "encryption",
"pointer": "/mh7/EDCNhGk/~1/~1/k6BF-CI2/cy"
}
]
}