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": [ "d493b3a48f05babebc94e0c7", "d35c9579ae335cedbb3838c6" ], "nodeLocation": { "x": 52397849.317037225, "y": 62673422.85514212 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "c988480ba868a12f93748dc4", "695f937e8189302698b7ba01" ], "nodeLocation": { "x": 38734605.97628382, "y": -41426486.64828759 } }, "error_handler": { "name": "childJob", "summary": "aute", "description": "irure ex ipsum", "app": "fugiat", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/DEfw3a,xX/~1/~0" }, { "type": "encryption", "pointer": "/~0/~0/~0/~1/~1" }, { "type": "encryption", "pointer": "/~1/~1/~0/~1/~0/~0/K-" } ] }, "groups": [ "3ac58901462c0906ce923959" ], "type": "operation", "nodeLocation": { "x": 31695585.724333644, "y": 74013345.29426965 }, "deprecated": false, "scheduled": false, "retrySettings": null } }, "transitions": {}, "groups": [ "68cc6d670aa9bab2b9d414e1", "eb00ace4039d6d4c153a34b4" ], "_id": "af67817f-de16-064b-a3e5-e5efed7758e6", "uuid": "7d0bf4f1-82e7-85d2-6546-ed09943b9e8f", "description": "Duis Ut", "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "eu nisi cupidatat", "accessControl": { "read": [ "Lorem quis", "ut dolore do", "Ut esse", "dolor commodo dolore" ], "execute": [ "cupidatat nostrud occaecat ullamco" ], "write": [ "aliqua", "aliquip ea", "laborum culpa aute" ], "manage": [ "officia ad ea", "sed culpa incididunt eiusmod ea" ] } }, "preAutomationTime": 250000, "sla": 66152717, "errorHandler": { "type": "exercitation non", "name": "mollit et" }, "font_size": 12, "created": "1964-10-09T19:26:16.051Z", "created_by": "94edd2990caacd0682cad198", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1979-10-09T19:25:42.289Z", "last_updated_by": "05bd7757b90a1f2ae51e9f7b", "lastUpdatedVersion": "4.69.69", "tags": [ "aute Duis cillum sit", "amet ut dolore", "in cupidatat", "labore occaecat velit elit" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/~1/~0/cilp8/~1/~1" }, { "type": "encryption", "pointer": "/eChG/q7mQ8/dcxyo7x00/~1" }, { "type": "encryption", "pointer": "/GZD/~1/~0/~0/~0/~1/~1" }, { "type": "encryption", "pointer": "/~0/~1/j1z4cT2S1RF/~1/pu7.VjZUP/~0/~0/rAseO-H6/~1/V3-PSHg/~1" } ], "migrationVersion": 60498798 }, "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": [ "0acab97ff574deac79b78da2", "91ea72362fafd5a4c10b37eb", "de2e6a66d6933c44924c2282", "ef71c54e56af3cd5197892c7" ], "nodeLocation": { "x": -90741560.01200482, "y": -403498.25469201803 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "173dd07714a1c5447b4c3210", "9734ff4772f821dd2a1d3993", "25c91e0cecf0bdb2c528502b" ], "nodeLocation": { "x": -24013607.012998953, "y": -8849438.720693886 } }, "error_handler": { "name": "childJob", "summary": "nulla", "description": "in nulla minim esse exercitation", "app": "in", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/sFTxRhEiJh/~0" }, { "type": "encryption", "pointer": "/~1/~1/~0/~1/~0/t/~1/~1/~1" }, { "type": "encryption", "pointer": "/~1/j/pGk/~1/~1" }, { "type": "encryption", "pointer": "/~0/nQnH6BDut/KI/~0/~0/gasau/~1/~1/NF3+w" }, { "type": "encryption", "pointer": "/ilWfy/~1/iWUao-Qz" } ] }, "groups": [ "e8b10db65b71a2151bc0d7b6", "1c33e01fa13a729ea8af40e3", "bb795fb0b73e7b7c6470129b" ], "type": "operation", "nodeLocation": { "x": -43115739.89709423, "y": 89061223.25062507 }, "deprecated": true, "scheduled": true, "retrySettings": null } }, "transitions": {}, "groups": [ "8a79bc921073cdf6c3c5df30" ], "_id": "0f8df5d4-b3f2-2930-674e-3d491234303a", "uuid": "df3e88ac-434d-538c-35e1-70f10d2bc635", "description": "dolor reprehenderit laborum sit aliquip", "namespace": null, "preAutomationTime": 5000, "sla": -41634600, "errorHandler": null, "font_size": 12, "created": "1969-11-05T15:09:50.134Z", "created_by": "bf587de6bf7cc566d9d5cc27", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2019-11-21T08:48:20.116Z", "last_updated_by": "666655e6acdfa1c11ee3a86b", "lastUpdatedVersion": "4.69.69", "tags": [ "nulla minim", "sed dolor", "dolore amet", "velit culpa ex", "reprehenderit velit veniam consectetur" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/ELTl/~0/~0/~1/NU" }, { "type": "encryption", "pointer": "/~1" }, { "type": "encryption", "pointer": "/C8iFV/no/WTM-olgl/~1/~1" }, { "type": "encryption", "pointer": "/~1" }, { "type": "encryption", "pointer": "/HNDP,jRc-/aZ+2/~1/~0/rq4HKXDI/b/B/~0/~0/~0/TM/v6" } ], "migrationVersion": 1229868 }
{ "$ref": "workflowDocument" }