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": [ "2d6f213e024cca5987c18735", "98ad4a58bf244a37d4ba6b8c" ], "x": -60657424.2952417, "y": 35387929.20383927 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "62ef2d17e207f19c4900c1b6", "1ad37baf2f0ee9f760e0d2b3", "fbc6579c73739b0a56fab9c2" ], "x": 15871157.670573592, "y": -38410992.67730921 }, "error_handler": { "name": "childJob", "summary": "cillum proident laborum pariatur", "description": "deserunt et Lorem anim", "app": "reprehenderit ut voluptate in in", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~1/~1/py/~0/F7HCjVUEsZT" }, { "type": "encryption", "pointer": "/fg1jF324C" } ] }, "groups": [ "f08e140fbcbeaf2d161f910d" ], "x": 53755689.02399653, "y": -26184835.929060087, "type": "operation", "gridCoordinate": { "x": 77642314.47872195, "y": -18504269.51554285 }, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ "5b96640fa3f1bb0515f8eb13", "ab8778b2cd61045102de6f9d", "e4704c217c9288b280ac051f", "dd97784ac91e266d98b9fa6f" ], "_id": "8b10251d-6671-3428-e16d-94b129ed259b", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "ut", "accessControl": { "read": [ "cupidatat mollit", "sunt voluptate commodo exercitation Duis", "quis in", "sed consequat Lorem" ], "execute": [ "reprehenderit Ut", "Duis laborum sunt", "dolor", "cupidatat tempor enim", "dolore qui enim eiusmod" ], "write": [ "cupidatat elit laboris proident", "et", "ut labore", "laboris labore et" ], "manage": [ "officia fugiat magna esse", "ex enim velit veniam in", "reprehenderit incididunt" ] } }, "errorHandler": { "type": "Excepteur sunt", "name": "labore qui amet in est" }, "font_size": 12, "created": "1986-04-13T07:23:12.746Z", "created_by": "e739ad3aaba9b0c8cc55330e", "createdVersion": "aliquip", "last_updated": "1964-08-07T23:40:18.334Z", "last_updated_by": "ceef517d957b39831214c953", "lastUpdatedVersion": "adipisicing nostrud", "tags": [ "dolor non dolore eiusmod", "quis dolor reprehenderit", "officia magna adipisicing culpa quis", "irure dolore" ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/geb9QHPAi/zjz0vuU/T/FpvX/sMNol/~0" }, { "type": "encryption", "pointer": "/BIh-2/~1/F/XnqMT14wEc/~0/~0/VgBeJCj" }, { "type": "encryption", "pointer": "/X/JCPjM/ANJF/~0/~0" }, { "type": "encryption", "pointer": "/dYCk.R3/~1/~0/pfj4/~0/~0" }, { "type": "encryption", "pointer": "/yPOp/~1/~0/PL.OXC6gFOL/Y/CuKxT/~0/SwXf/~1/Ki/soX" } ] }, "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": [ "908f501eb527edceb59bb4ca", "f9bc1e5cf7f6d6c7cd8a8aea", "76ca2eedeceb06f1b5bbf83a" ], "x": 14681044.946174413, "y": -92915014.31705993 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "ad90eebc250bede31cbf3ab6", "e9a1bd8061600a414790a7fe", "41e4420432bfc5a6272ec5c2", "69b08ef614497b50ca3876da", "5501850b8c1cb320919ccdf6" ], "x": -59002000.93826626, "y": -94018250.63112436 }, "error_handler": { "name": "childJob", "summary": "adipisicing enim reprehenderit cupidatat consequat", "description": "consequat", "app": "nisi dolor Ut", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/WAm5d-Ypg" }, { "type": "encryption", "pointer": "/~1/B-hS-/A/wXQ,R/ydMLibtao/KqAV" }, { "type": "encryption", "pointer": "/UYnI3Ui/~0/~0/yRq/~1/~1/~0/~0/H,R7diVTA/wIezHQ/Kxyv" }, { "type": "encryption", "pointer": "/~0/~0/~0/Vssf/~0/~0/UEtSzNG/mceR9Oh+" }, { "type": "encryption", "pointer": "/~0/L4ZWuF10/YK,tp3C/,F/LKODBtf/wPq64H/Ncb/~0/~0/~1/t0tPM3dt/~1" } ] }, "groups": [ "6a8eb6f0d5e876420360aab8", "224e7f83169198059c84f51b", "45c6caa7f58ca3f0a194cbd2" ], "x": -48555811.187415496, "y": -1736984.6650363058, "type": "operation", "gridCoordinate": { "x": -60993406.60158177, "y": -51905087.93088253 }, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ "d2cdfadba63803af58ff74d1", "4b23727a4cc30ecf7f407819", "724ac73ce95666cc6091da7a", "23f6f186632c7a376b148bfb" ], "_id": "7a3f8de3-37a3-aec4-4c4f-3618e1737d35", "description": "in dolore irure", "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "Excepteur voluptate proident ea", "accessControl": { "read": [ "et laborum voluptate", "veniam dolor minim Excepteur occaecat", "consequat non", "tempor officia ipsum veniam", "reprehenderit Excepteur velit" ], "execute": [ "eu anim dolor aliqua veniam" ], "write": [ "dolore velit consectetur do cillum", "est minim", "culpa nulla Excepteur", "adipisicing" ], "manage": [ "esse Ut magna pariatur dolore", "elit", "qui anim", "deserunt ut pariatur cillum labore" ] } }, "errorHandler": null, "font_size": 12, "created": "1987-05-11T05:02:06.546Z", "created_by": "7907da665ba892769c950d0c", "createdVersion": "laboris", "last_updated": "1986-11-02T00:44:47.191Z", "last_updated_by": "111335613091b2df703727de", "lastUpdatedVersion": "reprehenderit cillum officia Lorem sint", "tags": [ "Excepteur aliqua velit aliquip", "ut", "ea sunt exercitation minim" ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/gJI4" }, { "type": "encryption", "pointer": "/~0/Fc0WiiTm5Fx/ib0x/~1/RPdh..b-Y/P/~1/j,yn" }, { "type": "encryption", "pointer": "/~0/~1/uJ/tMryYbD6," }, { "type": "encryption", "pointer": "/pD+YRAPdw" } ] }
{ "$ref": "workflowDocument" }