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": [ "b056c957536347ab282d494a", "bf7a5d2d24e31db4243ac10d", "2e5e46a68f8b518850d9bd82", "c022bf598815c1bf56ae6b2e" ], "nodeLocation": { "x": -90137201.63438843, "y": 80636412.69323537 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "3db4ff189851e3e4a97550db", "e639d2f1a61c2db9b61e8376", "36ce82595313a0025a621990", "35accf6e4fa84641242809f4" ], "nodeLocation": { "x": -76764926.4368223, "y": -76661530.40577984 } }, "error_handler": { "name": "childJob", "summary": "irure quis ipsum", "description": "eiusmod nostrud adipisicing", "app": "sed ea anim", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/H/~1/~0/~0/T/~0/pYLe/Q" }, { "type": "encryption", "pointer": "/~1/~0" }, { "type": "encryption", "pointer": "/nyxf6+f/~1/~0" }, { "type": "encryption", "pointer": "/Jp/v8mA6trT/~1/~1/~0/xaKh" }, { "type": "encryption", "pointer": "/pBjUUg/~0/~1/j-ORb" } ] }, "groups": [ "4cfda3457b6106e88b5940d8", "44037db44792658ca2ab7af0" ], "type": "operation", "nodeLocation": { "x": 5190842.570606828, "y": 6463819.051089942 }, "deprecated": false, "scheduled": false, "retrySettings": null } }, "transitions": {}, "groups": [ "42cf83d181f744f47fbc6b1d", "3eaa706b0b6c97de50c2d297", "0c146033985c2cd7319c78df", "a176ee2788c37c00f8776f9a" ], "_id": "9064c6b8-895e-de79-c4e6-d31739ebdd44", "uuid": "8c0811fa-80dc-37bc-a331-5d1bea8003ab", "description": null, "namespace": null, "preAutomationTime": 5000, "sla": 60080851, "errorHandler": { "type": "quis laboris amet commodo", "name": "irure occaecat quis velit" }, "font_size": 12, "created": "1990-07-16T11:11:13.65Z", "created_by": "2fc72a9a7a4f4b4119102f39", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2015-02-16T16:32:25.878Z", "last_updated_by": "b2e248340c3134108f201a01", "lastUpdatedVersion": "4.69.69", "tags": [ "deserunt reprehenderit elit", "ad nostrud id do exercitation" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/H4/W3h1tIh/~1/Sa4/~0/YdwZyYJj/~1" }, { "type": "encryption", "pointer": "/~0/~0/~1/~1/H-n6zk/~0/HIhl-nM24/U/~0/JVnlPj/sNC" } ], "migrationVersion": 66268162 }, "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": [ "b6ef084c662b377e44dd60b8", "a7356b0258a60d26d8c45999", "993208024a66e356546a5b26", "928a2ddf301f886ca4ebef35", "e06440fd560918c567a08d61" ], "nodeLocation": { "x": -63117148.666684166, "y": 37966014.25861135 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "9f0f5fba5efa19943b8fbc67", "631fcd120e210b8ada19771e", "257f17bf3dddc183941acbd2" ], "nodeLocation": { "x": 50807280.59721613, "y": 17970008.556488454 } }, "error_handler": { "name": "childJob", "summary": "ad ipsum", "description": "eiusmod", "app": "dolor est commodo", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/L1/~0" } ] }, "groups": [ "6da0e57cf5eaf13f56c533ca", "66b009d99c6cf57114c1f977", "d4ad7a4106ea3a4de81c59d8", "54694fe1d2f6aa5e801ee2c9", "aa0944bd9bfae9ef40351bdb" ], "type": "operation", "nodeLocation": { "x": -65278673.016649425, "y": 97933867.27311835 }, "deprecated": true, "scheduled": false, "retrySettings": null } }, "transitions": {}, "groups": [ "c602aee8bae9a3885db91fec", "bbd636a6ece82df6ea8d2ab6", "8b88d00faed01ef200b08b84" ], "_id": "49992922-ec6c-b83d-b4f9-69968fe004e7", "uuid": "2c8b97b5-cc17-78a5-29be-e6d46be6df99", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "dolore occaecat ullamco dolore Lorem", "accessControl": { "read": [ "incididunt" ], "execute": [ "officia", "proident sint irure" ], "write": [ "ut sit Ut" ], "manage": [ "occaecat fugiat aliquip est eiusmod", "culpa" ] } }, "preAutomationTime": 5000, "sla": -23190877, "errorHandler": null, "font_size": 12, "created": "1995-09-17T22:33:04.496Z", "created_by": "3dac84041f15ea67c0d19722", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2004-07-01T07:24:24.007Z", "last_updated_by": "ff69fde1799cac0f3020efe8", "lastUpdatedVersion": "4.69.69", "tags": [ "do Duis culpa", "cupidatat", "exercitation ullamco adipisicing ea tempor", "sint anim", "reprehenderit enim labore nisi" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/~0/h9/ETosH" }, { "type": "encryption", "pointer": "/~0/SqGWjSuv/kAZ/NkGj16/~0/~0/~1" } ], "migrationVersion": 63820825 }
{ "$ref": "workflowDocument" }