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": [ "553cb67297b8eeafa8ed59c2", "b0d488ead39a2f267329f554", "a3a50048978aab6d56fb632a", "81ecea6e90982d07a8fcb808", "e70f1829daf454bbbd51dcd5" ], "x": -7123113.240253344, "y": 76332070.49036464 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "5e8ad57ca258a401f272519c", "a44b8b7297b62d84c7801f33", "68d8409ee47a280d74ca6ec5", "53e923632b363de3c7af2b3d", "6bbdc8e79ca211ef39bde7bc" ], "x": -60759274.37567974, "y": 58878287.69286299 }, "error_handler": { "name": "childJob", "summary": "dolor cillum in dolore", "description": "id laboris dolor adipisicing aute", "app": "amet", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/wW/~0/~1/~0/~0/~0" }, { "type": "encryption", "pointer": "/ekvw4FpU/~0" }, { "type": "encryption", "pointer": "/~0/~0/~0/~1/~1/yyUhamk/~0/~1/~1/~1" } ] }, "groups": [ "3931a77ff149ec9c4fe0b176", "8c810aa776e01ed96815b4b1", "4ca6c79ecaf37a0a6b561c20", "6706b60755a6add853da8e82", "f37a0c9258eade5a1450a132" ], "x": 65674277.47037873, "y": -15414078.711513653, "type": "operation", "gridCoordinate": { "x": -54134555.04166813, "y": 68348525.55308893 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ "7d92910d2a181ba077ec36b0" ], "_id": "4ff827ba-1b49-1c0d-3832-a37958b1f3c6", "description": null, "namespace": null, "errorHandler": { "type": "consectetur fugiat esse in", "name": "dolor irure proident nulla commodo" }, "font_size": 12, "created": "2018-03-11T18:11:56.279Z", "created_by": "2dcd73008f1000dd6a7ab33b", "createdVersion": "fugiat enim occaecat magna aliquip", "last_updated": "1999-07-18T15:20:00.57Z", "last_updated_by": "7fc8f3cba26528e606e3c40b", "lastUpdatedVersion": "sed quis ut commodo", "tags": [ "pariatur nisi non" ], "canvasVersion": 2, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/YJzb" }, { "type": "encryption", "pointer": "/cFdbvIUgoo/i/l/~0/ixNXXH6f7U" }, { "type": "encryption", "pointer": "/FJ2YGyW/bBJA.4EsLAc/Zcm59IX/~1/~1" }, { "type": "encryption", "pointer": "/~0/~0/~0/sc2/~0" }, { "type": "encryption", "pointer": "/KjGB2u4CJi/b4a6HIM/fx5H8Y/pP/~1/~0" } ] }, "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": [ "c697182d8f5a771b591bb26b", "e6d427784997909ca878c5c1" ], "x": -75287938.80764288, "y": 82457735.10467345 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "97a81c1c04ff6b706fd1d308" ], "x": 80805812.98872134, "y": 47434130.700867295 }, "error_handler": { "name": "childJob", "summary": "velit in", "description": "Ut Duis anim pariatur dolore", "app": "magna fugiat Excepteur ut", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~1/BK8Gyv/~0/~1/~1/prin/~0/zChXnn7FALZ/Gs" }, { "type": "encryption", "pointer": "/~1/~0/E5GgA0w/~0" }, { "type": "encryption", "pointer": "/cy5JJj5/~1/~1/J/~0/~0/R2r7We4ONM/~1/L/iFK" }, { "type": "encryption", "pointer": "/~0/Od/RR/NlTcYj8z+/PexZN6" } ] }, "groups": [ "802d4db520dd81817cf6aedf", "87e22f32a10b6d244a0edf17" ], "x": 17704956.620874718, "y": -20010866.71441655, "type": "operation", "gridCoordinate": { "x": -86013872.77528617, "y": 53387468.59811598 }, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ "44add65bb5391a5088eea7cd", "d5317a2aeced84173b217628", "086c29eba8f2d1ccc96d267c" ], "_id": "ba339e2d-5b0c-a3d6-2f18-91b8e8743076", "description": "laboris", "namespace": null, "errorHandler": null, "font_size": 12, "created": "1990-05-03T14:44:13.783Z", "created_by": "ae43f736081df3ec57e01ca1", "createdVersion": "dolor incididunt deserunt non aliqua", "last_updated": "1968-02-26T06:08:29.478Z", "last_updated_by": "213192a477824bce024e5a9c", "lastUpdatedVersion": "aliquip in ut", "tags": [ "quis", "cupidatat", "Lorem ad", "tempor qui ut", "dolore sed sit" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/zb4-aU/~0/~1/W0KRhoAk/xPP6Bw" }, { "type": "encryption", "pointer": "/TTmoiGhqj/myAbpTPJHU/~0" }, { "type": "encryption", "pointer": "/mnNp,4LEL//~0/~1/~0/wMkO/U8RFl1gm0A" }, { "type": "encryption", "pointer": "/QH/RE4CM.K3e4/~1/sF8hY39YDlX/wC/~0/OTV/~1/~1/~0/w" }, { "type": "encryption", "pointer": "/~0/d/~0/W3YzdTEMJn/NYgoxlo+/~0" } ] }
{ "$ref": "workflowDocument" }