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": [
"cd2f6c640a4312df72d3ac41"
],
"x": 82177725.76625696,
"y": -34686433.65398947
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"e7ce018a748d3d114f1d1bf3",
"b800e1c44810c99bdd38fdc8",
"7e579885b4b84244c4a9d047",
"537af79d10ab09109071dd0e"
],
"x": 5180659.494142145,
"y": -5827113.1672324985
},
"error_handler": {
"name": "childJob",
"summary": "cupidatat veniam",
"description": "Lorem",
"app": "culpa dolor qui aute dolore",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/WoTT9vQZmCQ/~0/LvhU-oMLg-/h91IeDEZIx/~1/~1/~1/kEC/"
},
{
"type": "encryption",
"pointer": "/~0/ukEcG0/~0/SkTXA/~0/~0"
},
{
"type": "encryption",
"pointer": "/rZ/~1/~0/~1/QqKtzqD7q/Qhrf/gUgcItV7FrF/Arvd/~0/wEG+/~0"
},
{
"type": "encryption",
"pointer": "/chK/~1/~0/~0/b2e/~0/~1/~0/~1/~0"
},
{
"type": "encryption",
"pointer": "/dxkt1/LZiTmPqAX/YU/k,UUo/~0/~0"
}
]
},
"groups": [
"bbe7c4f78c584afeb140a0e5",
"49fe7b0990f2fc8b984dab09"
],
"x": 84427067.09097952,
"y": 46165856.15253416,
"type": "operation",
"gridCoordinate": {
"x": -62426885.4677624,
"y": -69526008.39463541
},
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"890ce7099c6c76d24b98fcd8"
],
"_id": "c244cb99-583d-ecd1-c90f-5dd3660c5ed3",
"description": null,
"errorHandler": null,
"font_size": 12,
"created": "1978-07-27T00:15:02.535Z",
"created_by": "1254fa37a203ed80ead91a19",
"createdVersion": "in anim officia eu",
"last_updated": "2020-10-09T01:52:03.186Z",
"last_updated_by": "d326e14de701d1991899c810",
"lastUpdatedVersion": "aute nulla",
"tags": [
"dolore voluptate culpa",
"esse"
],
"canvasVersion": 1,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~0/L/~1/nSA/M8SHH/BYi"
},
{
"type": "encryption",
"pointer": "/~1/~1/~0/OoTJXHvS9G/~0/rb3HI"
}
]
}
}
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": [
"c7dd3571089cba392ed2c275",
"a1364b63aca22ef9d6337418",
"26cd2f351162dee8036b1416"
],
"x": -34129071.18577473,
"y": -77759949.11827895
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"e43bffabdfad789def759b0f",
"37f341742dba9717bf81fc8a",
"477bec858681a74c844d778a",
"6c24dc8acc42f3790b1c638f"
],
"x": -76645843.09044446,
"y": 37151681.37002024
},
"error_handler": {
"name": "childJob",
"summary": "occaecat sint irure",
"description": "minim sed quis qui ullamco",
"app": "fugiat laborum nulla irure",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/pKOPpb/~1/GPJMtw/~1/cdnA,gY/~1/~0/uPJzn,mV/~1/T+4sq7/Xe7hhxpPu"
},
{
"type": "encryption",
"pointer": "/~0/~1"
},
{
"type": "encryption",
"pointer": "/hXb/~1/~1"
},
{
"type": "encryption",
"pointer": "/~1/~0/~1/c4A/YA/~1/~1/~0"
}
]
},
"groups": [
"87a05f96e5a0ed3a0fef7561",
"21e8f2333b6ffef3f5c3d040"
],
"x": 13919548.533583507,
"y": -83475720.639079,
"type": "operation",
"gridCoordinate": {
"x": -59672803.630761884,
"y": -27574697.48702173
},
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"28c32268160c5533e49e88e0",
"f2fbf066a31bbaf73df7ce28",
"0d30d5496096722f28eadbb9"
],
"_id": "6447cee7-721a-ddc2-d807-f1c8610428f9",
"description": null,
"errorHandler": {
"type": "aliquip deserunt consectetur occaecat minim",
"name": "dolore non Excepteur"
},
"font_size": 12,
"created": "1968-05-09T17:33:52.818Z",
"created_by": "f2e8fd33d897a984706be1ec",
"createdVersion": "eu incididunt id",
"last_updated": "1976-12-16T12:18:05.331Z",
"last_updated_by": "8e79a5627adb2badd008b375",
"lastUpdatedVersion": "eu culpa qui",
"tags": [
"velit ut deserunt elit aute",
"Lorem laborum anim velit"
],
"canvasVersion": 3,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/dp+RB2Q/~0/~1/~0/~1/VqY/P0kju.uy"
},
{
"type": "encryption",
"pointer": "/~0/~0/jwQ5GM"
},
{
"type": "encryption",
"pointer": "/~1/~1/BihU6"
}
]
}