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": [ "78b89d158819da380a67fa10", "4d8c660c741abb638f3d3d11", "d1bc2497a2b29b8d6319e290", "db5ba2fb6be9ce47afea4197" ], "x": -80431200.23335342, "y": -96217932.63895993 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "52de8a13501697045b4cff3c", "b2a23e4c8bb5765f2c7999fa", "3e2dc1281827e683c9bb5100", "2bb1424de998b6479934251c" ], "x": 83116107.94150677, "y": 14134757.366022483 }, "error_handler": { "name": "childJob", "summary": "magna cillum incididunt fugiat", "description": "velit ipsum Duis eiusmod", "app": "dolore ea Duis nostrud", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1" }, { "type": "encryption", "pointer": "/MPmtK,/IW6cs.aT/lTp12/~0/Vbmb-Ca6/a3Oc,At6d9" }, { "type": "encryption", "pointer": "/YRoW2,/~0/~1/sfpOhFAeo/~1/~0/~0/~1/TW2MoGyN/p12Cer/~1" }, { "type": "encryption", "pointer": "/~1/vyMNJ/x/SoeDx8J-P87/~1/~0/MZBMD,Q" }, { "type": "encryption", "pointer": "/kHVk-6pB./~0/Cm0kC.yTa/~1/T/QLldcfEuz-/~1/qAUxYM/~1" } ] }, "groups": [ "94598d371b1d4e9b22c1b9df", "4430245f4914b9656d8703c9", "8176ee0b8ecb76c4d4503ec3" ], "x": -64567831.77413623, "y": -93552229.82593845, "type": "operation", "gridCoordinate": { "x": 75140607.03425276, "y": 64149234.28511062 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ "abf4998b1a46380b36ac45ad", "f1634c34a0e828d1b2c7d876", "26ee19fc881855d8d4915ed3", "8880988f72d74cc68cee7c32", "cdd3b64e43fc41fd1bdc9b25" ], "_id": "13de30d1-21fb-ef3e-eb90-1d7aebc9cc83", "description": null, "errorHandler": { "type": "dolor id", "name": "anim et Excepteur" }, "font_size": 12, "created": "1979-07-25T17:45:07.57Z", "created_by": "782331872f1d2a02ce70495d", "createdVersion": "Excepteur nulla", "last_updated": "2019-09-20T19:56:23.47Z", "last_updated_by": "c85930b406244ba0acecc508", "lastUpdatedVersion": "ipsum", "tags": [ "Duis fugiat occaecat ipsum", "consequat in in adipisicing", "in sit magna", "in dolore", "in deserunt enim consectetur" ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/qTl/~1/~0/~0/~1/~1/aqbi3axvNK" }, { "type": "encryption", "pointer": "/~0/~1/~0/~1/Mu/~1/hD,e+16/B0wG2Kd2AIe/~0" }, { "type": "encryption", "pointer": "/~0/zQ9394NRtWv/hbS/C/~0/~1/a23v0pAK/~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": [ "6324207eb15a041eace584d0", "ac8d4eaf90748a84af2e3eed", "3d2c3ca491183ea6f75a00ef", "5f4c0ece37b67f258d766381", "827a6e28c9ee5b55df84003d" ], "x": -84471727.25369674, "y": 6376130.187216148 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "b9f910de23731c5cb0788348" ], "x": 57876492.485562116, "y": -60940016.31767973 }, "error_handler": { "name": "childJob", "summary": "deserunt officia velit consectetur", "description": "Excepteur ut tempor", "app": "Duis aute non reprehenderit nulla", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/~1/~1/~1/~0/RCLvr,JNTl/~0/TLq8,M/bqa3rCQ" } ] }, "groups": [ "9aa0352d2a242b25fe56a563", "11c96ddab0c83c557257d4ef", "b33e5c2c72f818c047d02d16", "928b8f1856516b860584f83c", "efa8b5be39f78efb3565b70b" ], "x": 7676559.256201237, "y": 84783956.12256163, "type": "operation", "gridCoordinate": { "x": 62022359.42918733, "y": 70404892.91842556 }, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ "a6797ed2ac3cf700675726e9", "cf9d456d343fa1897d4a4ae4", "baf2d87f6ec56f89890fc2c2", "f32db566599e51fa204c25e7" ], "_id": "0afe14a9-cc1a-2f0b-94f9-f9a0be3ee1f3", "description": "voluptate Ut anim", "errorHandler": null, "font_size": 12, "created": "1964-04-17T22:48:54.342Z", "created_by": "2e0cc20461ed6fa6d3b32cd1", "createdVersion": "ipsum", "last_updated": "2010-04-28T21:37:56.801Z", "last_updated_by": "e41463e2bad5d02a60fde25f", "lastUpdatedVersion": "in Lorem dolore", "tags": [ "ut dolore in amet ullamco", "irure", "dolore eiusmod", "velit est eiusmod mollit" ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/~0/vUwz35ZP/~1/v-ho2O/SN.t/pubDDCmJ/~1/mI/~0/~0" }, { "type": "encryption", "pointer": "/cas3mnl/p/~1" }, { "type": "encryption", "pointer": "/EKxMrERUT2V/~0/z/~1/R-/~0/~0/v2VfdJ/LbTxKR8fT/Zm9e8ik" }, { "type": "encryption", "pointer": "/~0/~1/~1/~1/l7dbyKIb+z/RIUnYX4x4y/nK+r/emZ.9FXR" }, { "type": "encryption", "pointer": "/~1/yhtz1Y8/~1/~1/VpV-X2jYp/u/vG7C5s" } ] }
{ "$ref": "workflowDocument" }