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": [ "dce4389fc261bf85307b80a9" ], "nodeLocation": { "x": 45464703.49447814, "y": -92891618.86640489 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "e40e943064b47106854a872d" ], "nodeLocation": { "x": 98221631.68495739, "y": 41507775.04711124 } }, "error_handler": { "name": "childJob", "summary": "exercitation", "description": "ut pariatur commodo exercitation magna", "app": "consequat ut adipisicing", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/BWSL3V+/~1/js/~1/jg8a/OwYT" } ] }, "groups": [ "45b0f41dff92418a7fe20fbe" ], "type": "operation", "nodeLocation": { "x": -52618379.727394514, "y": 21500559.570859686 }, "deprecated": false, "scheduled": false, "retrySettings": { "state": [ "failure", "error", "error", "error" ], "autoRetry": true, "limit": 20, "delay": 1000, "count": 5 } } }, "transitions": {}, "groups": [ "e15bfaade8ec650748819396", "410aa0e72c7eb4695eb999f8", "968c7850873f1e8a743b9831", "9255595b7f4e78e0306ee4c7" ], "_id": "d1a51f9f-34fc-03b6-c561-ad2a8c0daac7", "uuid": "9b767234-7169-b37a-da49-42ed7554c013", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "nisi consequat sunt minim in", "accessControl": { "read": [ "enim sed quis", "adipisicing minim veniam voluptate Duis", "consectetur", "anim incididunt" ], "execute": [ "ut incididunt laborum", "labore est cupidatat fugiat" ], "write": [ "consectetur" ], "manage": [ "Duis dolor", "esse voluptate" ] } }, "preAutomationTime": 250000, "sla": -26737608, "errorHandler": null, "font_size": 12, "created": "1995-11-21T15:39:55.329Z", "created_by": "b6b257a3fcd5f26a134a8759", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2008-12-21T15:59:02.031Z", "last_updated_by": "417dccaade2c14efd0e93f55", "lastUpdatedVersion": "4.69.69", "tags": [ "mollit veniam", "pariatur fugiat", "ipsum adipisicing dolor officia non", "Ut", "consequat ex ea elit Duis" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/~1/~1/TZFy/~0/~1" }, { "type": "encryption", "pointer": "/Sc/TyPjBG5/T7X55eVU" }, { "type": "encryption", "pointer": "/~1/PxXVyUuom/D7tsn6/~1/GtWP2NGoS/wHLq7RU/~1/ccutpS/kI/~0/~0/NDRoZjrHY" }, { "type": "encryption", "pointer": "/~1/~0/~0" }, { "type": "encryption", "pointer": "/~0/~1/z+r0/P8g" } ], "migrationVersion": 45199341 }, "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": [ "da5ec461b06b0de8174dcbbf", "9d610e22f6dc8563307ce9e4", "cdf7eac01622ff0ddc8e1ed4", "1cb504b5b9360a70a8ec76fb" ], "nodeLocation": { "x": 35458212.700573325, "y": -26237037.476122633 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "0aa8bea68039fa8ea57aba77", "ba9d6a6ac7711841287b8e39", "3be74699ce27a363e69be569" ], "nodeLocation": { "x": 35317519.182166755, "y": 74056010.4094134 } }, "error_handler": { "name": "childJob", "summary": "esse velit amet", "description": "cillum esse incididunt", "app": "nisi", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/bEeS6XZb02/pbf1clP/~0/~0/~1/qz5m" }, { "type": "encryption", "pointer": "/iSDOli-cRI/~0/~1/O-QvP/oP/~1" }, { "type": "encryption", "pointer": "/~1/Bf+kL/qi,k1N/~1/JnA7w2xrAq/~0/~1/~1" }, { "type": "encryption", "pointer": "/hPW/~0" }, { "type": "encryption", "pointer": "/~1/~1/~1/f7H7-1q/~1/b0/~0/t+qeEozB/BK0v//sfU/O/RjD2ToM9nnc" } ] }, "groups": [ "bd0bc1c5d3b1e01c478e5fdf", "ca872737c0e7c7d903f8ebb0", "c0e779817458162d2ba6cda9", "a2b601d41cbd5dcc9a27e0c8", "ed30740e265f0e637b71b758" ], "type": "operation", "nodeLocation": { "x": 77709998.04620686, "y": 15069905.269902065 }, "deprecated": false, "scheduled": true, "retrySettings": null } }, "transitions": {}, "groups": [ "0e83edd1133b0b3e207eceac", "07668dbdfb34af4d8682eb67", "b2fca01e5274e84b05f6d257" ], "_id": "06c78de0-f623-9c5e-d895-f715187a3ae5", "uuid": "e6e62488-01e4-6f79-cd83-2a6c0e3e6d99", "description": "officia do consectetur nisi", "namespace": null, "preAutomationTime": 250000, "sla": -42156154, "errorHandler": { "type": "cillum deserunt", "name": "nulla ut eiusmod in elit" }, "font_size": 12, "created": "2015-03-12T14:01:17.401Z", "created_by": "a4bda961349cd6fe216beeb5", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1982-07-12T19:50:44.75Z", "last_updated_by": "613c2de34be4ef7419490b29", "lastUpdatedVersion": "4.69.69", "tags": [ "nostrud id", "consequat deserunt", "dolore in", "dolor ex", "magna consectetur id sed" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/lQYOd7cNw/IKCe/~0/~1/~0/t0VH4P/~1/~1" }, { "type": "encryption", "pointer": "/~1/C+" }, { "type": "encryption", "pointer": "/Z5X" }, { "type": "encryption", "pointer": "/Fixes/~1/~1" } ], "migrationVersion": 79286419 }
{ "$ref": "workflowDocument" }