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": [ "3f0d4718cecac23ea64abbbd", "9fca562ae1e830c1322fac84", "7cdd3080a07bfb322a5c7ff3" ], "nodeLocation": { "x": 98864004.28952307, "y": -54781755.01575895 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "c819cd1da4b47cce8fc4da99" ], "nodeLocation": { "x": 16501521.548800334, "y": -1052406.2020825148 } }, "error_handler": { "name": "childJob", "summary": "Lorem anim voluptate", "description": "Lorem consectetur sed", "app": "Duis aute ut labore amet", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/eMfJFvuY8/m7FHj4Y1G/~0/oCjX0E,/~0/~0" }, { "type": "encryption", "pointer": "/bYfbbvB/~1/~0/~0/~1/~0" }, { "type": "encryption", "pointer": "/~1/HfYbbepU/~0" }, { "type": "encryption", "pointer": "/~1/Yx.8xH" } ] }, "groups": [ "208858330a82d79a06ba99bc", "7ef95610e9fc6dd249802842", "8a3c864df39ce244e8c37019", "01b19264f86180e20c7b1ab5", "e6d8cbfe538bf7236b4d4a27" ], "type": "operation", "nodeLocation": { "x": 95802698.1246919, "y": 10708141.651049674 }, "deprecated": false, "scheduled": false, "retrySettings": { "state": [ "error", "failure" ], "autoRetry": true, "limit": 10, "delay": 2000, "count": 5 } } }, "transitions": {}, "groups": [ "f24e29eb60dfee1382c6945b", "8ba14a0f98092b65ad58cc56" ], "_id": "f4136724-571b-a8da-277f-42190858a2b7", "uuid": "2765350f-6a72-7345-7c88-d09fe68f7599", "description": "cillum est nulla sunt", "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "Ut officia dolore minim esse", "accessControl": { "read": [ "cillum et ad ea", "voluptate qui id", "eu", "ad commodo tempor", "cillum qui sunt labore cupidatat" ], "execute": [ "sunt", "mollit eiusmod consequat", "consequat minim", "irure", "Duis proident" ], "write": [ "irure Excepteur velit consequat" ], "manage": [ "laboris in nulla", "ut voluptate sit Duis adipisicing", "Excepteur exercitation labore consequat", "eiusmod sunt aliquip incididunt" ] } }, "preAutomationTime": 5000, "sla": -80824026, "errorHandler": { "type": "sit esse est dolore fugiat", "name": "adipisicing minim veniam sint" }, "font_size": 12, "created": "2011-08-21T16:29:01.376Z", "created_by": "894b6a83006bad041032917d", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1980-10-30T03:57:38.21Z", "last_updated_by": "f78f0e13a3f4f2520daded87", "lastUpdatedVersion": "4.69.69", "tags": [ "et anim nisi aliqua tempor", "cillum ipsum non elit ad", "nisi voluptate culpa", "mollit voluptate pariatur ut reprehenderit", "commodo proident tempor" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/hJVdE1/~1/~1/~0/~1/~0/~0/w+zXfn5fX/~0/~1/fWgk" }, { "type": "encryption", "pointer": "/~0/euTqE5eNHPI/~1/~1/~0/MNq/A/VD68.Glp/~0/~1" }, { "type": "encryption", "pointer": "/~0/uxE/9/N/~0/~1/e/~1/Wx/UgT9" }, { "type": "encryption", "pointer": "/J/h/GKQ/iCHTdiSrRI/K/kbnYSiiu/POQwfuDz/~1/~1/~0" }, { "type": "encryption", "pointer": "/~1/~1/~1/Gee2hgd2/~0/Bu" } ], "migrationVersion": 99631127 }, "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": [ "ec1aaecba23c132946804737", "1a9c0fbea387e1a6be7d236d", "6db4ed75c1a2a721549fb045", "9c6dbb3142cc8a0c8832e0dc", "8adf26476390827288dc7fcd" ], "nodeLocation": { "x": -38205253.73226711, "y": -49914916.30293492 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "2befcafdb2b3ce610b19cc38", "b89d42a22de48b30c9841c45", "edb05a9fbac94a7d029053f2" ], "nodeLocation": { "x": -11851879.497807398, "y": 35212055.61416122 } }, "error_handler": { "name": "childJob", "summary": "Lorem non in in eu", "description": "enim veniam Lorem quis ipsum", "app": "laborum esse ut est", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/LS2CK6Z/QRbxc3S-Yp/j,HeH" } ] }, "groups": [ "ddae6e87fc14d23ad3a0ff39", "fec13ae21617abc472428cfb", "286354f2dd3f5a66e84d503c", "919ea1f30cc04df0c1ab6324" ], "type": "operation", "nodeLocation": { "x": 81540535.22126889, "y": -4877353.722144306 }, "deprecated": true, "scheduled": true, "retrySettings": null } }, "transitions": {}, "groups": [ "38bddfd7aa2258b2a5f2a623" ], "_id": "ba139bd6-6837-9544-294a-344f040b6345", "uuid": "fddc7feb-2209-31e9-2e16-4f71a20c7949", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "laborum Excepteur fugiat", "accessControl": { "read": [ "Lorem Ut voluptate in" ], "execute": [ "dolore in reprehenderit velit", "Lorem veniam ad" ], "write": [ "commodo sit", "sint laborum aliqua Excepteur", "culpa amet dolor ad irure", "nulla commodo ut Duis est" ], "manage": [ "aliqua velit incididunt", "sunt ipsum dolore ullamco" ] } }, "preAutomationTime": 5000, "sla": 1713751, "errorHandler": null, "font_size": 12, "created": "1963-08-23T21:33:29.458Z", "created_by": "d1ba9c5ce984a70d68321de7", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1950-03-20T05:15:27.667Z", "last_updated_by": "3dc2d3b214222efd2f330bb0", "lastUpdatedVersion": "4.69.69", "tags": [ "Excepteur voluptate nisi esse consequat" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~1/mH" }, { "type": "encryption", "pointer": "/f2.IwT/Qwxw/Dnuia,h/R4E/~1/m7V/Ta-XuyRxV/K827f8F,Z" }, { "type": "encryption", "pointer": "/~1/k/~1/~0/~0/~0/p" } ], "migrationVersion": 36645628 }
{ "$ref": "workflowDocument" }