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": [ "232cd6445479466c75539ea2", "3a35f9b5477761fcba0516ac" ], "nodeLocation": { "x": 8772741.50146778, "y": -11752152.919932574 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "5519cd20d1a3492164444db0", "d6d70b2db4c5268b337e29e3", "5be439d512a341959da13ef7" ], "nodeLocation": { "x": -35127353.97082341, "y": -24406167.609431818 } }, "error_handler": { "name": "childJob", "summary": "aute officia nulla", "description": "nostrud non in eu", "app": "velit", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~0/Fn6Due3kyT/~0/~0/~0/ixJvE/bnb8xjYI/OHg/ae/a-,njy" }, { "type": "encryption", "pointer": "/vWbOkav/~1/~0/Ex,8cYD6IVT/~0/pE1,Y/~0/~1/xW" }, { "type": "encryption", "pointer": "/~0/~0/T0MNM+Ia7xq/Q/~1/QENYb//~1" }, { "type": "encryption", "pointer": "/oD57q8GqZFl" } ] }, "groups": [ "a5ea7ff489135ab749a86d8c", "3bf7d969521e09495c8cebd5", "4b3c37f7fa0871bec161fb47" ], "type": "operation", "nodeLocation": { "x": 62163417.29014677, "y": -1204284.813035801 }, "deprecated": true, "scheduled": false, "retrySettings": { "state": [ "error", "success", "error", "success" ], "autoRetry": true, "limit": 20, "delay": 1000, "count": 5 } } }, "transitions": {}, "groups": [ "2586fe5c0aa49cde9ac27bfd", "dcc839e26e2de5167c0bd112" ], "_id": "de6554e5-4a51-661d-76a0-b419737783dc", "uuid": "3134ea77-51a7-680f-fa8b-282c04b573d2", "description": "nulla sed elit non", "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "sit reprehenderit in", "accessControl": { "read": [ "in consequat", "minim amet et" ], "execute": [ "occaecat nisi tempor", "ut", "do quis elit et amet", "in" ], "write": [ "fugiat culpa nostrud ut voluptate" ], "manage": [ "adipisicing cillum quis", "velit ipsum", "laborum dolor", "culpa elit cillum ut", "dolor" ] } }, "preAutomationTime": 5000, "sla": 82450131, "errorHandler": { "type": "ea in", "name": "culpa" }, "font_size": 12, "created": "1991-11-18T09:48:00.462Z", "created_by": "c604648d3480dc129c68e195", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1960-05-17T17:20:57.507Z", "last_updated_by": "bfb294f27da8535bcc6e5b11", "lastUpdatedVersion": "4.69.69", "tags": [ "anim", "velit", "et ad ut", "deserunt" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/HK/Pu9ChA0yQE/ue6-O7M/~1/~0" }, { "type": "encryption", "pointer": "/eqf,Y/ZeJXZlZyIXa/SWy4/wDLL4/~0/~0/~0/~0/ZU/~0/h3/~1" } ], "migrationVersion": 66885220 }, "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": [ "c0ed00b806b39dc2caa688dc", "196c2d2cafd2119195452066", "f6424bd87866da418a5b5fcd" ], "nodeLocation": { "x": -6777418.109159067, "y": -7067557.482285872 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "24be5520718a5adb9545116b", "ba4db254798b768995eeb00a", "c2a97f20583eea596147fb21" ], "nodeLocation": { "x": -81485220.45773384, "y": -62818814.18561768 } }, "error_handler": { "name": "childJob", "summary": "in dolor Ut ipsum", "description": "ut", "app": "et eiusmod", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/PA/~1/~1/fu2lBr" }, { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/fP9/~1/~0/b/Klu1gvem-Vo/Rv2j5zY25v./FSE.Wqra/x" } ] }, "groups": [ "1b7aa4a4751522f2c503b622", "192c4f34826b8ee1c3550330", "a9917f550bba731339add36f", "4c30f20f1fb783fda2a17051" ], "type": "operation", "nodeLocation": { "x": -40809350.42200049, "y": -99369109.38458125 }, "deprecated": false, "scheduled": true, "retrySettings": null } }, "transitions": {}, "groups": [ "1a7484a880e8c99516722f05", "e4aa3f6c877a2665af1a0409", "9b153b6679c3197f85f2e209", "f3311d1d68ef526a5a6f43d8" ], "_id": "79106ae7-8829-0c1e-6e84-d6961f230235", "uuid": "e3b6e77b-7e5d-be27-c5c3-4be9e9403c37", "description": "dolore", "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "irure dolor proident Lorem labore", "accessControl": { "read": [ "dolore" ], "execute": [ "Duis amet reprehenderit sit sed", "reprehenderit", "nostrud nulla dolore ea", "fugiat", "voluptate aute eiusmod" ], "write": [ "qui eu magna aute", "tempor est" ], "manage": [ "in elit labore", "commodo nostrud", "exercitation magna nostrud anim" ] } }, "preAutomationTime": 5000, "sla": -73358248, "errorHandler": { "type": "sunt deserunt consequat", "name": "labore ut cupidatat mollit enim" }, "font_size": 12, "created": "1985-04-22T04:18:26.597Z", "created_by": "293c1ec1bbaefc8d23796597", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1975-01-11T04:14:20.198Z", "last_updated_by": "9e90d4a247179908fe6fe1e3", "lastUpdatedVersion": "4.69.69", "tags": [ "culpa et pariatur ipsum", "aute eu occaecat" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/eUocfMzD/bpHt+T/AR9wgOol/~1/bmirug" }, { "type": "encryption", "pointer": "/~1/B9p/np.szqRU/U/~1/S69V/CqHlX.Z/~1/~1/rFcgKCD/~0" } ], "migrationVersion": 57880311 }
{ "$ref": "workflowDocument" }