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": [ "2b144cc731ee44f2a2071a84", "27d7fede5b8ab26c8256c5a0" ], "x": -71748681.242468, "y": -63188357.65487254 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "791a6716b15ba4fd59b7d3b8", "7388d24ef302d331664bb711", "8f76d69046fe4ba55066b561", "d1cbe50d7d6b746beeac9742" ], "x": 39017648.58476153, "y": 93297992.89740884 }, "error_handler": { "name": "childJob", "summary": "culpa Lorem deserunt labore", "description": "irure", "app": "ullamco irure", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/A9nEStGKT3W/~1/~1/zm/~1/W7xl/~0" }, { "type": "encryption", "pointer": "/~1/~0/xuge7aznW/Lw,2AY7tDQ/~0/~1/~1/~1/~0/~0" }, { "type": "encryption", "pointer": "/aOOJk38a5j9/FJttg4aE/~1/~1/epoaV6p+4bC/~1/~1" } ] }, "groups": [ "a152f689d35198996b71e91f", "80ed69ab2b32492a1ef3df66", "26597e8880435a77599a280f", "e93ad8253f0e1c7b3d579ee7" ], "x": -24992198.774279207, "y": -25205934.287765875, "type": "operation", "gridCoordinate": { "x": 90011780.2469855, "y": 27167977.63677001 }, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ "cd63f6ed2dc1fde12a28fdda", "8fad76dbfe3b6dbeb811e40c", "1a13467bd3bebe4744dbf7aa" ], "_id": "5cdc76b1-ca85-28fc-3811-9ff206642077", "description": null, "namespace": null, "errorHandler": null, "font_size": 12, "created": "1987-07-07T04:36:47.165Z", "created_by": "aeab739d73b260b964669cb8", "createdVersion": "cupidatat occaecat sit ad", "last_updated": "1969-07-18T04:38:35.97Z", "last_updated_by": "bdee29be0553b28f9ac1fb5c", "lastUpdatedVersion": "esse", "tags": [ "elit culpa aliqua ut" ], "canvasVersion": 2, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/HOxUuJeaO3/~0" }, { "type": "encryption", "pointer": "/~0/~0/~0/~1/~0" }, { "type": "encryption", "pointer": "/Qvt/C9b/WHF21F/NS1aFJZIt/h.4t" }, { "type": "encryption", "pointer": "/O1YHLbg/A" }, { "type": "encryption", "pointer": "/Fh4p/ri.Y,4/~0/awK,hWC/~0" } ] }, "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": [ "202dfa17ca37f9e2eed873a0" ], "x": 61115916.80763021, "y": -14389248.187061548 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "053746ae555072e348ff0fab", "2c40116d5afc43d72867c790", "1b990a5892b51fb956c1880d", "de934997509b68eddc7b09f8", "a2cbda76f7aa7c97d9794163" ], "x": -99552562.23163888, "y": 21548227.950312838 }, "error_handler": { "name": "childJob", "summary": "occaecat ut adipisicing minim laborum", "description": "dolor voluptate sint quis", "app": "elit ea occaecat dolore commodo", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/ry/jRW" }, { "type": "encryption", "pointer": "/~1/c.eifXAD/IF1opf/~0" }, { "type": "encryption", "pointer": "/Wrr9Q./~1/zQ/~0/YBmq/~1/~1/GY4X/nN8LJ6P" }, { "type": "encryption", "pointer": "/~0/m,xC/~0/~0/tLfM/J5TS/~0/q1/" }, { "type": "encryption", "pointer": "/~1/i92AJYA9sUc/fG1/~1/K0xu/~1/nXg0eFtv,b" } ] }, "groups": [ "290af0e577fd500ce95d7f2e", "8cd5fb87b89fd81cc693ab73", "1f074aa8ef2f855bc1cb66be", "bce6a91b0569d4ec49ff63fc" ], "x": -35042735.31240689, "y": 20453048.83706382, "type": "operation", "gridCoordinate": { "x": -7900089.8673567325, "y": 37662926.38235286 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ "2744fa063ba48ee39d7a88e4" ], "_id": "5edd0adc-7348-695c-1b85-cf8434b06632", "description": null, "namespace": null, "errorHandler": { "type": "fugiat nostrud consequat exercitation", "name": "culpa incididunt eu labore dolore" }, "font_size": 12, "created": "1961-12-28T18:29:47.549Z", "created_by": "926d6aa28994f1b5d00cc8eb", "createdVersion": "deserunt minim", "last_updated": "2024-05-31T08:11:30.514Z", "last_updated_by": "bd7549394c0ccedb662954ec", "lastUpdatedVersion": "amet id officia Lorem velit", "tags": [ "labore Duis", "aute", "ullamco sint consequat aliqua", "tempor commodo aliquip ullamco consequat" ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/vQ5LmON" }, { "type": "encryption", "pointer": "/~1/~0/~0/~1/mVBaJWNtY/~1/NC+Me/kn/l/~0/hRQaWBSV/+" }, { "type": "encryption", "pointer": "/~0/~1/FuMyo+C9SM/O-i/Vbv/~1/uj" } ] }
{ "$ref": "workflowDocument" }