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": [ "e48fff9880f6cbb957787609", "3ea8481b71954cee56688ea6", "0ab69423f32a5d5b37456e18" ], "x": 35331577.1416378, "y": 75732843.85293776 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "db169da9e5def69627e3af01", "f485d09bbc1d455d2979e79a" ], "x": 30660954.134309873, "y": 9527265.090845734 }, "error_handler": { "name": "childJob", "summary": "dolore voluptate aliqua elit", "description": "sunt", "app": "non ad culpa ullamco dolor", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/LLAp7F14/Gd4yFiWd/havSdR4idA/nF8gO/SyJd" }, { "type": "encryption", "pointer": "/~1/~1/U+NE585x0/~0/wM" }, { "type": "encryption", "pointer": "/ej/VEUb8/UOVyc.GAQ84/GVIMd,Qxh3/uYJ4POs0plN/~0/fj/~0/~0/~1" }, { "type": "encryption", "pointer": "/lODBTNc/PLTDi3/~0/~1/ka./~1/~1/~0/~0/nYQvG5" } ] }, "groups": [ "3b7b12be7c96bb5c86367563", "03f70081e57bb98734ac8bdf", "4e5bbdaff77fb0d6c756f0f3", "5a14cdfe545ac9f1656d50c4" ], "x": 83363643.20670757, "y": -94976667.0266591, "type": "operation", "gridCoordinate": { "x": 93879588.34419522, "y": -37659144.827771485 }, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ "1b688356dd4866b06bbb11b4", "6fc4c6713e9aa3c2c349c2b9" ], "_id": "bde8193f-e3c8-5258-ad64-8ff8f960d824", "description": "minim do reprehenderit", "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "et Excepteur", "accessControl": { "read": [ "labore", "quis aliquip", "sed elit incididunt" ], "execute": [ "dolore in amet" ], "write": [ "incididunt laborum fugiat eu culpa", "ut anim", "commodo exercitation Excepteur dolore consequat", "cupidatat" ], "manage": [ "ullamco minim elit Lorem nostrud", "eu dolor", "elit dolore", "ullamco officia", "sint" ] } }, "errorHandler": null, "font_size": 12, "created": "1976-11-20T12:57:15.483Z", "created_by": "d080e59298e4e54c91cb8590", "createdVersion": "minim sed sunt", "last_updated": "1949-04-07T10:43:56.228Z", "last_updated_by": "39f84f58e327d163ccd1fcd1", "lastUpdatedVersion": "dolor dolore", "tags": [ "id dolore in", "voluptate ad proident sunt", "qui amet", "qui", "laborum non Duis" ], "canvasVersion": 2, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/mj-qNJV/~0/~1/~1/IrdUf2MT5Bd/~0/u.nQ/n0Hu" } ] }, "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": [ "091ee738296b298e8723a888", "dedda4e34d04accc6498859c", "1dccee38464660a5e56d7651" ], "x": -37040246.08177634, "y": -49300936.32271664 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "763cd15fe6193563e067f74c" ], "x": -61956859.05607604, "y": -96169956.97010128 }, "error_handler": { "name": "childJob", "summary": "est enim quis ea", "description": "ut", "app": "sit dolore nostrud consectetur nisi", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/kI-oM1UzI+/~1/~0/~0/~1/jBlJmxUz0rE/NAQx0lN/vBrzOzs/EQi0Ydt3" }, { "type": "encryption", "pointer": "/~1" }, { "type": "encryption", "pointer": "/Rx8+/~0" }, { "type": "encryption", "pointer": "/pk/~1/~1/~1/~1/~1/~1" }, { "type": "encryption", "pointer": "/L0VJ4p/BSP/rrKue/g,W9x/~1" } ] }, "groups": [ "71156b1562ed7a2e7538f74b", "720f656108d21c7598f62f52", "d06278014a32d4c3b175407a", "aa12ef20e45f14f52637dae1" ], "x": 56594530.97766599, "y": -45559.78892843425, "type": "operation", "gridCoordinate": { "x": 78743810.73241067, "y": 42167901.095308304 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ "37d5ece1b5bdacea9fb7fc5e", "faf474b2a50d8aa9b32ff979" ], "_id": "a14235df-4838-f4b1-9747-2b3b21c2ab68", "description": "labore minim ullamco", "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "voluptate sit", "accessControl": { "read": [ "minim", "deserunt ipsum dolore", "tempor", "nostrud qui cillum", "aliqua occaecat" ], "execute": [ "ut dolore elit in mollit", "nisi", "anim", "incididunt adipisicing velit ad" ], "write": [ "proident id", "incididunt deserunt", "minim" ], "manage": [ "Ut aliquip ex", "laboris", "eiusmod pariatur ad" ] } }, "errorHandler": { "type": "ex eiusmod sit", "name": "ullamco sit officia sunt" }, "font_size": 12, "created": "1997-07-17T23:26:53.13Z", "created_by": "e1e1f8d58511be2efbbb7945", "createdVersion": "id officia", "last_updated": "1965-12-11T09:09:03.208Z", "last_updated_by": "f7b4ec4a9b4ffa1797940192", "lastUpdatedVersion": "non Duis ut exercitation eiusmod", "tags": [ "ut commodo exercitation Ut", "exercitation aute esse amet occaecat", "enim esse minim laborum", "mollit pariatur ut sit", "quis nulla dolore" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/LRgz6/VsH/-h" }, { "type": "encryption", "pointer": "/~0/fsjC,/~0/IXaAFGZVtjb/tRpxLXOuv/QoZH+DZe/~0/Yx-/FXWERwo/~0" }, { "type": "encryption", "pointer": "/yC6DL5Cmq/~0/o+epiDYuW/~1/~1/~1/~1/hju/FSsx" }, { "type": "encryption", "pointer": "/~1/s.M+yHe/~0" } ] }
{ "$ref": "workflowDocument" }