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": [
"a1fb98eb38641f394569abcb",
"2bfb57ecb5aed68c7bd2b142"
],
"x": 98532500.35055536,
"y": 6976111.725298837
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"5336a4358609620c3ac97a31",
"fcdefdedd8384254607643ae",
"e7b8081619f4d8b612163273",
"3f2792655fc1ebdb4f5457de",
"f2c8a9e722c0cb2ef3cf8cb5"
],
"x": -10729775.344562232,
"y": 69683884.30457705
},
"error_handler": {
"name": "childJob",
"summary": "sint minim nostrud in",
"description": "cillum aliquip magna cupidatat reprehenderit",
"app": "esse consectetur dolore nisi ipsum",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/W/iQ/tRHcZ/~1"
},
{
"type": "encryption",
"pointer": "/w6sKn7y/~0/~1/HsA2hsm-UG/u+0Jxr/~0/~1/KuqWXhUfO"
},
{
"type": "encryption",
"pointer": "/xGQFgkVO/xVF02Qsp1K/~1/~0/fX-gX/VpJon.f3R/~1/~1"
}
]
},
"groups": [
"ed6c4ea6321befdeef10a4e8",
"96b0bfca4a2b507e2e393d28",
"2720355e61d7ce4e1ea83448",
"4f6ff76c7f07aef3b938d2a9",
"bd571a736b7e4d57de1de2f6"
],
"x": -88718781.88888104,
"y": -30298799.517228663,
"type": "operation",
"gridCoordinate": {
"x": 68815191.95093212,
"y": 78386033.98998833
},
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"ab46d799c7b26610952cace3",
"fa11c0e632dfdc2442f4ade6",
"3a9f30ea37ff24a1d053df5d"
],
"_id": "392cf900-16af-9824-07a4-a9f09b32f4f0",
"description": "veniam cupidatat",
"errorHandler": null,
"font_size": 12,
"created": "1973-04-18T20:30:54.17Z",
"created_by": "a39f53e3bccd09189ecc5151",
"createdVersion": "aliquip eiusmod ut ex enim",
"last_updated": "1976-07-24T08:00:15.869Z",
"last_updated_by": "ac33d9892f5016c474d1712e",
"lastUpdatedVersion": "exercitation ad dolore ipsum",
"tags": [
"ea deserunt ut"
],
"canvasVersion": 3,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~0"
},
{
"type": "encryption",
"pointer": "/~0"
},
{
"type": "encryption",
"pointer": "/~0/~0/~0/DrrdgX/~1/R3ViXad-Z9/gaTW6bITRL"
}
]
}
}
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": [
"abce69ce793bc671ae37b8c1",
"fd41064652edbd04d41ebb51",
"8ab27098cfc6a52265a680cc",
"e53054d2c19ce6926bff0bf2",
"d4fcebe667acea64d836cd4c"
],
"x": 51547032.72941798,
"y": -37683217.82602344
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"01afbb8197bdaa05f4570469"
],
"x": 75410750.41738302,
"y": -11978887.797643319
},
"error_handler": {
"name": "childJob",
"summary": "sint nulla",
"description": "ullamco adipisicing",
"app": "ad anim ut",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~0/Ed9D0+d3a/~1/~1/~0/~1/zwXQWu"
},
{
"type": "encryption",
"pointer": "/dBT/~1/~0/~1/~1/XX"
}
]
},
"groups": [
"21bd26dc660c7892fbaf437c",
"0aeeb17266f2222ca3c0f79d",
"3463266bb086b006e157aa84"
],
"x": -22609265.792150438,
"y": 33524549.4634898,
"type": "operation",
"gridCoordinate": {
"x": 18133817.88663961,
"y": 7916781.2366107255
},
"deprecated": true,
"scheduled": false
}
},
"transitions": {},
"groups": [
"399cd0ed866da0161319717d"
],
"_id": "fac79e5e-f87c-0ccb-f5dc-526f012a84ee",
"description": "fugiat veniam aute",
"errorHandler": {
"type": "commodo",
"name": "esse"
},
"font_size": 12,
"created": "1994-02-02T04:59:52.106Z",
"created_by": "d58fa6334d463992ebb50ba6",
"createdVersion": "cupidatat",
"last_updated": "2021-06-20T13:33:52.105Z",
"last_updated_by": "53aa6f0c510ae69d4d8f7247",
"lastUpdatedVersion": "occaecat fugiat laboris",
"tags": [
"dolor",
"eiusmod sit nisi et dolor",
"ex minim non",
"consequat"
],
"canvasVersion": 1.5,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/LkZBUN5yiFr/~1/kTpBZXO8m/~0/~0/Na/~1/ibuTTmrm"
},
{
"type": "encryption",
"pointer": "/iMRr+w0MAB/vqcVcQn/~0/~1"
},
{
"type": "encryption",
"pointer": "/~0/S-b4Kq1/g43nrnHUivJ/~0/MZbn/uGCoba/a,oOAvxOI-g"
}
]
}