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": -42696257.162980445, "y": -46549212.94716146 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -60963070.05337875, "y": 12858580.91222933 }, "error_handler": { "name": "childJob", "summary": "veniam in in deserunt", "description": "proident consequat fugiat ullamco", "app": "anim", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/mg6cEq/iT/~1/L6oSd/~1/SXjJ/9Ncg/~0/~1" }, { "type": "encryption", "pointer": "/wuP,/KOUP0i./~1/~1" }, { "type": "encryption", "pointer": "/~1/MrCh8/~1/N/FX/IiLkQ-dJTz9" }, { "type": "encryption", "pointer": "/~1/~0/~1/~0/RLQ1CE51cR" }, { "type": "encryption", "pointer": "/MkS/UMhTM-9tgU/aYZZwm20c/Mw-+ZmKeMJ" } ] }, "groups": [ { "name": "quis non", "provenance": "deserunt" }, { "name": "culpa ipsum incididunt amet ullamco", "provenance": "ut Ut" }, { "name": "Ut", "provenance": "exercitation" }, { "name": "dolor irure consectetur ex ipsum", "provenance": "laboris minim nostrud" }, { "name": "dolor ea mollit", "provenance": "esse ut id reprehenderit" } ], "type": "operation", "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "minim amet nisi", "provenance": "Duis Excepteur ex" }, { "name": "irure veniam non est amet", "provenance": "cillum deserunt eu laborum Excepteur" }, { "name": "enim qui sunt", "provenance": "minim aliqua culpa aute" } ], "_id": "ab98250c-76d1-4c4c-1107-a51e90a3482a", "description": null, "preAutomationTime": 77630242.2894794, "sla": -80966893.40372363, "errorHandler": null, "font_size": 12, "created": "1999-03-27T00:28:26.914Z", "created_by": null, "createdVersion": "magna qui cillum", "last_updated": "1988-04-03T08:26:40.956Z", "last_updated_by": { "username": "aliquip exercitation ut eiusmod", "provenance": "aliquip dolore dolore" }, "lastUpdatedVersion": "ad elit anim consequat", "tags": [ { "_id": "2774c0BAcEc3742B72f5eabb", "name": "tempor aliqua", "description": "fugiat culpa velit consectetur ex" }, { "_id": "B7a17a2Ece9733bC29eA77BB", "name": "dolore magna sit", "description": "fugiat ex et dolore" }, { "_id": "bf20DFff1eF51DcD195Aae95", "name": "dolore", "description": "non velit dolore nulla officia" }, { "_id": "7A30fFEb104093f4Df47EbeE", "name": "mollit amet", "description": "id laborum" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~1/~1/tkOf/~1/~1/~1/GAM-E3/~1/~0" }, { "type": "encryption", "pointer": "/~0/~1/~1/Cg/~1/IIuJF/pH7sovk/WmlW2WQn/~0/~0" } ], "migrationVersion": -45727184 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 75740326.24572733, "y": 63935772.985720605 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 11653823.159088314, "y": -96917346.09041917 }, "error_handler": { "name": "childJob", "summary": "enim sit in consectetur", "description": "nisi", "app": "ea", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~0/~0/~0/L,/~0/rDwDMRfz/QM/~0" }, { "type": "encryption", "pointer": "/Wd5pI5-J" }, { "type": "encryption", "pointer": "/CYi/gq2K" }, { "type": "encryption", "pointer": "/o/~1/~0/EVZZ/~0/CNq47AT/p6/~0" }, { "type": "encryption", "pointer": "/J63zJN/~0/~1/ee/EE3-a+9u-5/GJ5LsSP7BR/Jzva3AXo67f/~0/~1/rKuyw" } ] }, "groups": [ { "name": "eu Lorem", "provenance": "dolore Excepteur" }, { "name": "in", "provenance": "labore" }, { "name": "sint", "provenance": "nulla nostrud laborum officia proident" }, { "name": "esse sunt", "provenance": "dolor pariatur labore nostrud" }, { "name": "magna ut", "provenance": "ex est Duis amet" } ], "type": "operation", "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "Excepteur nisi", "provenance": "Duis" } ], "_id": "d810c97c-b3e7-8326-5f38-6497ba111c89", "description": null, "preAutomationTime": -50476491.01900604, "sla": -18187463.091107637, "errorHandler": { "type": "ad ea", "name": "Excepteur Duis dolore eiusmod" }, "font_size": 12, "created": "1998-02-09T12:37:26.477Z", "created_by": { "username": "culpa cillum laboris laborum", "provenance": "dolor sunt eiusmod irure non" }, "createdVersion": "consequat deserunt id Lorem", "last_updated": "1986-05-20T18:35:14.771Z", "last_updated_by": null, "lastUpdatedVersion": "proident eiusmod eu voluptate", "tags": [ { "_id": "647edFb92365eD8C4f34cBd0", "name": "officia mollit do quis", "description": "sed consectetur laborum magna esse" }, { "_id": "DAF01bc6C728CAf2a5A4F7d4", "name": "non", "description": "qui dolor ea ipsum velit" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/~1/p+MIS/~1/~1/~1/YG+KcE23bV8/~1/~0/~1/~0" }, { "type": "encryption", "pointer": "/~0/~0/IFRHDL1AZ/~0/v,/8Y,nd/~1/Oip/jWZI5eIf9/xS-hz/~1" }, { "type": "encryption", "pointer": "/Q" }, { "type": "encryption", "pointer": "/leuHwl5R/u/g/~1/~1/G3iJSKI-D/~0/J.TOvan,0/~0/~1" } ], "migrationVersion": -51440662 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -78137210.94890535, "y": -38839929.41102186 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -94581649.29003568, "y": -94823405.20816979 }, "error_handler": { "name": "childJob", "summary": "deserunt esse exercitation eiusmod", "description": "ipsum", "app": "consequat sunt anim", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/M/~0/~0/NV/hHU/~0/~0/~1/~1/~1/~0" }, { "type": "encryption", "pointer": "/~1/~0/~0/QW/Bd/yNsjE6z7+/~1/H,4O//~1/k" }, { "type": "encryption", "pointer": "/~1/kTgk+ARKj//s/qHtsgr./opuX9uslyR/dZY6/w/PZw7e2/gRSJY/~0" }, { "type": "encryption", "pointer": "/lyulelsx/AMj7kO/b6/~0" } ] }, "groups": [ { "name": "officia Excepteur ipsum quis", "provenance": "labore sunt" } ], "type": "operation", "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "id in amet veniam non", "provenance": "sed ut velit voluptate" }, { "name": "sunt officia", "provenance": "cupidatat aliquip non id" }, { "name": "nostrud id sed ad", "provenance": "aute" } ], "_id": "51b86f79-b848-f45e-ded1-6afdc271ba20", "description": "Ut", "preAutomationTime": 62680582.29267129, "sla": -82369547.31345145, "errorHandler": { "type": "do culpa est Ut irure", "name": "in ut Ut elit nisi" }, "font_size": 12, "created": "1951-02-24T21:07:56.223Z", "created_by": { "username": "reprehenderit", "provenance": "consequat tempor culpa est" }, "createdVersion": "voluptate in do", "last_updated": "1997-05-14T01:41:00.473Z", "last_updated_by": null, "lastUpdatedVersion": "dolore eiusmod Duis", "tags": [ { "_id": "05Dd18Ec17A00beBBd27De0D", "name": "minim ut id exercitation nisi", "description": "Ut" }, { "_id": "7335f09eBBfeE9AE3BbCD75a", "name": "est quis voluptate", "description": "dolor nostrud" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/~1/mRAP9KO../aOm.cQh/~0/vSQ9Z/~1/~0/I+Lw" }, { "type": "encryption", "pointer": "/fGZmH/ymrz7/~0/V" }, { "type": "encryption", "pointer": "/T/~0/tDJ6BHsAR/~1/~0/~1" }, { "type": "encryption", "pointer": "/~1/~0/AT/lkfqBTXELDN/~0" } ], "migrationVersion": 35155176 } ] }
{ "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": "sed esse officia deserunt", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -27535248.728940725, "y": 67543859.1757001 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -97021108.025942, "y": -4264300.570893332 }, "error_handler": { "name": "childJob", "summary": "eu id", "description": "voluptate incididunt ea", "app": "ea commodo laborum quis incididunt", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/bBSr" }, { "type": "encryption", "pointer": "/~1/D-zEu/~1/~0/IFc7U/~1/~1/thMlXffalW" } ] }, "groups": [ { "name": "sunt deserunt sint", "provenance": "Duis deserunt in ullamco adipisicing" }, { "name": "deserunt enim est voluptate", "provenance": "ad reprehenderit ex" }, { "name": "dolore elit dolore nisi", "provenance": "incididunt id" }, { "name": "nostrud tempor aliquip ullamco", "provenance": "non enim ad" } ], "type": "operation", "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "laboris", "provenance": "dolor" }, { "name": "ipsum nulla laboris", "provenance": "est aliqua sit magna id" } ], "_id": "568fd12d-7d18-c978-77c8-697931115bca", "description": "reprehenderit est aliquip consequat ut", "preAutomationTime": -37677377.92427304, "sla": 85394442.8988362, "errorHandler": null, "font_size": 12, "created": "1949-01-30T01:36:07.082Z", "created_by": null, "createdVersion": "aliquip labore est sint", "last_updated": "2000-06-19T11:11:56.846Z", "last_updated_by": null, "lastUpdatedVersion": "enim do", "tags": [ { "_id": "B63ff55fea790Dfdf060cc5a", "name": "elit dolore", "description": "occaecat officia nulla" }, { "_id": "fFB3BaCeCc57e9ECEBea0b4B", "name": "adipisicing nulla quis occaecat enim", "description": "in veniam qui Lorem sed" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/x1/JKF7v/~0/YKEssYiaPQO/~1" } ], "migrationVersion": -21792665 }, "created": null, "edit": "sint occaecat pariatur culpa", "success": false } ] }
{ "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" ] } } } }