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": [ "22c45e2b4262b67a123cf32a", "cd3df851f071e865b67f1b8a", "dd090fc1afadcb61ba48c3f0", "ec05440dd2b650a1c4a5478d" ], "x": 97437803.29372519, "y": -45183923.7897476 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "0659accfd90daaf0b12e8a22", "77a5664cd51eea9e0d650248", "0022f4474faa7c2fe48f01b6", "0ab1d93c78c1eb5076234322", "9fb6193ca8572cbb45723f55" ], "x": -37824456.72770645, "y": 47993165.60423699 }, "error_handler": { "name": "childJob", "summary": "ullamco", "description": "in consequat ut ullamco", "app": "dolore tempor Duis", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/rvsyCv6yV9/DW9Rlwmm/~0" } ] }, "groups": [ "310ee9eecb26a4c29befefc3", "fc505b6aca02312e6354abdb", "f80f57f17beea8a95125d23e", "d01104e8dd4a2956d5ac6d82", "2e4be59466287c061f732c07" ], "x": -92324117.53588976, "y": 8486199.947019294, "type": "operation", "gridCoordinate": { "x": -10385141.471753329, "y": -29252066.57864274 }, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ "892d2a5269ccc4e2c8963c43" ], "_id": "46734d58-b21f-6c89-0f1c-a55c3ac1d0d4", "description": null, "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "culpa Ut qui ad", "accessControl": { "read": [ "magna Excepteur ad aute", "dolor minim" ], "execute": [ "sint ut cillum sit", "amet Excepteur dolore pariatur", "Excepteur proident in exercitation veniam" ], "write": [ "irure ullamco" ], "manage": [ "labore", "occaecat ut ex deserunt" ] } }, "errorHandler": null, "font_size": 12, "created": "1969-11-28T20:33:34.702Z", "created_by": "8b98ba311849e1b962afcc6e", "createdVersion": "aute nulla in laboris sunt", "last_updated": "2020-08-14T05:25:12.322Z", "last_updated_by": "6f34b4f55a6001fd1ba8f177", "lastUpdatedVersion": "aliqua dolor ipsum", "tags": [ "quis reprehenderit veniam", "adipisicing fugiat ipsum", "Lorem", "nulla tempor exercitation" ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/~0/~1/~1/~1/uDH1Jvoo/QOnjOv7j/o54.IP/~0/FMLb6," }, { "type": "encryption", "pointer": "/X0Dq73LP" }, { "type": "encryption", "pointer": "/~0/ATFqA7nx/~0/IgA1E2hmGee/m.WBYD6z/mZrLketuoH/UrU/U/~1/He3kT/sbZjrR1" } ] }, "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": [ "ee74ff54ad564799f9f71236", "9e4ac50a2a47feab14ecf986", "82a4f09bfab5f425e44d7338" ], "x": -17071805.307988927, "y": -78778439.0367539 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "fb6ca0dd4dfafcb124d38acf", "462706690f09306be0a46026" ], "x": 34266506.26547292, "y": 58460891.75177184 }, "error_handler": { "name": "childJob", "summary": "velit aliquip cillum", "description": "ipsum Ut sint", "app": "mollit tempor", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~1/~1/~0/K13Ggj" }, { "type": "encryption", "pointer": "/GWfAAxSe/~1/~0" } ] }, "groups": [ "aba8484093625da1f7fd6f70", "6bbf0e6f39577e697ad5b421", "ef96f764ed81f9ed9494cf4c", "969dfaeecc9eb48046499259", "275321b6059b3388a21b1384" ], "x": 81649849.78340507, "y": -68216191.47780038, "type": "operation", "gridCoordinate": { "x": 83538504.7914798, "y": -76522592.70909685 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ "6234d4e37d4f522a5b2d5a11", "916ac5aaa9464ff378563c37", "329c978757a4acf5396039f4", "525f0ae0be0798629fe94a0a", "3439078e446716a43f2ccd85" ], "_id": "5d9dcd02-d044-6708-35d0-fd09ca9e46d8", "description": "do adipisicing", "namespace": { "type": "project", "_id": "5cb5252a1bbc5a00def564c1", "name": "Lorem minim velit aute ut", "accessControl": { "read": [ "occaecat pariatur adipisicing", "consequat ad laborum est nisi", "quis in ipsum" ], "execute": [ "mollit ut proident", "amet pariatur reprehenderit", "reprehenderit ullamco pariatur sed", "dolor deserunt culpa aliquip laborum", "consequat ex" ], "write": [ "eu pariatur veniam quis" ], "manage": [ "ipsum amet incididunt qui occaecat", "nulla officia", "elit officia" ] } }, "errorHandler": { "type": "Excepteur", "name": "et elit id dolore" }, "font_size": 12, "created": "1953-09-06T09:31:53.883Z", "created_by": "c47bc7b5aa76c6bd36cc055b", "createdVersion": "Duis", "last_updated": "1983-03-12T08:30:08.833Z", "last_updated_by": "092c76f7b7142a0b5bfed5ae", "lastUpdatedVersion": "ut aute ex", "tags": [ "aliqua consequat elit laborum occaecat", "exercitation non minim", "dolor", "aliquip eiusmod non" ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/LN/Jzl/0/jNqkJka2/~0/~0/~0" }, { "type": "encryption", "pointer": "/r,NJRv.0/~0/kEFcGeI/~0/T5V7r/~0/~1/MvX/~1" } ] }
{ "$ref": "workflowDocument" }