Summary
Rename Workflow
Description
Rename a Workflow in the database
Route
POST /workflow_builder/workflows/rename
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
workflow | object | yes | Workflow's data. |
newName | string | yes | New name for workflow |
{ "workflow": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ "f07e081923705e06bac2cc7e", "2b30837c7e9b35dcd56ef389", "e536e9a852367e6b3d2b0484", "5d81c7a06885d90c5631ab3a" ], "x": -14159798.23638694, "y": 79155400.87311849 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "73227a75d4c1a6a864fb91a2", "f237e00f499d119cf9de8aba" ], "x": 71432855.74331814, "y": 20202838.18365778 }, "error_handler": { "name": "childJob", "summary": "et nulla veniam ex Ut", "description": "eu Ut magna", "app": "minim labore quis", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/H/~1/~1/~0/YS-8NmKnj/~1" }, { "type": "encryption", "pointer": "/~0/~0/~1/MPs31fEk/~0/k1.NE+DGcN5/RQ1/~1/lNWkK-SAH" } ] }, "groups": [ "9a7721968b7ebbd11a9d0312", "4a9e2924c829896385016a58", "9ded10a3a2b5da244dd5347f" ], "x": -44583838.251630284, "y": -36578702.52114552, "type": "operation", "gridCoordinate": { "x": 1494392.870661214, "y": 85172785.38756478 }, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ "e41ad319d8fa8c3d61baee24", "79cbb129042a95d607ac6590", "f84fc27e47b11a07ca9a22e3", "21f81260a22191966a47dfa4", "8a515975dc457e664c17f508" ], "_id": "bc99028f-8ff6-3ede-2009-84444d5925de", "description": "tempor dolor", "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "ex ullamco", "accessControl": { "read": [ "minim aute non nisi proident", "nisi nostrud", "velit eiusmod nostrud" ], "execute": [ "fugiat labore enim consectetur officia", "ullamco magna ad et aliquip" ], "write": [ "ea culpa occaecat minim fugiat", "irure dolor nostrud adipisicing", "eu aliquip nisi", "ad", "et dolore" ], "manage": [ "dolore et sed velit", "anim dolore", "pariatur id nostrud ut aute", "ullamco commodo id" ] } }, "errorHandler": null, "font_size": 12, "created": "2020-02-25T23:26:59.777Z", "created_by": "e8f743ab4cffbda8813ee433", "createdVersion": "veniam ut ullamco", "last_updated": "1976-08-19T08:13:57.996Z", "last_updated_by": "5d103c6aaf1dd7dd6c7cf961", "lastUpdatedVersion": "aliquip sed ad reprehenderit ut", "tags": [ "do sed aliqua", "non qui id Ut" ], "canvasVersion": 2, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/cQyPT/js-f3t1C/~0/~0" }, { "type": "encryption", "pointer": "/X/~0/jfT/s/V3rU6m/Ir0iWs31m5./~0/q4/~1/~1" }, { "type": "encryption", "pointer": "/~0/~1/~0/~1/~0/~1" } ] }, "newName": "New Workflow Name" }
{ "type": "object", "properties": { "workflow": { "$ref": "workflowDocument" }, "newName": { "$ref": "workflowDocument#/definitions/workflowName", "examples": [ "New Workflow Name" ] } }, "required": [ "workflow", "newName" ], "additionalProperties": false }
Return
Name | Type | Description |
---|---|---|
data | object | The renamed Workflow with its data and ID. |
{ "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ "bdcfd31191198242eda5f1b7", "f87922218b9e211fc43a2d00", "0fe13d0ebc221594d4698960" ], "x": 66382380.20133039, "y": 19190993.719598293 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "a72f02a501125419166cb420", "4e9bcb568e73b2565e3ae1b0", "089c30049ff283e6805a7bd3", "082081c857290daf6634eea4", "e8805cad03b7a19eba76a867" ], "x": 78543761.38539708, "y": 12599065.644956335 }, "error_handler": { "name": "childJob", "summary": "tempor", "description": "culpa aliqua", "app": "minim deserunt nostrud eiusmod ea", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/FKcGknFgyaf/~1/~1/GJf6N.D65i/~1/zuhV0zpp/~1/t19sQTY0V5B/Ma.V/~1/D.0M,sWDz80" }, { "type": "encryption", "pointer": "/~1/~0/~1/HOrB6GeFLC/g/~1/aJPje/CYqRhzIVQJs/~1" }, { "type": "encryption", "pointer": "/RY/~1/~1/UN/D/~1" } ] }, "groups": [ "3f7298a2531f3dedb581a594" ], "x": -98925609.75293651, "y": -62862860.45149003, "type": "operation", "gridCoordinate": { "x": -11433240.404453963, "y": 43219728.75848377 }, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ "be62a17ce221db853e325455" ], "_id": "f5cb8131-c054-4f9e-049e-a8bc11b5c545", "description": "dolor ut aliqua in", "namespace": null, "errorHandler": null, "font_size": 12, "created": "1996-02-22T09:35:19.654Z", "created_by": "809e39657a2b410b33e95fbb", "createdVersion": "reprehenderit", "last_updated": "1946-06-22T08:48:39.675Z", "last_updated_by": "c3a1e3802f524a3a779293d5", "lastUpdatedVersion": "sed elit et", "tags": [ "ex sunt dolor mollit", "est" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/WX" }, { "type": "encryption", "pointer": "/cDSYzCMiLW/Jn9BkiklW-/m/7lj5BZT/~1" }, { "type": "encryption", "pointer": "/H2LFtRRB-0-/~0/~1/vVEw8O/s5/~1/C.T0h7/Hi/blcXhK" }, { "type": "encryption", "pointer": "/a2/~0" }, { "type": "encryption", "pointer": "/~0" } ] }
{ "$ref": "workflowDocument" }