Summary
Imports a new workflow document.
Description
Imports a new workflow document.
Route
POST /automation-studio/automations/import
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
automations | array | yes | Workflows array. |
{ "automations": [ { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 88997617.94048437, "y": -15710931.598732054 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 49104109.62515721, "y": -75444903.09931464 }, "error_handler": { "name": "childJob", "summary": "esse laborum aliquip", "description": "voluptate culpa esse", "app": "esse aliquip ipsum", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1" }, { "type": "encryption", "pointer": "/xu72UePzC/~1/~1" }, { "type": "encryption", "pointer": "/fMLuBNS1EJ/QuP,dHuYl/EI-oakP1q83/~0/~1/kg/~1" }, { "type": "encryption", "pointer": "/f0uEEN/qStv9N/w/UP/~1/A/~0/~0/~1" } ] }, "groups": [ { "name": "dolor ut ut velit Ut", "provenance": "culpa sint id do Duis" }, { "name": "sint", "provenance": "reprehenderit in" }, { "name": "in ut", "provenance": "occaecat dolor dolore ullamco Excepteur" }, { "name": "dolore", "provenance": "consequat sit in fugiat" }, { "name": "minim aliquip aliqua", "provenance": "cupidatat dolore dolore officia aute" } ], "type": "operation", "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "dolor Duis in nisi", "provenance": "do ut in" }, { "name": "dolore", "provenance": "dolor" }, { "name": "labore sunt sint amet eu", "provenance": "do ut" }, { "name": "laboris laborum", "provenance": "laborum cillum" }, { "name": "eiusmod incididunt exercitation", "provenance": "do Excepteur" } ], "_id": "8ecf7a33-2d7c-3d02-50a3-532eefb495fa", "description": null, "preAutomationTime": -90051358.1033537, "sla": 86369842.4562903, "errorHandler": null, "font_size": 12, "created": "1959-11-18T23:36:26.086Z", "created_by": { "username": "sunt cupidatat proident in", "provenance": "Lorem nulla fugiat et" }, "createdVersion": "pariatur laboris", "last_updated": "1970-11-30T06:02:17.355Z", "last_updated_by": { "username": "officia enim", "provenance": "labore eu" }, "lastUpdatedVersion": "exercitation voluptate pariatur", "tags": [ { "_id": "EE051a6f4dda6BfEDFcD8fDd", "name": "laboris exercitation incididunt eiusmod", "description": "non est sit" }, { "_id": "76BdBCEF0974f0DaFEc22DEb", "name": "culpa", "description": "laboris ea eiusmod" }, { "_id": "EDbf9ee8d2fEcc6BBEf6F920", "name": "minim do elit laborum dolore", "description": "dolor enim" }, { "_id": "961Bc8Eaa4CA9d400023C4c4", "name": "enim", "description": "ut dolor occaecat" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/HHmUfgDjkMK/~1/f,1D/~0/~1/~0/~0" } ], "migrationVersion": 38272117 } ] }
{ "type": "object", "properties": { "automations": { "title": "automations", "description": "Array of workflow documents to import. If '_id' is provided, it will be replaced with an autogenerated '_id'.", "type": "array", "items": { "$ref": "automationImport" } } }, "required": [ "automations" ], "additionalProperties": false }
Return
Name | Type | Description |
---|---|---|
response | object | Results from each individual import operation. |
{ "imported": [ { "message": "cupidatat", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -90924653.67931983, "y": -62709959.136569716 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 21258720.130179092, "y": 74050866.92617565 }, "error_handler": { "name": "childJob", "summary": "pariatur ex nostrud", "description": "laborum proident", "app": "voluptate incididunt aliquip", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/l./~1/q/~0/~1/awy/duRPgt0L,+/~1/GQ-" }, { "type": "encryption", "pointer": "/~0/qfmdYoC/~0/Qo11XB" }, { "type": "encryption", "pointer": "/stvU.Eb3Ht/B3K,,g6G/~0/R82kpJQu/fN" } ] }, "groups": [ { "name": "minim Excepteur", "provenance": "Lorem" }, { "name": "dolore irure et ex", "provenance": "elit proident aliquip culpa" }, { "name": "aute", "provenance": "sunt eiusmod ipsum nostrud" }, { "name": "sunt ut", "provenance": "nulla sint pariatur irure" } ], "type": "operation", "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "anim exercitation in", "provenance": "qui eu nisi" }, { "name": "irure aliquip", "provenance": "adipisicing" }, { "name": "officia", "provenance": "ut enim quis pariatur reprehenderit" }, { "name": "officia aliquip occaecat", "provenance": "aute consequat" } ], "_id": "3b095760-d307-5dd0-f2c9-9bc32119b4f5", "description": null, "preAutomationTime": -44241813.062402, "sla": -80030648.69444683, "errorHandler": null, "font_size": 12, "created": "2015-02-11T12:38:52.469Z", "created_by": { "username": "Duis adipisicing Lorem pariatur dolore", "provenance": "aliqua dolore pariatur incididunt laborum" }, "createdVersion": "officia", "last_updated": "1990-02-17T14:52:11.029Z", "last_updated_by": null, "lastUpdatedVersion": "laborum sit fugiat", "tags": [ { "_id": "D2B3CabeA3c352FBcbDE1B2b", "name": "nulla", "description": "dolor fugiat laborum cillum" }, { "_id": "3379eDdd5e4fAF62D1Ff89a8", "name": "commodo ad ullamco Duis", "description": "eu Lorem ipsum" }, { "_id": "a73E1aAC0bBc5f6e7cF4C37d", "name": "non laborum culpa voluptate sit", "description": "tempor" }, { "_id": "f086B7e4fCeda53E4c0fEBb6", "name": "sed nostrud laboris aliquip", "description": "deserunt" }, { "_id": "61D9BAb6aEcC6c3ef69EFa1C", "name": "reprehenderit dolore", "description": "commodo irure occaecat officia" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/Y92g8vrV/~1/yw/Yl2KI-hF/f5C./q/WW1NmxqKC/vW" } ], "migrationVersion": -14546199 }, "edit": null, "success": false }, { "message": "veniam", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 71177723.4341664, "y": 5954155.375828132 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 23962240.181516662, "y": -8670948.92564042 }, "error_handler": { "name": "childJob", "summary": "id enim cillum nostrud", "description": "eu tempor irure adipisicing exercitation", "app": "non dolor esse ad cillum", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~1/~1/~0/l" }, { "type": "encryption", "pointer": "/eOk" }, { "type": "encryption", "pointer": "/nVWq4yC/Gxo7+h/~0/Zlm/~0/~1" }, { "type": "encryption", "pointer": "/JnU/gV6/~1/mfEI/~1/vM6-jBGhVWb/~0/~0/z9waTQZ.V/Qq2N.I0k1" }, { "type": "encryption", "pointer": "/~0/~1/FPretM" } ] }, "groups": [ { "name": "dolor eiusmod dolor cillum ullamco", "provenance": "adipisicing fugiat" }, { "name": "aliquip", "provenance": "in esse et officia" }, { "name": "consequat id cupidatat", "provenance": "eiusmod ipsum cupidatat veniam" } ], "type": "operation", "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "qui", "provenance": "do" }, { "name": "cillum amet velit", "provenance": "fugiat consequat pariatur et" }, { "name": "ex esse consequat aute velit", "provenance": "anim Duis in Excepteur aliquip" }, { "name": "commodo tempor", "provenance": "velit" } ], "_id": "06f8ccb5-4791-eb48-6b7f-7ce7ae3c5768", "description": null, "preAutomationTime": 77583883.06448936, "sla": -78913796.08878961, "errorHandler": null, "font_size": 12, "created": "2020-04-06T12:54:51.843Z", "created_by": { "username": "velit cillum", "provenance": "dolore Duis nulla Lorem" }, "createdVersion": "velit in", "last_updated": "1973-05-12T22:15:32.162Z", "last_updated_by": null, "lastUpdatedVersion": "eu proident minim sint", "tags": [ { "_id": "1cBE9F3CEfF208Fd2EEf45Fd", "name": "in", "description": "reprehenderit ad Lorem aute consectetur" }, { "_id": "cB0e46354DccbefE7e7eeF0c", "name": "qui pariatur", "description": "sed" }, { "_id": "9322d02374D6d6EC3cAf95f7", "name": "magna consequat ex", "description": "anim eu dolore sint dolore" }, { "_id": "2eeD6A8B94DbFa92f19ec6aB", "name": "ut eu ut nulla ipsum", "description": "est sed aliquip" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/R/Z.AKF-jFsdo/~0/~1/M1b8Wt/m/SHNS3bt" }, { "type": "encryption", "pointer": "/~0/hE5IDJD" } ], "migrationVersion": -37352142 }, "edit": null, "success": true } ] }
{ "title": "response", "type": "object", "properties": { "imported": { "type": "array", "items": { "type": "object", "properties": { "success": { "type": "boolean", "description": "Status flag denoting the success (true) or failure (false) of the workflow's import operation." }, "message": { "type": "string", "description": "Message containing either confirmation of the import operation or the reason for the failure of the import operation." }, "original": { "description": "The original workflow given in the import array.", "$ref": "automationImport" }, "created": { "description": "The imported workflow as it exists after being imported.", "oneOf": [ { "$ref": "automation" }, { "type": "null" } ] }, "edit": { "description": "URI to the edit page for the imported workflow.", "type": [ "string", "null" ] } }, "required": [ "status", "message", "original", "created", "edit" ] } } } }