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": [
"a234661e7b19f0bc5e6fda5d"
],
"x": 2398063.219366044,
"y": 40365322.014464974
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"148a2b944e7f0cd09a80cc78",
"f30840890fd7b18e52025c2f",
"7a5cebb89582b36097dd9a67",
"c8bc8ce56e27b93add45d110"
],
"x": -23207033.630239144,
"y": -74707048.39514095
},
"error_handler": {
"name": "childJob",
"summary": "cupidatat magna",
"description": "sunt fugiat elit labore",
"app": "velit Ut consequat nulla",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~1/ySGPqOIxh/~1/~1/Gr-"
},
{
"type": "encryption",
"pointer": "/q+FYkbf/~0/SuQuyfze/mV,rpiiyyy/~0/~0/vVqEZ6r7f/i+Nd/WB/mBxAYnEN/aZ"
},
{
"type": "encryption",
"pointer": "/z/bLK7N/~1/i,7/ukAaTpIEv/~1/Ok/gFn-T8/~1/a8vLhLgwW"
},
{
"type": "encryption",
"pointer": "/qAT3oS6r/plVZ45+PQu"
}
]
},
"groups": [
"1a6d180159da049fd6f530fc",
"0e687af12c5edf5e12c2046c",
"fafe23e655d29498610a676b"
],
"x": 26452958.16794011,
"y": -20275032.624947056,
"type": "operation",
"gridCoordinate": {
"x": -1363523.1590613574,
"y": -85825581.4199695
},
"deprecated": true,
"scheduled": true
}
},
"transitions": {},
"groups": [
"1178071c1c5d8b8184415818",
"8ac601ec9693ab9c3cf7344e",
"2f49ce0d8e05e673a797e63c"
],
"_id": "b04f14b0-3ee5-6c5c-dd2c-3d7790b2cc7b",
"description": "eiusmod occaecat mollit",
"errorHandler": null,
"font_size": 12,
"created": "1952-07-07T19:15:51.95Z",
"created_by": "b892fe52ae0e2f2ba0962fe8",
"createdVersion": "officia magna pariatur",
"last_updated": "1950-10-29T19:45:36.843Z",
"last_updated_by": "34b89af9e9de52074585a050",
"lastUpdatedVersion": "ea est mollit reprehenderit",
"tags": [
"aliqua adipisicing",
"esse fugiat adipisicing dolor deserunt",
"reprehenderit nisi",
"id quis",
"labore mollit"
],
"canvasVersion": 3,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/Kt/inmNW-y/~1/S/UUvOV2/~1"
},
{
"type": "encryption",
"pointer": "/LR/PjFV4+n/~1/~0/~1"
},
{
"type": "encryption",
"pointer": "/L/~0/cSCOcB8dC.E/~0/~0/~1/FV,6SI+"
}
]
}
}
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": [
"f8aae975bed58ecab6152c4f",
"f07149550290ad65f3627459",
"1d1612bcd3452cac78303e6a",
"ffbd1e2d39fa7970082ba3be"
],
"x": -36411022.93148739,
"y": -18726973.23526968
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"51f7b4f3d80bfdf563bcc4ae",
"2b631daf950a3ad491bcdf4b",
"f21e9bd540438841734cae10",
"6f435d152f9ab46c189b1834",
"997878ff4c28a3a8f8643a5f"
],
"x": 67608510.76442078,
"y": -95309611.01643944
},
"error_handler": {
"name": "childJob",
"summary": "nisi culpa dolore dolor",
"description": "esse",
"app": "est id et",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~1/~1/VU/,/~1/~1/Z/~1/~1/Ap1/XZbkvV/~0/~0"
}
]
},
"groups": [
"78be22a67f1ef22528f118c0",
"890506e6c251f39c083bae35",
"5fcf7abfe5d3ae203be9cf44",
"dffaa9a89250d8b13416de74",
"d30a9bd61f0c0c06fadc35c4"
],
"x": -63554342.55156429,
"y": 50001517.25571424,
"type": "operation",
"gridCoordinate": {
"x": 77624358.46778053,
"y": -19121500.274031207
},
"deprecated": true,
"scheduled": false
}
},
"transitions": {},
"groups": [
"c2bd0f30a5ad66e50e1c23d1",
"7a3bae91f4c0e652e566023f",
"2e80182d543d6d0179aff369"
],
"_id": "18346bcd-916e-b5b9-81ed-f8fe734d3896",
"description": "dolore culpa nisi sed veniam",
"errorHandler": {
"type": "labore exercitation proident",
"name": "Excepteur Duis"
},
"font_size": 12,
"created": "1947-10-02T07:52:29.054Z",
"created_by": "c3db8803cfd5eb9271523d01",
"createdVersion": "adipisicing",
"last_updated": "1992-06-30T11:19:52.217Z",
"last_updated_by": "876650c5008f927259edb648",
"lastUpdatedVersion": "deserunt culpa labore",
"tags": [
"magna",
"incididunt nulla aliquip",
"non sit",
"velit"
],
"canvasVersion": 3,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~0/~1"
},
{
"type": "encryption",
"pointer": "/~0/~1/~0"
},
{
"type": "encryption",
"pointer": "/~0/L,HMiH4fjzi/nh0qxUz9Z/~0/MC/cw.,Qv.Dq"
},
{
"type": "encryption",
"pointer": "/~1/~0"
}
]
}