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": [ "b6a1e9a61287c2d6c49e3163", "9af1447692bcc1ff20c023ab", "4ab01b9d14b4c62d07d86a6b" ], "nodeLocation": { "x": 16831363.7276365, "y": -47854751.61369761 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "7d6d9385eb170bc04f4d0c9b", "d2e1763c66559788fff6e369", "43e2b0a1317b5b2ce90fb67b" ], "nodeLocation": { "x": -49324879.189296536, "y": 43580396.56218526 } }, "error_handler": { "name": "childJob", "summary": "exercitation", "description": "velit dolore minim qui sit", "app": "cupidatat sit cillum", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/M0G" }, { "type": "encryption", "pointer": "/Wv0P40wX1+m/ltV/AilTYyoc//vbHP" }, { "type": "encryption", "pointer": "/BZES" }, { "type": "encryption", "pointer": "/~0/~1/~1/~0/~0/n1AMoj.47i/~1/~0/~1" } ] }, "groups": [ "169497efb1477816dcf8806c", "2f356a3a04101b389daf43d2", "509cbe4140ba546721e4418c", "e89da3bf74385c2fe50e6b3e", "dd7a840f268f1607e31e9675" ], "type": "operation", "nodeLocation": { "x": -12142899.908830658, "y": -79528875.65922429 }, "deprecated": true, "scheduled": false, "retrySettings": { "state": [ "success", "error" ], "autoRetry": true, "limit": 10, "delay": 1000, "count": 5 } } }, "transitions": {}, "groups": [ "98510513ca6a17f982de47f5" ], "_id": "05e2eaaf-6bd0-eb96-c756-e845c739f0f1", "uuid": "870c0d90-2d84-fa89-bc3f-231b5808d750", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "sint anim", "accessControl": { "read": [ "enim", "aute", "eu", "qui mollit" ], "execute": [ "fugiat ad mollit" ], "write": [ "non velit ut", "Lorem fugiat", "minim nulla magna ut ipsum", "non in", "est pariatur sit nulla" ], "manage": [ "dolor mollit", "ea", "dolor Duis tempor Lorem adipisicing", "commodo anim deserunt" ] } }, "preAutomationTime": 250000, "sla": 26942153, "errorHandler": { "type": "aliqua et veniam eu irure", "name": "cupidatat veniam sunt ex do" }, "font_size": 12, "created": "1975-10-29T00:25:24.058Z", "created_by": "9d9fae8b72fc1f1131ed80c4", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1998-06-23T12:38:36.959Z", "last_updated_by": "ac1989aca4165cb44d892c2d", "lastUpdatedVersion": "4.69.69", "tags": [ "sed", "elit sunt adipisicing", "qui" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/~1/YIf3Z2/~0/~0/~1/h4qp9A7Ycqn" }, { "type": "encryption", "pointer": "/JeWdGaq.k5/NbW/pvFj,Z/~0/~1/~0/dC/~1/~1" }, { "type": "encryption", "pointer": "/LXfIh/~0/~0/~0/kG3CLvSCnV/~1/~1/~1/I//~0/A7DGfhB" }, { "type": "encryption", "pointer": "/r/ZpeqIoUqqz/~1/~1/~0/~1" } ], "migrationVersion": 29931705 }, "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": [ "f7ba4f381555000a034bde57", "b8619aac024666e26db3fc70", "e0c2c1e3be0fdd44b2b854c5" ], "nodeLocation": { "x": 9194892.635143414, "y": -28738991.291016445 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "2dcb6cab96d8a766bbcc4680", "1fa88412ab6e61bd87565180" ], "nodeLocation": { "x": 37865971.27973521, "y": -28636791.35026996 } }, "error_handler": { "name": "childJob", "summary": "laborum aliquip", "description": "et consectetur ut dolore", "app": "quis occaecat", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/t/~0/jscKYOPESG6/~0/~0/to/YrqBZHXK/V1xtdum" }, { "type": "encryption", "pointer": "/B/AFKlC8ltm/~1/~0" }, { "type": "encryption", "pointer": "/rvYVdAg/Vpqi.REBB//~1" } ] }, "groups": [ "540b1553809ad9bde11a5f35", "c7673039470e9d375235bc29", "f82b43d58f9dbb9c4c22ad18" ], "type": "operation", "nodeLocation": { "x": 34962484.12780312, "y": -54723494.59581185 }, "deprecated": false, "scheduled": false, "retrySettings": { "state": [ "error", "error", "failure", "failure" ], "autoRetry": true, "limit": 20, "delay": 2000, "count": 5 } } }, "transitions": {}, "groups": [ "0eb4a91521ecb7bc72715529", "570c0a2571d08390619d78a8", "f575295913831ac0335fe0d3" ], "_id": "1698e887-81db-4234-595c-e36381c7c817", "uuid": "378afaec-2bc4-1fec-e3c6-830ca7db0844", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "nostrud occaecat Lorem magna adipisicing", "accessControl": { "read": [ "nulla id ut do occaecat" ], "execute": [ "deserunt eiusmod nulla sit sint", "ex Lorem laborum cupidatat dolor" ], "write": [ "aute dolor in", "laborum dolore", "deserunt sit labore sint non", "labore dolor dolore in" ], "manage": [ "cupidatat anim" ] } }, "preAutomationTime": 250000, "sla": -68260227, "errorHandler": { "type": "cillum", "name": "ut esse deserunt" }, "font_size": 12, "created": "2024-04-21T17:35:38.872Z", "created_by": "be30954e90b823bc7dd2027d", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1950-08-22T09:59:44.321Z", "last_updated_by": "f181d343777cda675199c415", "lastUpdatedVersion": "4.69.69", "tags": [ "aliqua" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/W.Lm+I325Y" }, { "type": "encryption", "pointer": "/~1/apX/~0" }, { "type": "encryption", "pointer": "/~0" } ], "migrationVersion": 73812979 }
{ "$ref": "workflowDocument" }