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": [ "07909bb1c6519c90f78bd5de", "97a9977b4b66a7d112b1dc08" ], "nodeLocation": { "x": 29709146.67734945, "y": 15739131.5837529 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "ab0c728bafcc96ed7ba0b227" ], "nodeLocation": { "x": 19975369.51520042, "y": 67457078.85498798 } }, "error_handler": { "name": "childJob", "summary": "tempor sint dolor sit", "description": "occaecat Ut", "app": "ullamco", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/IND8gh5Go/~0/dPt8eeJ6" }, { "type": "encryption", "pointer": "/~1/~0/~1/DOvZY/SrbF/~1/wq/Zu2HA,Vz/JRc" }, { "type": "encryption", "pointer": "/GaTzXRWBOhi/g02S2Mb/~1/~0/~0/SuM/ywiUXm/~1/q" } ] }, "groups": [ "b1f1fae8880c6994ea635b5b" ], "type": "operation", "nodeLocation": { "x": 52651008.7801705, "y": -67400918.32648134 }, "deprecated": true, "scheduled": true, "retrySettings": null } }, "transitions": {}, "groups": [ "10cc203e81847cd46ea41aa2", "073e82b2343915243e70e1b5", "edac4fc080f15dd0b1c11a73", "b643467b5586522c4d91f9e6" ], "_id": "7902fb7d-f7b8-e64a-5cde-d2b8c04e1dae", "uuid": "1e939a56-26b3-56a0-9589-a8c84ba070d9", "description": null, "namespace": null, "preAutomationTime": 250000, "sla": 16968490, "errorHandler": { "type": "minim adipisicing dolor ullamco commodo", "name": "non ullamco" }, "font_size": 12, "created": "1989-08-03T23:51:53.817Z", "created_by": "25eff56e8e6c4e149d303dd6", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1951-10-25T22:04:13.339Z", "last_updated_by": "53f7f114cfa11147ec6559ad", "lastUpdatedVersion": "4.69.69", "tags": [ "occaecat" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~0/~0/V-xi/~1/k8ewKDNk9w/~1/L-QispGWTZl/l2vN,Nlu/oBilac2ICSp/d+lsP+7Bz" }, { "type": "encryption", "pointer": "/zLp84KNg5I" }, { "type": "encryption", "pointer": "/d84XxrvE/nx/~1/WhxWrOj.voE/~0/t9abB,i/~1/~0/~1" } ], "migrationVersion": 3266648 }, "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": [ "e4493b4f801804dddbe8f7af", "aee2ac17459557d6efa834ab", "f62c72424d529387c9a4a7aa" ], "nodeLocation": { "x": 83440200.68055719, "y": -1778448.2155123204 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "45e938247b210d20b6f63c82", "88bcee74596fe6392aec88bd", "b147a8fe5263c0d023470c16", "2297796a568fd57e15f29d17", "aca4dbf9962995cd61fc1f79" ], "nodeLocation": { "x": -80890491.65884332, "y": 12707947.570614174 } }, "error_handler": { "name": "childJob", "summary": "exercitation dolore nisi", "description": "sint ipsum deserunt non officia", "app": "anim labore ut", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/~0/~0" }, { "type": "encryption", "pointer": "/oH+oiY/~0/d-AGY./HI/oh6CedwjF/~1/~1/BaSs,73JZ3/z5d0" }, { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/GwqhfdgVfes/f/~0/~0/~0/P.ioD/~1" } ] }, "groups": [ "35a62b4b7a00cd175105e19c", "32646909167f4f1762e59a4a" ], "type": "operation", "nodeLocation": { "x": -26831306.598516136, "y": 75410353.14271653 }, "deprecated": false, "scheduled": false, "retrySettings": { "state": [ "error" ], "autoRetry": false, "limit": 20, "delay": 2000, "count": 5 } } }, "transitions": {}, "groups": [ "385ddeadbd31ef9ea62aff0f" ], "_id": "4f58ad37-69fb-4ed3-9249-1e733d43508c", "uuid": "6c3f9876-6cdb-794f-c492-17d05e3d2fc4", "description": "eu nulla", "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "est aliqua aute", "accessControl": { "read": [ "nostrud pariatur ullamco consectetur" ], "execute": [ "magna elit", "amet consequat", "tempor adipisicing", "dolor", "dolore cupidatat" ], "write": [ "ut Duis dolor", "irure" ], "manage": [ "ullamco nulla occaecat", "mollit Ut ad ipsum", "velit" ] } }, "preAutomationTime": 5000, "sla": 3573880, "errorHandler": { "type": "Duis qui non velit aute", "name": "commodo in sunt dolor labore" }, "font_size": 12, "created": "1952-01-04T05:23:11.045Z", "created_by": "59e43bd5c9e33d2c3016d633", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2010-03-21T13:22:11.045Z", "last_updated_by": "84904d210c317de7e12c56a1", "lastUpdatedVersion": "4.69.69", "tags": [ "officia Excepteur non reprehenderit" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/zHqQq5R/jm/-Gq2lpo/nkzJ/lkkeQOA" } ], "migrationVersion": 68736498 }
{ "$ref": "workflowDocument" }