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": [ "e2612db1dd74091835a774db", "be4528acb3f4a4deb1cd7494" ], "x": 97557838.53848526, "y": 71379847.35934862 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "4bb6479136098ea2632df6ac", "ceb54e999c44dae37ac3be16", "3db9a7034274f8c24274f5a0", "83f05f6cc6b8808f25e6fdcd", "bd9316a04e60635940ac7671" ], "x": 3166196.1579958946, "y": 59617556.10055125 }, "error_handler": { "name": "childJob", "summary": "mollit voluptate dolor ut", "description": "aliqua", "app": "quis commodo mollit labore", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/hn7duJF/~1" }, { "type": "encryption", "pointer": "/UqRe20/j/ikvMl0S/YpX/~1/R0GPu/~0/Z/A/~1/u8Qzrci" }, { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/Eb/~1/~1/~0" } ] }, "groups": [ "09b9842a17a04700dbbc37e4" ], "x": 34803600.57616997, "y": -11276738.380609125, "type": "operation", "gridCoordinate": { "x": -75931711.1148063, "y": 40241213.02151814 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ "06c773ba7772381d023bd339", "c4cfd244aa5426e5a5e37452", "ba59ed285bffaa5afb8bb164", "f838cc261644ce19f3a8548b" ], "_id": "57307964-764c-f7c8-f730-2e1e12005189", "description": null, "namespace": null, "errorHandler": null, "font_size": 12, "created": "2003-08-17T21:57:03.723Z", "created_by": "cd1c3e7be0af90c153a726ef", "createdVersion": "eiusmod nulla aliquip", "last_updated": "1994-04-12T19:39:34.819Z", "last_updated_by": "2003e4a34673b8453241b281", "lastUpdatedVersion": "ea quis", "tags": [ "do ipsum exercitation quis" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/j-9VIW/~0/~1/zwABbJ5i/~0/~0/efZT0gN/eu-920Kr" }, { "type": "encryption", "pointer": "/icf/Jp/EFvA/~1/~1/~1/vTBj1ROwhJ2" }, { "type": "encryption", "pointer": "/~0/~0/cC/E7XA9I/D0hKVs2Y//KR5/~1/t/YjucBu+S0/~1" }, { "type": "encryption", "pointer": "/~0/U68U9QRTwc" }, { "type": "encryption", "pointer": "/F8EtyJ4Z29v/hijB.RtC/-3/wRM1Tff/ca/TY5n8r+4gxV/~1/jGjbTvRJ/YxW3c1TweG9/~1/LvHg/~0/SVfVD54pYfx" } ] }, "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": [ "829ba1a6685ef63fe1956fb9", "723a2f0882ed8f816d694c8d", "65c6816f4dce71de4aa5b19a", "df02cbf35b0d38494fed8cce" ], "x": -950484.8900357783, "y": 94699706.09139752 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "4c68e97235129c5602a19820", "16ad0de9758dc98bc43eaabc", "29b1172d86e2b0ce31c203b8" ], "x": 1164824.8772580922, "y": -29619510.966444016 }, "error_handler": { "name": "childJob", "summary": "fugiat aliqua magna irure tempor", "description": "ut qui id magna velit", "app": "commodo irure", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/OA/~1/vXStWfS/~0/n/tnidcHsB/E/jg" }, { "type": "encryption", "pointer": "/~0/g6yp/~0/~0/~1/~0/I0E//cN78/xPZI/e4EBPqSMZNz" }, { "type": "encryption", "pointer": "/~0/~1/Vp8t-b/~1" } ] }, "groups": [ "5a56b511d5953c416844ed24", "756325d433ff3b17093059b5", "67ce490858bb681ce272e62c", "ca9b90c5f5e632cdcc15b699" ], "x": -41430952.19049498, "y": -26434930.302299887, "type": "operation", "gridCoordinate": { "x": 93323587.46656916, "y": 95063109.79524234 }, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ "ecfa91bcc29c16c1a32e66f7" ], "_id": "48bb59a5-2782-102e-59e8-ed798c19429e", "description": "ea adipisicing", "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "ullamco dolor", "accessControl": { "read": [ "officia occaecat labore nisi ad", "voluptate" ], "execute": [ "non", "Ut in" ], "write": [ "magna", "Ut veniam cupidatat laboris nulla", "qui exercitation ea", "dolore esse consectetur nulla dolore" ], "manage": [ "reprehenderit magna", "aliqua amet sit quis", "pariatur aliqua eiusmod" ] } }, "errorHandler": { "type": "do proident dolor", "name": "occaecat commodo in minim" }, "font_size": 12, "created": "2015-07-21T05:59:20.111Z", "created_by": "3e1cfafe42692c58dab4404f", "createdVersion": "quis sit laborum", "last_updated": "1960-10-09T20:40:40.516Z", "last_updated_by": "137cb098f6a33b13d9517586", "lastUpdatedVersion": "Duis aliqua incididunt", "tags": [ "occaecat minim eu dolore sunt", "ut amet", "velit id cillum aliquip eiusmod", "dolor aute ullamco in Duis" ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/uzUNZQxL/szc,Hz5YW/~1/f/I2j/fJ5" }, { "type": "encryption", "pointer": "/PayzFp/~1/~0/~1/~0/~1" }, { "type": "encryption", "pointer": "/~1/~0" }, { "type": "encryption", "pointer": "/Qmhg/suuQO/sPCTw/~0/~1/yaY1oqspAH3/~0/BkkiMVjAu" } ] }
{ "$ref": "workflowDocument" }