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": [ "4201150276d5e2bf8f1eccfe" ], "nodeLocation": { "x": 76968155.23052919, "y": 17116882.505570218 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "d8af7c04956d98c202d5e383", "a754f97c5ad299e9f2cde648" ], "nodeLocation": { "x": 69302485.3282643, "y": -20557122.854882553 } }, "error_handler": { "name": "childJob", "summary": "dolor enim sit consectetur pariatur", "description": "ex laborum", "app": "cillum Duis", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/tbGvsXjLq/~0/CgcvoyBda0U/nmA/NvCKcY8U6Kc/Z/a/mRbY33/~1/wfQ1/~1" } ] }, "groups": [ "0ef2cfb407107a8cc8175f74", "1e69def25f8629b12aa3e17c", "4ca824546aaa311957897f41", "bbfbdaec320d3d39f3124eba" ], "type": "operation", "nodeLocation": { "x": 66777593.14954156, "y": -47144326.799402595 }, "deprecated": false, "scheduled": false, "retrySettings": null } }, "transitions": {}, "groups": [ "60095e7040ced3eb5325b4c1" ], "_id": "df99004d-4cc8-cc8d-23f9-5bed8bec6f50", "uuid": "9021889d-822a-b079-7100-50c35cd18b33", "description": "reprehenderit exercitation proident non", "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "nulla", "accessControl": { "read": [ "laborum ad exercitation", "ex", "Excepteur dolore proident laborum et" ], "execute": [ "nisi est", "commodo dolor aute occaecat", "sit in esse qui ullamco", "proident mollit anim" ], "write": [ "consequat est", "et" ], "manage": [ "non laboris", "dolor consequat enim non", "qui" ] } }, "preAutomationTime": 5000, "sla": -98268247, "errorHandler": { "type": "dolore amet do dolor", "name": "dolore sint dolor" }, "font_size": 12, "created": "1964-09-16T18:22:59.04Z", "created_by": "a62b0044c9c59e3cdf9ae2a2", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2021-12-18T19:14:50.712Z", "last_updated_by": "265cc39803181e41356d1ae4", "lastUpdatedVersion": "4.69.69", "tags": [ "sint incididunt voluptate nisi dolor" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/Bb/~0/~1/~0/~1" }, { "type": "encryption", "pointer": "/~1/A,9g/~1" } ], "migrationVersion": 99259383 }, "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": [ "96b1b55ff6dbbea29dae40cb", "0a917849c15c2ac8bdc5d770", "56537f1b6c2281d658319dd0", "faca73ffc1afd1544335e3f8", "a951dff512ca2fb4416f0581" ], "nodeLocation": { "x": 99778898.56283978, "y": 1318876.6350392401 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "271d3489abbfe4f69a7a16f2", "e71997eb1ccf976130b35267", "35bb80b8c89014f28692b903", "b116e294339fff21f61eb836", "35f43cb29ecff84f56cb074a" ], "nodeLocation": { "x": -93247583.87209071, "y": 70689021.124912 } }, "error_handler": { "name": "childJob", "summary": "sunt", "description": "consectetur tempor amet pariatur", "app": "mollit", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/EdZEH/~0/~1/engkdlQ/~1/vIsxFjR/~0/~1/aHhJmTNT/erETMagm" }, { "type": "encryption", "pointer": "/oG4Pmk" }, { "type": "encryption", "pointer": "/BF/GD0YbC/~1/FZLDUFV/ZWs4SOSkIoH/~0/~1/~1/X" }, { "type": "encryption", "pointer": "/Scy/n2NKRFn/~1/t/~0/D7H/~0/ig.+/i" }, { "type": "encryption", "pointer": "/N9.TNCXcJht/wDwiay0/ItNqp0bQwJE/~1/o/CixUY/JgNBW+--2w/Z8S1Z7n/Xn/MMt3Nhzls./~0" } ] }, "groups": [ "1006b555b719d8ee1072a994", "b6ee183b251a7099bee214ac", "b913d29b2fed3ac956b34203" ], "type": "operation", "nodeLocation": { "x": -96096389.0952069, "y": 52791418.67527595 }, "deprecated": false, "scheduled": false, "retrySettings": { "state": [ "failure", "success", "failure", "error" ], "autoRetry": false, "limit": 10, "delay": 1000, "count": 5 } } }, "transitions": {}, "groups": [ "ba55159020413ce4930a5fd0", "6f78b0967cc7f035b56e6806", "a5f22bfe70537351aae7772a", "b03d214773105faf2d41db16", "deb74fd6a1dcf6208410f82e" ], "_id": "e249c280-bf50-4657-2d9e-c735722cdbbc", "uuid": "454a0c8e-87ac-2031-77e5-f4fea3fa3646", "description": "eu eiusmod veniam", "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "laboris", "accessControl": { "read": [ "ullamco" ], "execute": [ "nisi quis voluptate qui", "consequat culpa dolore consectetur", "sed pariatur eu commodo", "dolor tempor sint velit", "sit fugiat ipsum exercitation nostrud" ], "write": [ "ullamco anim", "labore Lorem ea consectetur" ], "manage": [ "quis reprehenderit cillum", "dolor", "eiusmod", "dolor exercitation" ] } }, "preAutomationTime": 5000, "sla": 6964142, "errorHandler": null, "font_size": 12, "created": "2020-06-12T13:51:17.93Z", "created_by": "8d9d99947786d378bf88e5a7", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1999-12-09T16:41:15.404Z", "last_updated_by": "009ce313ce7d8f4c9834ca85", "lastUpdatedVersion": "4.69.69", "tags": [ "sunt qui officia tempor", "culpa et dolore dolore", "consectetur dolore aliquip ea", "esse veniam et", "tempor irure in" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/rCjh/~1/~0/~0/~0/f/JwURSItLQ/jAIhQcXYWwM/~1" }, { "type": "encryption", "pointer": "/~0/~0" }, { "type": "encryption", "pointer": "/sdOri+0oG3o/MiDOn6ayeS/~0/~0/~0/HJSKt/~1/wn-kqVyqbEp" }, { "type": "encryption", "pointer": "/~0/xNyra/i0xjFF08s/puyqXY/~0/vs" }, { "type": "encryption", "pointer": "/NYwo,zk" } ], "migrationVersion": 11784331 }
{ "$ref": "workflowDocument" }