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": [ "31462032f5bde2377407eed0", "7ec72d1b684a6ed87180902c", "2cf2104da2bd870f9e7887a1", "32913d778cf4837181b7ec55", "1aaafa822cccc940f13a43e7" ], "nodeLocation": { "x": 35134558.74371573, "y": 86782000.20243296 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "62594c9066e3335a1201469a", "394e4aabfbcc5a3ba66fcbd4" ], "nodeLocation": { "x": -14209667.998921916, "y": -58239949.14581645 } }, "error_handler": { "name": "childJob", "summary": "magna sunt eu", "description": "velit commodo aliquip laboris sunt", "app": "sed Duis minim", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~0/sp3n6yBzj/J/Hfx/w/~1/OrFFkl/~1/~0/~1" }, { "type": "encryption", "pointer": "/g2mWgB//F/c" }, { "type": "encryption", "pointer": "/~1/~1/~1/~1/iz6a.imu/~1/I/ff1VCAphbMo" }, { "type": "encryption", "pointer": "/QwAOVbea/PCCw7mOsKIv/~0/ywBP+TRmv1/~0/E63of4h" }, { "type": "encryption", "pointer": "/aCz1+zIdZt/fNFY84/~1/smR3P/QvJKW52iI5/~1/yJX2Fh5Ekh/CMvEro/~0/rM3tjekF" } ] }, "groups": [ "5e23c0e62082294e1d0fd3ea", "d327d1e842419493092f3df5", "23132cfe0fff2f2eadc8d93a", "56b29b78c87a47f8ca1b76eb" ], "type": "operation", "nodeLocation": { "x": 25561855.5192973, "y": 88044011.21973151 }, "deprecated": false, "scheduled": true, "retrySettings": null } }, "transitions": {}, "groups": [ "e11e05e5a09725dceb8c3937", "5966587fbb621169b3bc2cd7" ], "_id": "e4d911c1-5845-bf89-565d-6d9e57cfe01b", "uuid": "7bfc4954-3e4b-14d4-a8c7-8d78143da7b2", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "irure velit aute", "accessControl": { "read": [ "eu ea sit", "reprehenderit", "laboris", "voluptate" ], "execute": [ "irure tempor deserunt", "Excepteur magna officia", "commodo ullamco", "fugiat", "laboris ex sint id" ], "write": [ "et fugiat esse dolor id", "in", "velit anim incididunt aliquip", "exercitation adipisicing" ], "manage": [ "tempor id", "eiusmod elit" ] } }, "preAutomationTime": 5000, "sla": -8052233, "errorHandler": { "type": "elit quis dolore id", "name": "elit cupidatat minim anim exercitation" }, "font_size": 12, "created": "2001-03-14T18:19:35.072Z", "created_by": "bbf5ffb9e90f8250d6811f24", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1964-06-20T05:37:23.07Z", "last_updated_by": "0ef42a3447baff9d3150ec5e", "lastUpdatedVersion": "4.69.69", "tags": [ "in nostrud enim esse officia", "labore cillum", "anim dolor laborum pariatur" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/xZ0geePceW/~0/~0/m+/~0/AUOqxfySR8/~0/~1" }, { "type": "encryption", "pointer": "/~1/ljR/n/37/~1/~0/CN" } ], "migrationVersion": 47446499 } }
{ "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": [ "259404516559464cefd5fcb2" ], "nodeLocation": { "x": 43838487.091036886, "y": -57384147.222759865 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "f8eabd7a63586e40429c7917" ], "nodeLocation": { "x": -76411279.76396653, "y": 15732259.647439182 } }, "error_handler": { "name": "childJob", "summary": "irure laborum sed", "description": "laborum sed", "app": "qui in", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/KEYwIIo/~0/SwonXz/qg3w/~0/PGQpI1c/r/pVl+g3JGvt/~0/iU-AtzesW0/~1" }, { "type": "encryption", "pointer": "/~0/PI/LSKbx-q-B/MoCB-E/Jg1dJ0/~0" }, { "type": "encryption", "pointer": "/B/Y,Vcc0C/~1/~1/R2Wx+" }, { "type": "encryption", "pointer": "/aK/hlDg97jIyt/T/Y0/9a/~1/K7Xk/K/~0/YFLLnZCD/Pjs8n6E" }, { "type": "encryption", "pointer": "/~0/bBtt6x,nY/~0/y,rMe093sj6/~0/~1/TdlUXF" } ] }, "groups": [ "d5dcf7c205049d2eb5e5c8fc", "276945e11fb393cd84926fad" ], "type": "operation", "nodeLocation": { "x": 57222985.20480704, "y": 77870262.73085478 }, "deprecated": true, "scheduled": false, "retrySettings": null } }, "transitions": {}, "groups": [ "915996e124518b7c59e60775", "f56864e31cc68c1f790d7266", "1f809626bcf26f070873a6d9", "1079b2770d6437dfe112375b" ], "_id": "6d9a8adc-b00f-93d3-ead1-f7728281ce03", "uuid": "7be91bbf-c472-3eaa-1a82-e00895d955d5", "description": "aute nisi nostrud", "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "dolor ut cupidatat dolor sit", "accessControl": { "read": [ "dolore", "eu", "laboris commodo Ut in ut", "incididunt nisi", "Lorem ut fugiat culpa" ], "execute": [ "commodo Ut", "exercitation irure labore id deserunt", "ut Ut magna consequat sunt", "id velit sint" ], "write": [ "tempor", "id aliqua Lorem reprehenderit" ], "manage": [ "laborum ad laboris", "in", "nisi eiusmod proident Lorem" ] } }, "preAutomationTime": 250000, "sla": 67480830, "errorHandler": { "type": "consequat", "name": "sint aute pariatur" }, "font_size": 12, "created": "1952-11-25T13:17:49.293Z", "created_by": "565c224905718b81f3ecfbd0", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1982-04-23T01:47:12.922Z", "last_updated_by": "6fcf26c82561ea6661de7fc9", "lastUpdatedVersion": "4.69.69", "tags": [ "reprehenderit proident minim sed" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/yYk/G-i2cuJM/~1/~1/~1/~0/U/bDNBhacsj/~1/Gf98C/~1" }, { "type": "encryption", "pointer": "/~1/GTCaBXiLD/~1/~0/~0/~1/~0/~1/o9WyUgxJ" }, { "type": "encryption", "pointer": "/~0/Jj9yU/Ij2SD/loqa2omz/hI0v0J/Yik/p6XlYtsVNE" }, { "type": "encryption", "pointer": "/~1/K22RJVjLf9/~0/wD/DApc7Bf7ac9" }, { "type": "encryption", "pointer": "/~0/bWUM6J/~0/NaCrYn/~0/~1/x0Tr4q/~1/~0" } ], "migrationVersion": 37802666 }
{ "$ref": "workflowDocument" }