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": 83399662.38887578, "y": -5050035.955965444 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 74289296.97529623, "y": 26269614.311569706 }, "error_handler": { "name": "childJob", "summary": "eu ullamco consectetur et", "description": "do occaecat ullamco", "app": "esse", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/NT/~0/h/ASS2u5EhW4" }, { "type": "encryption", "pointer": "/lLgA/H-u/~1/MeUXd/cOng/RIQP4a98ERK/A2xotjOWT8/bZBo/~0/e-Gd/VYUtp" }, { "type": "encryption", "pointer": "/Hi/~1/wXB/favjTwq+A0H/WPl/6awqA/~1/Gt1HNfXAoy/V5/~0/~0/k7LgeoJG" }, { "type": "encryption", "pointer": "/DHl,b0l/~0/~1/~0/~1/~1/vzhis/~0/~0" }, { "type": "encryption", "pointer": "/kSFdwX/~1/JdH4/zZ/jF/kj+bELX/NA" } ] }, "groups": [ { "name": "deserunt qui fugiat", "provenance": "nisi labore aliqua" }, { "name": "ut non Duis quis ut", "provenance": "irure nostrud nulla reprehenderit" } ], "type": "operation", "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "incididunt velit", "provenance": "proident eu" }, { "name": "anim reprehenderit", "provenance": "elit occaecat ut est" }, { "name": "ad cillum elit Duis", "provenance": "sunt" }, { "name": "Ut exercitation", "provenance": "ut" }, { "name": "deserunt", "provenance": "ullamco occaecat et" } ], "_id": "8e1984d3-7c95-0e03-d877-c1ddc82ca2c8", "description": null, "preAutomationTime": -93168682.31933668, "sla": -15507424.531753689, "errorHandler": null, "font_size": 12, "created": "2013-11-25T12:56:58.17Z", "created_by": null, "createdVersion": "irure reprehenderit est in culpa", "last_updated": "2009-01-23T21:54:55.692Z", "last_updated_by": null, "lastUpdatedVersion": "commodo laborum adipisicing", "tags": [ { "_id": "3eE87BAFbfe3ECCEFb983ca1", "name": "laborum Ut ut ad in", "description": "in magna" }, { "_id": "5f61ae937001CBb3f2e4DC10", "name": "consectetur id sed officia", "description": "sit Duis" }, { "_id": "B81eafe34aaa63Eb3EB5dadD", "name": "sint sunt elit velit aute", "description": "enim sed consectetur sint nostrud" }, { "_id": "3DdC5eFC3aCdB21B5A2ba5c3", "name": "reprehenderit ipsum ex", "description": "laborum et voluptate aute officia" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/qBW/~1/FXYISmYo23" } ], "migrationVersion": -57527433 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -348728.60360346735, "y": 51059485.56088528 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 23325107.623562098, "y": -25096656.29172097 }, "error_handler": { "name": "childJob", "summary": "non incididunt culpa est", "description": "non dolor cillum Lorem pariatur", "app": "sint fugiat", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/GiNk/~1/vhqzTJo-U/H/QG8g1-v27q" } ] }, "groups": [ { "name": "fugiat voluptate eiusmod sint tempor", "provenance": "eu adipisicing in ea" }, { "name": "aliquip", "provenance": "incididunt minim velit laborum" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "reprehenderit nulla", "provenance": "amet Lorem" }, { "name": "cupidatat", "provenance": "proident sit exercitation elit" }, { "name": "enim ut", "provenance": "officia incididunt" }, { "name": "officia in reprehenderit deserunt", "provenance": "ad ea" }, { "name": "elit reprehenderit pariatur nostrud", "provenance": "magna" } ], "_id": "4e5c4aa2-2cd4-52b3-2242-65a50b5e2c2f", "description": null, "preAutomationTime": 9634936.486034155, "sla": -58220966.66306073, "errorHandler": { "type": "quis nulla culpa in aliquip", "name": "veniam" }, "font_size": 12, "created": "1963-02-15T17:08:18.8Z", "created_by": null, "createdVersion": "sed mollit ipsum", "last_updated": "1951-05-31T19:46:13.589Z", "last_updated_by": null, "lastUpdatedVersion": "dolor", "tags": [ { "_id": "ffd70Ae442EE15B4FA9AE19D", "name": "cupidatat sit", "description": "sint sit sunt nisi id" }, { "_id": "7e3E4AEdA92BDbd6c5e1CCFd", "name": "esse ipsum", "description": "commodo proident ea aliqua" }, { "_id": "e64d3a63B40bA6f0beF8B0B4", "name": "cillum in", "description": "esse aute et" }, { "_id": "24902aCF2Be68bb923FaDA2C", "name": "mollit dolor", "description": "dolore commodo" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/~1/R18" }, { "type": "encryption", "pointer": "/~0/~1/Sk0W.d,C/N3peepRw/~1/jU-5S/vM6/~0/~0" }, { "type": "encryption", "pointer": "/rHEP-Ga/~0/Qo/tHOFQ59/z.lC9TxK" }, { "type": "encryption", "pointer": "/~1/mII/~1" } ], "migrationVersion": -96092959 } ] }
{ "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": "veniam Duis anim", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 3626429.871278122, "y": -78178945.10625258 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -67705239.60290378, "y": 50351166.64206138 }, "error_handler": { "name": "childJob", "summary": "nisi anim minim tempor quis", "description": "dolor est voluptate magna eiusmod", "app": "nulla", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~0/zd2jRrE/q2rOBSd/H/t/~0/~0/~0" }, { "type": "encryption", "pointer": "/~0/ioEFMZ,wPHo/i/nwFv.fm+/~0/qoVRkk.4thW/A0D/SyFPEXK2/j4XjDWZHK/~0/pQV" }, { "type": "encryption", "pointer": "/~1" }, { "type": "encryption", "pointer": "/~1/d" } ] }, "groups": [ { "name": "mollit", "provenance": "esse culpa" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "dolor veniam Duis id", "provenance": "consectetur cillum sit nostrud sunt" }, { "name": "nostrud", "provenance": "officia id ullamco laboris culpa" }, { "name": "aliquip", "provenance": "mollit Duis do" } ], "_id": "8a8af683-6ce5-221e-95da-52e7a7122a64", "description": "velit aliquip", "preAutomationTime": 7452310.618851811, "sla": -64026707.3369146, "errorHandler": { "type": "dolore", "name": "ex cillum esse cupidatat pariatur" }, "font_size": 12, "created": "1985-09-01T22:05:09.423Z", "created_by": null, "createdVersion": "labore dolor in id Excepteur", "last_updated": "1960-10-17T09:28:18.489Z", "last_updated_by": { "username": "sit laboris enim do", "provenance": "deserunt" }, "lastUpdatedVersion": "magna amet dolore labore", "tags": [ { "_id": "24eC9887A8dE1668FEc0CfB5", "name": "in ad nisi sint ea", "description": "culpa est" }, { "_id": "ffcDbb8Ff512b603AdB5EFAd", "name": "veniam anim", "description": "mollit et ullamco" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/~1/~1/~1/wAqlL/~0/~1/VrY+xRkYPTC/qD9//mT/Jep9O/aGPAr" }, { "type": "encryption", "pointer": "/~1/sWcy2/~0/yEqD.7pq/AW9YegUp/hb/YbYJ/~0" } ], "migrationVersion": -71949114 }, "edit": "anim in cillum", "success": false }, { "message": "aute in nisi consectetur", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -10890283.001366362, "y": 99433861.82132438 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -4547842.257913321, "y": -65666834.44007357 }, "error_handler": { "name": "childJob", "summary": "culpa nisi", "description": "Duis esse", "app": "est", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/jt29/acEQFra.w//Nv8W/~0" }, { "type": "encryption", "pointer": "/eXhqkT+O/YoudglyN/~1/~0/~0" }, { "type": "encryption", "pointer": "/Eo4DEIG,Y" }, { "type": "encryption", "pointer": "/~0" } ] }, "groups": [ { "name": "laboris", "provenance": "pariatur deserunt commodo" } ], "type": "operation", "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "eu dolore qui", "provenance": "non dolore anim eiusmod" }, { "name": "aute ad", "provenance": "Duis magna" } ], "_id": "ee908e2e-53d7-0840-5986-c2a2b5180b77", "description": "quis laboris velit ea", "preAutomationTime": -13141537.0448841, "sla": -27248768.866698384, "errorHandler": null, "font_size": 12, "created": "1981-11-19T04:47:34.069Z", "created_by": { "username": "Duis fugiat", "provenance": "dolor" }, "createdVersion": "aliquip pariatur dolore incididunt", "last_updated": "1979-08-09T08:17:11.187Z", "last_updated_by": null, "lastUpdatedVersion": "anim nisi", "tags": [ { "_id": "Aa8ee0DDeC169004EE77FA4F", "name": "dolor officia", "description": "nisi incididunt id do tempor" }, { "_id": "2DeEdF9349EfFea55e91afc3", "name": "deserunt", "description": "Lorem" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/Pu/~0/~0/jurx/RYKayV/u7espgZ2/~0/~1/~1" }, { "type": "encryption", "pointer": "/bKC-sPAeg8/JDVa4.r4d/~0/zc0w5y/JksZ/DOqkWJ/HdhOZ" }, { "type": "encryption", "pointer": "/IX/~0/GAx2G6j6N/~1/XSoo//~0/d" }, { "type": "encryption", "pointer": "/oBQQb1F" }, { "type": "encryption", "pointer": "/ql.Ome/~1" } ], "migrationVersion": 35516427 }, "edit": null, "success": true }, { "message": "cillum ut ea amet exercitation", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -44680667.591819435, "y": -17398047.88605243 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -12402368.022423893, "y": 26421773.309654474 }, "error_handler": { "name": "childJob", "summary": "amet cupidatat labore magna ut", "description": "pariatur ut tempor non dolore", "app": "eu", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/jfOvkx0Ctj/pAM3ct0zeHk/b+" }, { "type": "encryption", "pointer": "/dTYMr6h+/LXEBWPL2C/~1/~0" }, { "type": "encryption", "pointer": "/IBjxirJ/~1/~0/XJ2SdMYHU4/Y/~0/Bxj/XCzF6Z/go2yr/UH" }, { "type": "encryption", "pointer": "/~0/c/~0" } ] }, "groups": [ { "name": "irure eu dolor deserunt non", "provenance": "esse proident id nostrud minim" } ], "type": "operation", "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "sint Ut laboris", "provenance": "proident ut deserunt Duis in" }, { "name": "pariatur", "provenance": "exercitation aliqua amet" }, { "name": "esse ex", "provenance": "ea deserunt fugiat in" } ], "_id": "d10ea420-0446-04cf-abef-3bda329e9540", "description": null, "preAutomationTime": -85731012.95663403, "sla": -93759163.40566093, "errorHandler": { "type": "amet cillum", "name": "commodo et minim in veniam" }, "font_size": 12, "created": "1980-04-04T16:39:33.287Z", "created_by": { "username": "dolore", "provenance": "officia eiusmod proident dolore" }, "createdVersion": "consequat qui cillum cupidatat proident", "last_updated": "1969-01-14T13:59:47.158Z", "last_updated_by": null, "lastUpdatedVersion": "nisi ut", "tags": [ { "_id": "cb5cB9f0FdFf7Eb6A5B7BaEF", "name": "anim", "description": "amet anim id laboris" }, { "_id": "a40Ebb1585e11fc6B51CA42a", "name": "tempor", "description": "in magna" }, { "_id": "f99eF56A8B4EFB9fD59B8B65", "name": "ullamco", "description": "mollit et aute sint eiusmod" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/wa.-2WW/U,a,ltT/~1/yRY6Uu3B/~1/wtzfR" }, { "type": "encryption", "pointer": "/H4K7r9f" }, { "type": "encryption", "pointer": "/dpkj0km7vr/wlMBvQMdN" }, { "type": "encryption", "pointer": "/~1/~1/EINc" }, { "type": "encryption", "pointer": "/~1/Vv/AKULkF/u4drwHj/~0/OFqJ1/et.7NS91/~1/~0/q0v" } ], "migrationVersion": -12376213 }, "edit": "in consequat proident", "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" ] } } } }