Summary
Add Workflow
Description
Add a Workflow to the database
Route
POST /workflow_builder/workflows/save
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
workflow | object | yes | Workflow's data. |
{ "workflow": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ "54aa1da2353d0b8d23e63c81" ], "nodeLocation": { "x": 28092326.35354571, "y": 63331654.798048556 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "6c52ef50fe3adb3f9074c925", "b3b7c34e59304b414a77d9d5" ], "nodeLocation": { "x": -17676089.94463013, "y": -13415719.594356284 } }, "error_handler": { "name": "childJob", "summary": "non", "description": "do Excepteur eiusmod ea in", "app": "dolore ut consectetur et", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/p,u/~1/~1/~0/~1/~0/Q/~1/RA4MbzG-/~1/~0" }, { "type": "encryption", "pointer": "/~0" } ] }, "groups": [ "585c095ef6fdd543f82c39b3", "52b87f97dc2eb515ad3c781a" ], "type": "operation", "nodeLocation": { "x": -93962763.65867977, "y": -12921056.326106891 }, "deprecated": true, "scheduled": true, "retrySettings": null } }, "transitions": {}, "groups": [ "31f42670a7d16479b53114d0", "2b5527e625f49082dcf50150" ], "_id": "599b2b04-0fbe-a891-3f62-de570b5dc12f", "uuid": "44aef2a5-feae-e97f-4ca5-159255f26ee8", "description": "consequat", "namespace": null, "preAutomationTime": 5000, "sla": 55488057, "errorHandler": null, "font_size": 12, "created": "2000-09-07T01:55:42.934Z", "created_by": "f4171cee53fd45350a24229b", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1959-06-17T22:51:57.124Z", "last_updated_by": "acb00d01dafdc668ea534dc5", "lastUpdatedVersion": "4.69.69", "tags": [ "in eiusmod culpa", "labore Lorem sunt in veniam", "sed aliqua minim laboris quis", "nostrud ut in", "ex" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/BX,sW8x/dUcfu" }, { "type": "encryption", "pointer": "/l,OrQ/Y4sHfKcC/ce/~1/~0/kFt6U/~0/G2PHu2fqkc" }, { "type": "encryption", "pointer": "/w/cs/~0/Br2FMkpbn/hxb2A+Q-/O/~0/GOb2yPRMcH" }, { "type": "encryption", "pointer": "/~0/~1" } ], "migrationVersion": 35884552 } }
{ "type": "object", "properties": { "workflow": { "$ref": "workflowDocument" } }, "required": [ "workflow" ], "additionalProperties": false }
Return
Name | Type | Description |
---|---|---|
data | object | The new Workflow with its data and ID. |
{ "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ "e5a0671377969ef3057d5187", "069b0059c2803fe21e3c495b", "0b3297b1b7daef776cfee0d7", "abbefc173359ba993e22963b", "96f05063dbf91356614186e4" ], "nodeLocation": { "x": -90611778.37227055, "y": 49813685.725079924 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "610cffd5d090fc5ccf2aa349", "31794dcbefee94b5822f8e79", "257a78394be1bf08cd1a92fd" ], "nodeLocation": { "x": 39198144.74805844, "y": -63386277.53723282 } }, "error_handler": { "name": "childJob", "summary": "fugiat Lorem in Duis qui", "description": "est ipsum reprehenderit", "app": "ipsum elit", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~0/X4/~1/~0/~1/L" }, { "type": "encryption", "pointer": "/~0/Q1/v/~1/WtJ2yD,/bI/~1/~0" } ] }, "groups": [ "de0d163fa368d67eccac6e13", "06887e864f378e817be894da", "34abaa49df6adfc970c0683d" ], "type": "operation", "nodeLocation": { "x": 16079878.645862684, "y": 39397985.28142023 }, "deprecated": true, "scheduled": false, "retrySettings": { "state": [ "success", "failure", "success", "error", "error" ], "autoRetry": true, "limit": 10, "delay": 1000, "count": 5 } } }, "transitions": {}, "groups": [ "16af347377f9be813c8d268d", "9f3efddd83afeb52eac1e2f1", "0f9935678a37bf37ac84f01d", "61f952784414d190220ca162", "5877549fb034f702f6b3d88c" ], "_id": "ccf60e40-3cb7-f5de-72d8-0be682c7f159", "uuid": "72739c26-e09a-b93c-9997-fbc9e813ce83", "description": "aute", "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "cillum", "accessControl": { "read": [ "culpa incididunt Ut", "proident veniam ullamco pariatur", "veniam sint ut", "esse aute culpa", "minim" ], "execute": [ "occaecat", "amet do commodo", "fugiat" ], "write": [ "Duis", "non est tempor", "dolor ullamco", "consectetur laborum eu", "velit" ], "manage": [ "anim in in nisi", "non", "irure officia proident aliqua id" ] } }, "preAutomationTime": 5000, "sla": -57335560, "errorHandler": null, "font_size": 12, "created": "1987-11-12T17:44:02.289Z", "created_by": "3df2c419f0f04e9813c8eb43", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1954-08-19T19:05:05.565Z", "last_updated_by": "d72843dbe043dfbdc57306aa", "lastUpdatedVersion": "4.69.69", "tags": [ "mollit laboris aute Lorem nostrud", "labore amet cillum qui", "id" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~1/~0/~0/~0/~1/~1" }, { "type": "encryption", "pointer": "/OPdRakMYK7" }, { "type": "encryption", "pointer": "/uelDYrZEd/Iog3n/VWv/~0/yzKengjnbz/~1/TsD2AyQH" } ], "migrationVersion": 54975625 }
{ "$ref": "workflowDocument" }