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": [ "b8d313fe43b7273de661b14b", "3a285bbcac833e691d8fbd51", "061c8b16f23f1eae3061aa30" ], "x": 69705938.75111261, "y": 61525476.64084008 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "c6b47c540cb3c2fdc65e790b" ], "x": -66757022.388499096, "y": 27584193.59825632 }, "error_handler": { "name": "childJob", "summary": "tempor culpa in", "description": "voluptate non nisi", "app": "fugiat", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~0/VMOFYHyv/~0/~1" }, { "type": "encryption", "pointer": "/~0/~0" } ] }, "groups": [ "a3c59414c206522d2f0047ff" ], "x": -55778102.45195076, "y": -41442228.89673968, "type": "operation", "gridCoordinate": { "x": 24491711.995108873, "y": 39457403.49355784 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ "4c4397816fbd331f4a05ea48", "137b5eeaae0f36abf60e1687", "3f97b43f910f0a526f9bd73d", "3d1b43d6a3ca2c25a9b187b0" ], "_id": "2e26f322-05e8-0493-de22-0b031c84779e", "description": null, "namespace": null, "errorHandler": { "type": "commodo Ut sunt velit est", "name": "esse irure magna in" }, "font_size": 12, "created": "1974-04-24T08:46:06.696Z", "created_by": "522dfa048da79d7fb9e6a946", "createdVersion": "in eiusmod mollit tempor", "last_updated": "2001-04-16T02:47:34.262Z", "last_updated_by": "26890595d56dd8f6fb131ee8", "lastUpdatedVersion": "eiusmod eu", "tags": [ "reprehenderit fugiat sit", "commodo aute nulla", "ipsum officia cupidatat irure", "consectetur cillum laboris dolor anim" ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/fcaJ0/q,68PH.pJBV/ld" } ] }, "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": [ "ee23b1e57060381770cca380" ], "x": 42934249.32723072, "y": 75538509.66200897 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "827a68b3fb7b50b3ee21ac13" ], "x": 99376933.63659427, "y": -56812463.672685795 }, "error_handler": { "name": "childJob", "summary": "culpa adipisicing nulla in", "description": "est incididunt in", "app": "ex", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/hKbtvGlT-K4/~1/~0/U/q6e9/~1/~1/~1/~1/~0" }, { "type": "encryption", "pointer": "/~1/~1/DEIcJ5Yo/vkFhTK3fu-/sm/m8dcGG4Z/Mt" }, { "type": "encryption", "pointer": "/~0/pTW.c/~0/~0/wqfOBx,RTs/Fh+lH2Qiz/~1/Y,HWsMD" }, { "type": "encryption", "pointer": "/~0/~0" }, { "type": "encryption", "pointer": "/~0/Y+4TbTjl+qG/tpvV3xg.4d/C.BRfmR7" } ] }, "groups": [ "ee52aaf18bdd080ebd2ce6be" ], "x": -67977190.1097702, "y": -48690843.85683555, "type": "operation", "gridCoordinate": { "x": -78931089.28184152, "y": 12151728.138953865 }, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ "6a05222927b29d994874173f", "dad5331d30a4cf4b46e25ddc", "9890ccdf2ed603f25fc6f540", "fb8ac02736190e80c2c45574", "84f948312f4b2045c12140ea" ], "_id": "3b59ef7f-a66a-2d4a-c4c8-95e493a38227", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "magna dolore qui anim", "accessControl": { "read": [ "do reprehenderit exercitation", "Ut ullamco labore", "ullamco ipsum", "culpa cillum", "ipsum" ], "execute": [ "dolore commodo eiusmod laboris", "deserunt", "do commodo ad qui nisi", "veniam esse ipsum dolore" ], "write": [ "id" ], "manage": [ "ipsum dolor voluptate Lorem exercitation", "qui dolor fugiat id reprehenderit", "quis" ] } }, "errorHandler": { "type": "dolor tempor ipsum et", "name": "cupidatat exercitation" }, "font_size": 12, "created": "1970-03-07T22:09:48.802Z", "created_by": "b6c3e7f22caf239898a95474", "createdVersion": "reprehenderit voluptate commodo et", "last_updated": "1974-12-26T14:31:13.326Z", "last_updated_by": "29c7384c36efc79007c49ecb", "lastUpdatedVersion": "Excepteur ut", "tags": [ "ut nisi ut aliqua", "tempor nisi velit incididunt", "dolor elit tempor ex aliquip", "aute in", "officia Duis deserunt" ], "canvasVersion": 2, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/VgK-Pn4L/~0/~0/kGqDflH7" }, { "type": "encryption", "pointer": "/S11v5R/b3N1e/NRJhN1FWt,n/~1/~1/ci337nw/qO3Xoq/q.MYH8Z1/~1/TGsa/~1" }, { "type": "encryption", "pointer": "/yA8F8HeBr5c/gjZE/kGr.E4/~1/Nda4I/,0/H/nLrkR/vHrCyWd0p/~1/~0/~1" }, { "type": "encryption", "pointer": "/FOyvtn5/~1" }, { "type": "encryption", "pointer": "/FlsH0/~0/~0/AM/c8H/m4f," } ] }
{ "$ref": "workflowDocument" }