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": [ "f23ec1cc753740cf484fe253", "a9c25863453ff1115180b538", "188f2696a7a4ab8bfd688df4", "50dfcc0110baab23af7f6841" ], "x": 52708328.3577849, "y": 64326937.96802086 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "d9b20dc8707600f2c5ccba42", "871002e00f96b15a8c638672" ], "x": 10661796.195335075, "y": 50771365.42335206 }, "error_handler": { "name": "childJob", "summary": "anim", "description": "nisi Duis", "app": "ut ex", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/E,R,EVxRT" }, { "type": "encryption", "pointer": "/tY7WE7W66/~0" }, { "type": "encryption", "pointer": "/L71/W+LYpL,/A0O/iz1dpXasO/~0/~0/~0" }, { "type": "encryption", "pointer": "/~0/IsnOxoyXltw/~1/xxH+FYJv4O9" } ] }, "groups": [ "b8bf941c9c4e34a23a1d2792" ], "x": 78332637.39154112, "y": -71020446.4807513, "type": "operation", "gridCoordinate": { "x": -2888323.842373982, "y": -6183867.889942586 }, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ "e02b9bfbd15586bdff2d5b13" ], "_id": "083fa1fd-c50f-d6e4-e4d5-7b4fde71779a", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "dolore", "accessControl": { "read": [ "deserunt dolore esse", "esse", "dolor qui" ], "execute": [ "do in cupidatat", "dolor fugiat nisi", "ipsum aliqua", "incididunt elit", "laboris" ], "write": [ "esse Excepteur minim elit", "laborum labore aute culpa pariatur", "Ut ad in officia dolor" ], "manage": [ "officia dolor", "velit", "sit ut voluptate nisi", "eu cupidatat ex sit", "do dolor ad" ] } }, "errorHandler": { "type": "sit", "name": "anim velit eiusmod nulla enim" }, "font_size": 12, "created": "2022-05-19T01:04:34.858Z", "created_by": "9765d5478111dbb177963ef9", "createdVersion": "do tempor sunt non", "last_updated": "1990-11-30T05:56:30.186Z", "last_updated_by": "9eb7b66b9ef80ad1995bec0d", "lastUpdatedVersion": "eiusmod ad commodo", "tags": [ "magna consequat labore pariatur cillum" ], "canvasVersion": 2, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/~1/~0/VYW3V,/LJa.rJ3OC/TkZod/~0" }, { "type": "encryption", "pointer": "/YmNql/JQq41HWp32" }, { "type": "encryption", "pointer": "/~1" } ] }, "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": [ "71fd31b85836a156978e1872", "34cc608bca4363cc565ea890" ], "x": 98667751.15476218, "y": 7352624.717781171 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "70cbfcdab88c7797f7eb6d4f", "a8e57fa0a379465472ce106b" ], "x": -2394310.913049668, "y": -93152649.56451292 }, "error_handler": { "name": "childJob", "summary": "in et", "description": "dolore commodo", "app": "occaecat", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~0/~1/n-1XQQi/~0" }, { "type": "encryption", "pointer": "/~1/w3oW4/~1/~0" }, { "type": "encryption", "pointer": "/WwJhW/LgP/LMpc+5FzwJ/~1/~1/PNZiisKWn," }, { "type": "encryption", "pointer": "/~1/~1/WvcPe/~0" }, { "type": "encryption", "pointer": "/~1/~0/RgzE5,9/qYp64PS/Y6/j+/xjvGqCs/gnLma,/~1/~0/Kn/6cf07" } ] }, "groups": [ "9c6212207ed581a4bcf8352a", "a415498e4575916e7e8afb3f", "242d85291926e3855acb776a", "8a2a0e2fa992a685a4cc0a56" ], "x": 69215207.90144634, "y": 69956362.87860605, "type": "operation", "gridCoordinate": { "x": -87584932.83484717, "y": 56349062.66753927 }, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ "1096d9fa0f42a1e9ad34513a", "5fdaa99d707ea5dd38496ddb", "1f94999a188b30b1264b67d0" ], "_id": "dc0715b6-3b42-de1d-08bf-705a181e2ce7", "description": null, "namespace": null, "errorHandler": null, "font_size": 12, "created": "1985-09-09T07:02:35.066Z", "created_by": "c3177512820a0e6f3208c87f", "createdVersion": "ad dolore velit consequat", "last_updated": "1989-05-04T04:20:50.151Z", "last_updated_by": "2fecdb345a8e97f079b36203", "lastUpdatedVersion": "nisi reprehenderit", "tags": [ "adipisicing aliqua ut reprehenderit cillum" ], "canvasVersion": 2, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/Tg3/ZdaS0inpC/ZN/~1" } ] }
{ "$ref": "workflowDocument" }