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": [
"c2c29d4f986271b7d2528b07",
"22b8474555a3eebded884e13",
"f8d33fc61e07fef88978697f"
],
"x": -13228275.460760131,
"y": -83375129.4807139
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"fe29f30e95de7728119ee4ed",
"b87ddf5821410a2e5db661b4",
"17e175cbbd0798d1dae37793",
"c697d6066926c866ba5517d3"
],
"x": -16876031.515069827,
"y": 99269290.90607092
},
"error_handler": {
"name": "childJob",
"summary": "et",
"description": "dolore dolor quis anim culpa",
"app": "incididunt",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~0/RdEv"
},
{
"type": "encryption",
"pointer": "/lewuE0Ghh/~0"
}
]
},
"groups": [
"899a4bf84f280f36d4fb393f",
"c41e375b4959f92769848119",
"5b3353393683516f6f577705",
"5c265f7001756d7f8b68e522",
"86fdf4fdb14eb0884b018258"
],
"x": 23717438.85414186,
"y": -1940360.8395027816,
"type": "operation",
"gridCoordinate": {
"x": 20978227.377044916,
"y": 83198759.86515436
},
"deprecated": true,
"scheduled": false
}
},
"transitions": {},
"groups": [
"95eba8b226f691f69e787c5c",
"afcd2a91bdc455703d8af8b0",
"bd0c2b38b02fcf0abf0ab58b"
],
"_id": "d1457526-0672-5735-a5c5-91e7c9e28dcd",
"description": null,
"errorHandler": null,
"font_size": 12,
"created": "1951-05-22T00:31:51.686Z",
"created_by": "e079af65b6af287295930cf7",
"createdVersion": "ut eiusmod eu irure",
"last_updated": "1959-12-19T04:47:13.434Z",
"last_updated_by": "c73968e64e5609669c439955",
"lastUpdatedVersion": "nisi laborum dolor",
"tags": [
"exercitation sunt",
"pariatur",
"amet ut in in",
"labore officia mollit esse",
"est ullamco laboris"
],
"canvasVersion": 1,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/xV0grQT.J/~1/jOrM-F5/XuInf/p/~1/T"
},
{
"type": "encryption",
"pointer": "/~0/~1/B/~0"
},
{
"type": "encryption",
"pointer": "/Ve5+Cft.kQN/R7FkO6qLUb/~1/~1/~1/~0/~0"
},
{
"type": "encryption",
"pointer": "/tMZk8/~0/~1/HZ6-/~1/AK/~0"
},
{
"type": "encryption",
"pointer": "/ubYKnbXo/~1/~1/~0/hlr2mwZA3Fi/~1/n"
}
]
}
}
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": [
"f62bbaec22cbccbfd9c3947c",
"f21105173c1845f11c9fa4dc"
],
"x": -78394249.41326895,
"y": -57497863.131492145
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"24ece0bcebc79f8fc04df793",
"e4da620d14f5f84dc65a67b0",
"a4784d1ae3522b61260cf80e",
"46984540f12e44a83478aa23",
"7c994625eeb8a18bb4eb87ef"
],
"x": 13616430.473419026,
"y": 84771818.62133852
},
"error_handler": {
"name": "childJob",
"summary": "voluptate incididunt sit dolore",
"description": "commodo ad cupidatat",
"app": "voluptate dolore pariatur mollit sit",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/mQnGoND4bG9/~1"
},
{
"type": "encryption",
"pointer": "/Scr5yZXo,/Sq8FUQ/I/ut6AwXw/~0/Z9Ri/~1/CG,/~1/AX/~1/~0"
},
{
"type": "encryption",
"pointer": "/n7/~0/~0/~1"
}
]
},
"groups": [
"49fa790ba50df9f9cb8f70ea",
"cdcc0e0abb9b7b65b82d231a",
"2a195e1c774bdc9c1f4e9b5d",
"657b55603f66fcf938bd19c1"
],
"x": 55142247.815368265,
"y": 39449453.24454695,
"type": "operation",
"gridCoordinate": {
"x": 15071916.567799315,
"y": -19094343.61364162
},
"deprecated": true,
"scheduled": false
}
},
"transitions": {},
"groups": [
"0b2284270de86b6a4a0bfbb4",
"a85526c246350b43492b2895",
"58688283517cf4bf0b2123db"
],
"_id": "4e476f01-0730-da8a-109e-25c8c834e7a8",
"description": null,
"errorHandler": null,
"font_size": 12,
"created": "1945-04-17T01:34:09.429Z",
"created_by": "4fb25d4b353dfa9b040896df",
"createdVersion": "eu",
"last_updated": "2022-07-02T23:58:58.603Z",
"last_updated_by": "c765e23f269d89f68c111546",
"lastUpdatedVersion": "incididunt non amet Duis sit",
"tags": [
"reprehenderit"
],
"canvasVersion": 2,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~0/~1/iE9WXXeI/~1"
},
{
"type": "encryption",
"pointer": "/~0"
}
]
}