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": [ "2f04374b573d4f1a54b6aea3", "f74cb8b7073ceb500e0aab67", "024300bc0ce986e3c62d1f77", "ae9cecd1246f64e95684b492", "39954a2d77d9e719bc26f3d3" ], "nodeLocation": { "x": 65208050.054281354, "y": -56537118.00160988 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "553f50a290ec9034bd0ae590", "3fbc4ee637e959165b7608ae", "6a9001f2fc16eeda60101b7a", "202a301aac6e01f2df007440" ], "nodeLocation": { "x": 91663576.69343537, "y": -54923900.18403519 } }, "error_handler": { "name": "childJob", "summary": "quis pariatur esse aliquip culpa", "description": "deserunt in in esse", "app": "magna anim in", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/ciYLlv0DwHj/FCFwZE7MJPR/~0/~1/ttZ9C/~1" }, { "type": "encryption", "pointer": "/rfLvp/DWLsn+/~0/~0/sH/~0" } ] }, "groups": [ "531ae1f1a31700b77872d62c", "4e3d2968b445cdb1f486f8d9" ], "type": "operation", "nodeLocation": { "x": -14388844.188419774, "y": 8471399.867766619 }, "deprecated": true, "scheduled": true, "retrySettings": { "state": [ "success" ], "autoRetry": false, "limit": 10, "delay": 2000, "count": 5 } } }, "transitions": {}, "groups": [ "12f22748cf68428d6752be49", "3f048752b5635108baf6294f", "4b43b90a8e7cf68571ce84d5", "c8e6f7a66da8338b3be61a99" ], "_id": "aec90571-d152-fc37-e8c2-a11e408da91d", "uuid": "891a8951-9b68-530d-9465-22cba39e9173", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "adipisicing nostrud labore", "accessControl": { "read": [ "irure eiusmod fugiat" ], "execute": [ "ut" ], "write": [ "id elit quis Lorem", "culpa ad incididunt velit sed", "qui quis" ], "manage": [ "fugiat cupidatat", "ut et quis", "elit non in commodo" ] } }, "preAutomationTime": 5000, "sla": 52998697, "errorHandler": null, "font_size": 12, "created": "1952-07-28T17:48:52.895Z", "created_by": "4981c93c3c1c02601c51312c", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "1985-05-07T11:28:55.802Z", "last_updated_by": "892e85388dfffad1abfe4d50", "lastUpdatedVersion": "4.69.69", "tags": [ "in culpa sit", "tempor velit ea enim occaecat", "dolore sit sint labore Lorem", "amet ullamco laboris reprehenderit", "ex mollit" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1" }, { "type": "encryption", "pointer": "/JGj/~1/~0/~1/~1/~1/~0/~0/W6" } ], "migrationVersion": 37548777 }, "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": [ "d78175f566d940276a80fea4", "6a7e3582044e3b9cb02bd7ca", "60ce878318b22c4333b7d315", "9648d0a7c89d10861f7c09fd" ], "nodeLocation": { "x": 33561124.31912108, "y": 16200847.78784281 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "44511563a2fe7524a45c712f", "ec137a7f1a8b7ff1ba9f84e7" ], "nodeLocation": { "x": 263924.82171323895, "y": -12248898.654717118 } }, "error_handler": { "name": "childJob", "summary": "dolore", "description": "Lorem laborum id", "app": "ex consectetur ut dolore", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/Yg/D8/b/vC3/wIVTYoCU" }, { "type": "encryption", "pointer": "/~0/~1/Yi8r,HJV/z1paf/~1/~0/qLn86HEmFa2/gJ,7SZ/ms9LB2LRW.W" }, { "type": "encryption", "pointer": "/~0/EIQVXF" }, { "type": "encryption", "pointer": "/~0/NLI8+" } ] }, "groups": [ "8be80c2eb749f39880ef78e0", "cc701ebe51ce286aa9393d10", "7d9827c6cd02c6d5d97ca221", "b6e2ba4957afe580f6aeb198", "6f649b9b0d2189e0f4a37531" ], "type": "operation", "nodeLocation": { "x": 82918905.02353838, "y": 76101167.94833207 }, "deprecated": true, "scheduled": false, "retrySettings": { "state": [ "success", "failure" ], "autoRetry": false, "limit": 10, "delay": 1000, "count": 5 } } }, "transitions": {}, "groups": [ "f90e354fe8196f6fdd3bfcf4", "2041ea97fbf39d1fe08973fe" ], "_id": "42a3ec01-23d7-e83d-15cb-49b26e5abf99", "uuid": "41339743-a0cd-489d-8ec5-e9cfdf5e1d80", "description": null, "namespace": null, "preAutomationTime": 5000, "sla": -66020537, "errorHandler": { "type": "labore", "name": "eiusmod in" }, "font_size": 12, "created": "2021-10-31T10:26:22.313Z", "created_by": "2ba12dbb831d774cd5e7656b", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2006-06-18T17:24:30.519Z", "last_updated_by": "97609ecc41d894fcdee3baa8", "lastUpdatedVersion": "4.69.69", "tags": [ "elit", "minim sit enim mollit ullamco", "tempor veniam dolore", "sit ut cillum dolore", "ex voluptate aliquip" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/ss9jw0+4CYh/Zr//~1/L/Il1.t" }, { "type": "encryption", "pointer": "/bKBtL3/O,SPw" }, { "type": "encryption", "pointer": "/tPX0,2/xY/Hp" }, { "type": "encryption", "pointer": "/~0/~1/~0" } ], "migrationVersion": 27400013 }
{ "$ref": "workflowDocument" }