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": [ "a2f6bc1680c05e5b6c00f6ea", "97bcb433f435dca9524b91e0" ], "nodeLocation": { "x": 41307277.18445203, "y": -93445770.37658527 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "df2770560cb9e58171678c39", "85b948dab1e365b24609943a", "a58af790906efebced2e3189" ], "nodeLocation": { "x": 18147221.724647313, "y": -31914710.83347 } }, "error_handler": { "name": "childJob", "summary": "cupidatat irure", "description": "ex", "app": "minim magna Ut aliqua", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~1/X6g7-3SvkI" }, { "type": "encryption", "pointer": "/KWHtF2WoLW/GLjwo73Qu4/~0/~0/p/~1/HVn0aIm90+/~0/~0/~1" }, { "type": "encryption", "pointer": "/~0/EA+/Xw,+9/~1/HZ/pZQ0-nJKe" } ] }, "groups": [ "ea9dbeac846d5e50dcb22526", "4b8deec42a075502d16fbbfc", "e01e6b47ccfa8c38886c4c37", "ba18939df19f39f759e63926", "a9cb4f71bef6fc3e80e7ab5f" ], "type": "operation", "nodeLocation": { "x": 2034007.4258760512, "y": -1610461.0719761252 }, "deprecated": false, "scheduled": false, "retrySettings": { "state": [ "failure", "error", "failure", "failure", "success" ], "autoRetry": true, "limit": 20, "delay": 1000, "count": 5 } } }, "transitions": {}, "groups": [ "951e710ff6cc5651a5e42ab0" ], "_id": "053440d9-bb2d-f1c1-dc14-3f8356802a8d", "uuid": "df5e67b0-824a-b17c-972f-3d8d1392365a", "description": "velit incididunt in consectetur magna", "namespace": null, "preAutomationTime": 5000, "sla": -14789033, "errorHandler": { "type": "esse", "name": "consectetur enim irure" }, "font_size": 12, "created": "1978-02-23T01:26:17.365Z", "created_by": "d5ed2f36c8b4958c0e978876", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1981-02-04T11:54:08.802Z", "last_updated_by": "33fc76eb4a7f073a9eb0c4c4", "lastUpdatedVersion": "4.69.69", "tags": [ "Lorem laborum minim Excepteur dolor", "exercitation consequat", "ipsum nulla fugiat incididunt nisi", "est", "Lorem incididunt" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/UYMOOK5/~0/E-X/I/gRPNt3E3KjI/~0/pRcQT43v/h/RYO/~0/Qh-hSe4-WM" }, { "type": "encryption", "pointer": "/kvlqwzbHHC/BTmUkjluK/O/GxA7C.s03D" }, { "type": "encryption", "pointer": "/~0/~0/AF-UImMcm/~1/~0/~0/zKdi.8s/G/cSvNa/y7OQhL1rYZ" } ], "migrationVersion": 22725609 }, "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": [ "716b68febc0e83c80aea0beb", "d284241c71a2fe5eb89c17c2" ], "nodeLocation": { "x": 31100427.637281984, "y": -84307561.01023299 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "9ea75e808b7ec1cf1dc7281b", "c41a0ae528ca6bcc03e5bcfd" ], "nodeLocation": { "x": -69227825.05961695, "y": 67860479.62033698 } }, "error_handler": { "name": "childJob", "summary": "est", "description": "nostrud", "app": "mollit esse ad ex", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/u5M.QOaJg+/imWwi,DQex/Nb7oP8/ai3.wKX/~1/GsU/~1/pZ+-ow-V/~1/~0/~1" }, { "type": "encryption", "pointer": "/DR/~0/gBNcUX,R0TN/~0/g0qc/7/aql/~1/NhfR5wqB8Q+/tO/PaUw-i1JG/~0" }, { "type": "encryption", "pointer": "/~1/buafKCToVIc/vH/hSSeROLwC/~1/~0/X" }, { "type": "encryption", "pointer": "/P./~1/~1/~0/qqtJ./~0/~0/~1/zEPc2aVtr" }, { "type": "encryption", "pointer": "/fzRSMrZ/~1/LehoL34l.5/nO2-,e/ynbl1xT9/~0" } ] }, "groups": [ "bfe9758b9ceb7549a48d4ec5", "3267c236314c4e57f5b7b8f0" ], "type": "operation", "nodeLocation": { "x": -20660640.155888423, "y": -13365545.811815903 }, "deprecated": false, "scheduled": true, "retrySettings": { "state": [ "error", "success", "success" ], "autoRetry": true, "limit": 10, "delay": 1000, "count": 5 } } }, "transitions": {}, "groups": [ "4b4e4025dafea59f472e3412", "5db084b7fce16929e6fb7f38", "9bb46128877522424072e018", "08e1794ecfdeab85450f6a5b" ], "_id": "0dfea907-912e-f340-b720-b07e79fc3f6b", "uuid": "dc5d2e4a-ce5f-8272-2a4c-90a4bf905dec", "description": "ipsum consequat proident", "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "Lorem", "accessControl": { "read": [ "dolor", "in amet" ], "execute": [ "cillum eu Duis sed", "aute" ], "write": [ "dolor id" ], "manage": [ "elit occaecat nostrud exercitation Ut", "in", "tempor dolore", "commodo" ] } }, "preAutomationTime": 250000, "sla": -464034, "errorHandler": null, "font_size": 12, "created": "2005-08-27T19:01:06.815Z", "created_by": "116ea4921407b3a134e97245", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1950-02-12T06:11:01.466Z", "last_updated_by": "085562f2d88b338a59d9069c", "lastUpdatedVersion": "4.69.69", "tags": [ "quis ipsum labore anim esse", "proident occaecat sunt quis", "cillum commodo ullamco qui" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/Il" } ], "migrationVersion": 22282138 }
{ "$ref": "workflowDocument" }