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": [ "0069e3cd220831456bfe8a47", "97f25770b385015edc591cc8", "6c233510b35e95bf1ef14417" ], "x": 35461275.826693445, "y": 21637474.042766497 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "84cbd5d2f92aa94d89eafaaa", "5bc11208adf0090e3f36b90b" ], "x": 82439189.38885444, "y": 31177174.067713365 }, "error_handler": { "name": "childJob", "summary": "Excepteur incididunt tempor", "description": "officia", "app": "exercitation ut", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/ctqW/~0/J/~1/~1/Ceb" }, { "type": "encryption", "pointer": "/~1/~1/~1/~0/~0/R1Ci" } ] }, "groups": [ "71baf73762a7d20bdbd8242f", "7b202fdf99671a243e6ff885", "1dba334ae26acf13e528cb1d", "103cdba214e95b942608b4cf" ], "x": -75634691.69205436, "y": -26730137.861190557, "type": "operation", "gridCoordinate": { "x": -50678886.79998767, "y": -32811907.301101953 }, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ "49724436685532b2e327aaa9" ], "_id": "bd01ebaf-d062-23eb-006b-f0d819977601", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "aliqua mollit veniam", "accessControl": { "read": [ "non", "Ut sed aliqua occaecat in", "sint laborum non minim laboris" ], "execute": [ "occaecat eu magna laborum sint", "reprehenderit Excepteur in officia", "Excepteur exercitation laborum laboris dolore", "nostrud elit mollit" ], "write": [ "proident Lorem non", "occaecat ipsum magna quis voluptate", "minim adipisicing", "aute dolor", "ullamco sunt ea" ], "manage": [ "occaecat ullamco tempor", "Excepteur sunt", "aliquip do" ] } }, "errorHandler": { "type": "esse sed aliqua", "name": "veniam cupidatat tempor fugiat Duis" }, "font_size": 12, "created": "2001-03-22T22:58:33.702Z", "created_by": "c03fc509b5eeb48cddb67d3d", "createdVersion": "tempor in in laborum", "last_updated": "1973-01-18T21:09:16.089Z", "last_updated_by": "f3d73d7c8ace05c22fc8c3c4", "lastUpdatedVersion": "amet", "tags": [ "adipisicing deserunt", "ad" ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/nHe/jEcJP/R29r/Dhy0i8eSM/BroOynGoCK/~1/~1/~0/oPfcpb1/AiLJFA,L" }, { "type": "encryption", "pointer": "/ehK8Lbat-" }, { "type": "encryption", "pointer": "/e4JSYOOp1Xu/~0" }, { "type": "encryption", "pointer": "/l4/F97/~0/~1/Gx6O5gkPl/~0/~1/p-+..qXLxi5/~0/~1/~0/U3MyonOpK" } ] } }
{ "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": [ "3c7e672ec829ea9d27c0e411", "21604438afb289c7a17b8062", "e4557e38db36c659ce5f6a24", "7a2eb809d081cf24c83aa8d5" ], "x": -23997142.544871867, "y": 45166321.22341493 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "fdd92972722a4856d455407e", "6f0a7e8fc62705f68de05520", "d57bbdab5fe9f1a7c6d26dbe", "e10f82f027e93aa0dc469e6e", "d5004436da95adc17c406373" ], "x": 76337406.44154721, "y": -69607651.01843886 }, "error_handler": { "name": "childJob", "summary": "nostrud esse qui incididunt", "description": "esse velit sed Duis", "app": "incididunt id", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/iAqjK/lxN3/bKz21/uZuLB,yta/~1/P8" } ] }, "groups": [ "43071c4230405ad59814e5d9", "0cb6f624812cd005592113ad", "802069802c770113995021e7", "1033b2a54d8b1be422fd2f42" ], "x": -87455891.39728276, "y": -63990337.23706191, "type": "operation", "gridCoordinate": { "x": -17401738.587507814, "y": -6498927.218733773 }, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ "3c877e4503496db179e0624b", "844a2b4dd907b2df913a1022", "620131f0fc440e9174351a13" ], "_id": "19e3e216-7bba-6954-611c-7cbeba2cce21", "description": null, "namespace": null, "errorHandler": null, "font_size": 12, "created": "1958-12-17T08:37:22.587Z", "created_by": "32a62dc7f953331516385a8b", "createdVersion": "Excepteur quis veniam aliqua", "last_updated": "1969-03-13T20:40:56.732Z", "last_updated_by": "22e3b1e777f8902182af5bd7", "lastUpdatedVersion": "irure in ut officia tempor", "tags": [ "do deserunt Lorem", "pariatur" ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/AcHRf/WG+8k.o" }, { "type": "encryption", "pointer": "/q5qQ-/~0/~1/~1/~0" } ] }
{ "$ref": "workflowDocument" }