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": -1808327.0773992836, "y": 49101523.553357124 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 70127807.25026944, "y": 92057293.7003415 }, "error_handler": { "name": "childJob", "summary": "nulla ea sed dolore", "description": "aliquip velit anim", "app": "mollit", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~1/~0/yWv2fPu/Xosoel/~1/~0/~1" }, { "type": "encryption", "pointer": "/cMh+6npJ3j+/XLN/CFfU5o-i/P/~1/~0/HsBfvpcfT/~1/hMm/Ag/wZv" } ] }, "groups": [ { "name": "aute consequat commodo et", "provenance": "in dolor Excepteur non in" }, { "name": "aute dolore", "provenance": "irure officia ullamco laboris" }, { "name": "aliquip dolore exercitation labore in", "provenance": "voluptate veniam adipisicing do" }, { "name": "dolore proident", "provenance": "veniam dolore" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "commodo", "provenance": "dolor adipisicing" }, { "name": "dolore ut ea", "provenance": "Lorem Excepteur elit et laborum" } ], "_id": "060aff50-a9ce-5624-16fb-4abc0edf3fa6", "description": "reprehenderit sint", "preAutomationTime": -48018459.34446387, "sla": -92299428.43655623, "errorHandler": null, "font_size": 12, "created": "2000-07-01T00:39:18.004Z", "created_by": { "username": "aute dolore", "provenance": "anim dolore ex" }, "createdVersion": "irure laboris in tempor", "last_updated": "2003-05-12T15:03:15.686Z", "last_updated_by": { "username": "laboris in", "provenance": "cillum voluptate tempor mollit" }, "lastUpdatedVersion": "irure", "tags": [ { "_id": "feE065A07Fe7e1aC9CFa8FaC", "name": "voluptate exercitation deserunt sed in", "description": "sint" }, { "_id": "b6e36f0DF77fDda7603f4fBc", "name": "adipisicing", "description": "dolore in" }, { "_id": "9a33B23CD70eE189AE1625E6", "name": "cillum velit sunt aliqua", "description": "sed" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/~0/~0/~1/yOkEGfDWLP/~1/~0" } ] }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -57250970.78758319, "y": 18577027.1797121 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -79794981.7900673, "y": 56918893.504015565 }, "error_handler": { "name": "childJob", "summary": "commodo esse quis", "description": "nostrud reprehenderit", "app": "sint", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1" } ] }, "groups": [ { "name": "proident ut qui aliqua amet", "provenance": "magna ullamco mollit" }, { "name": "mollit do", "provenance": "Ut eu" }, { "name": "mollit nostrud culpa anim", "provenance": "tempor deserunt nulla" }, { "name": "ut esse ipsum sed ut", "provenance": "in velit occaecat cupidatat tempor" }, { "name": "labore minim cillum in quis", "provenance": "et non officia pariatur" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "esse ex eu veniam velit", "provenance": "velit nostrud non sit" }, { "name": "dolor", "provenance": "nulla Duis ut" }, { "name": "sit dolore mollit elit", "provenance": "tempor" } ], "_id": "908d7e88-6c8c-fd23-f9ff-ce9011420b29", "description": null, "preAutomationTime": -84955636.87127677, "sla": 85480710.80234993, "errorHandler": null, "font_size": 12, "created": "2004-06-30T11:56:41.099Z", "created_by": null, "createdVersion": "Lorem", "last_updated": "1955-01-08T01:06:34.301Z", "last_updated_by": null, "lastUpdatedVersion": "ipsum labore Lorem in nisi", "tags": [ { "_id": "a1eF783bdbFdDadaEEB0c5E8", "name": "labore cupidatat occaecat elit dolore", "description": "qui incididunt est" }, { "_id": "3Cd1CDDCdFe3C65fa23a3Fd4", "name": "ad anim ullamco deserunt ut", "description": "irure sed dolor consequat" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/~0/~0/~1/ZP/YCk" }, { "type": "encryption", "pointer": "/csNn+mFpc5q/~0/~0/gUN3/~1/~1/j/~1/FYqeVfc" }, { "type": "encryption", "pointer": "/~0/Et/~1/Y" } ] }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 79830946.74979553, "y": 28857788.924386084 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -46166564.51581771, "y": -66510503.44725768 }, "error_handler": { "name": "childJob", "summary": "et dolore culpa", "description": "aute", "app": "dolore aliquip magna labore", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~1/~0" }, { "type": "encryption", "pointer": "/~1/yKCt.+6Iqsh/~1/EAfPD/deU/te.XOA/E/ZtBz1,rF0LF/~0/~1" }, { "type": "encryption", "pointer": "/~1/~0/~1/VhY/y7YO0" } ] }, "groups": [ { "name": "fugiat minim eu nulla ex", "provenance": "incididunt cupidatat" }, { "name": "aliqua dolor anim velit qui", "provenance": "in" }, { "name": "eu", "provenance": "tempor fugiat amet pariatur" } ], "type": "operation", "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "magna", "provenance": "Lorem enim anim consequat" }, { "name": "proident reprehenderit aute ipsum sed", "provenance": "ut dolor" }, { "name": "velit Excepteur qui sed", "provenance": "officia reprehenderit esse fugiat Excepteur" }, { "name": "Duis esse aliqua", "provenance": "sunt" }, { "name": "occaecat esse Duis", "provenance": "officia nisi irure ut" } ], "_id": "fc562373-a5f1-2dfd-5133-a3e7ad4145b7", "description": "eu Excepteur", "preAutomationTime": -49448155.76145327, "sla": 47584362.70050189, "errorHandler": { "type": "ea eiusmod eu exercitation", "name": "in dolore" }, "font_size": 12, "created": "1986-12-06T01:19:38.636Z", "created_by": { "username": "dolore dolor proident", "provenance": "sit" }, "createdVersion": "anim ex eiusmod", "last_updated": "2011-12-08T09:26:53.059Z", "last_updated_by": null, "lastUpdatedVersion": "do aliqua ipsum occaecat ut", "tags": [ { "_id": "7cb95DE986ec8DacA8da4F56", "name": "pariatur", "description": "cillum" }, { "_id": "95C6A2E32288f7Fa0D1ee2Cc", "name": "adipisicing in officia sint tempor", "description": "ut fugiat" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~1" }, { "type": "encryption", "pointer": "/y6dsI,av/~1/~1/bKzhLoREklA/~0/~1/~0/FNgiUqTl/~0" }, { "type": "encryption", "pointer": "/XQ/~0/wmhuOw6m/I.p+zd3/lVB/OqV2C.P2/cc" }, { "type": "encryption", "pointer": "/XFNvMF9/~1/~1/~0/Gbwnkye/~0/~0" }, { "type": "encryption", "pointer": "/~0/~1/~0/~1/M-YcW/~0/YNe/~1/e1,A/~0/~1" } ] }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -4499557.022146121, "y": -52177496.947107516 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 83940975.48437348, "y": -72340774.99042839 }, "error_handler": { "name": "childJob", "summary": "laborum cillum ex", "description": "ea culpa pariatur", "app": "nulla laboris", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/KPgYg46ECIe/~0/SQKgNkotyr/rYsqz/~0/JF/z1z/~0/JNrIVNGbf/~0/~0" } ] }, "groups": [ { "name": "nostrud", "provenance": "dolore occaecat" }, { "name": "ut", "provenance": "occaecat non cupidatat" }, { "name": "ipsum velit", "provenance": "aliqua occaecat enim nostrud in" }, { "name": "reprehenderit", "provenance": "irure mollit eu" } ], "type": "operation", "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "Duis tempor", "provenance": "eiusmod sit" }, { "name": "officia labore eiusmod ex", "provenance": "cillum ad qui" }, { "name": "aute", "provenance": "qui culpa ea" }, { "name": "Lorem ut exercitation", "provenance": "amet" }, { "name": "est non ipsum", "provenance": "enim sed ex" } ], "_id": "96886bb9-b44e-82b7-9911-4cb9a8bf2d21", "description": "ipsum sed dolor", "preAutomationTime": -90551672.19330187, "sla": 93140934.41643566, "errorHandler": { "type": "Duis officia culpa reprehenderit", "name": "exercitation ut pariatur dolor" }, "font_size": 12, "created": "1972-01-22T14:21:09.468Z", "created_by": { "username": "enim occaecat aute culpa dolore", "provenance": "esse et labore officia" }, "createdVersion": "sed laborum", "last_updated": "1968-08-15T12:02:05.205Z", "last_updated_by": null, "lastUpdatedVersion": "enim aliqua veniam", "tags": [ { "_id": "BbBCa12Bd4bFfD69dE9FbABc", "name": "culpa pariatur", "description": "pariatur in dolore dolor et" }, { "_id": "B5fA2BadCeccecA71e2fadDB", "name": "ut anim", "description": "eu cillum esse dolore" }, { "_id": "b1eB5dCaeb5Dd8C2EEc46c53", "name": "in proident", "description": "do aute" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/pf" } ] } ] }
{ "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": "nulla in", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 70279239.16219053, "y": -97973263.00179496 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -27834317.128823563, "y": -1471202.3983367085 }, "error_handler": { "name": "childJob", "summary": "Excepteur occaecat ut est qui", "description": "officia quis elit esse ea", "app": "dolor qui dolore veniam", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/YxtZ/M/~1/~1/xySw9dBB/~0/~1/~0/JsND/~1" } ] }, "groups": [ { "name": "in veniam", "provenance": "fugiat irure Excepteur culpa incididunt" }, { "name": "fugiat deserunt eiusmod ipsum", "provenance": "fugiat commodo laborum elit sint" }, { "name": "laborum ex aliquip Excepteur aliqua", "provenance": "eu et consequat elit ex" } ], "type": "operation", "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "veniam eu exercitation", "provenance": "consectetur occaecat velit adipisicing" }, { "name": "sunt", "provenance": "eiusmod aliquip" }, { "name": "proident ad non cupidatat", "provenance": "deserunt sed labore eiusmod" } ], "_id": "ee265f3b-b723-e71a-b7ad-339d7ebc3ce1", "description": null, "preAutomationTime": -35886857.60712602, "sla": -46753053.87142017, "errorHandler": { "type": "Lorem anim aliquip enim deserunt", "name": "qui" }, "font_size": 12, "created": "1979-01-21T08:14:50.278Z", "created_by": { "username": "elit cupidatat ad in voluptate", "provenance": "proident" }, "createdVersion": "enim Lorem aute", "last_updated": "2001-05-02T22:50:46.634Z", "last_updated_by": null, "lastUpdatedVersion": "dolor veniam id", "tags": [ { "_id": "Ef7d8A6BFCcd75aF62CAa3b8", "name": "labore nisi sed reprehenderit nulla", "description": "Ut labore officia incididunt in" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/noHfvICB/xdVq/~1/~1/Am+eBuPTrl5/lQB/hrzo/Wb.ms-9uU/~1" }, { "type": "encryption", "pointer": "/DJ-B7/aEk/~0/p/gB484/~0" }, { "type": "encryption", "pointer": "/T/qCFdnX4/Wk/il/oD" }, { "type": "encryption", "pointer": "/opScq9,6/UE/tu/~0/~0/~0/~1" }, { "type": "encryption", "pointer": "/poUYYuH+jbQ/b.Q/jq8pF0ay.5H/~1/~0/~1" } ] }, "created": null, "edit": "qui est id ipsum", "success": false }, { "message": "elit", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 70904206.74179533, "y": 52056802.895159274 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 88988334.56876072, "y": 26103447.417149097 }, "error_handler": { "name": "childJob", "summary": "ut elit cillum irure", "description": "ea amet", "app": "aliquip do ea", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/S5yM4dFr4i/~0/Weqx6L-ly/~1/~1/~0/~0" }, { "type": "encryption", "pointer": "/~1/cQ8mYU/Sx6I/~0/~0/m/di-C/iP/psj5j/~0" }, { "type": "encryption", "pointer": "/~0/ec/~1/~1" }, { "type": "encryption", "pointer": "/FKIpZHEAP/qTRy88s/~0/KWBtLg-k/vDZe/~1/~1/skIZ/m/~1/~1" } ] }, "groups": [ { "name": "consectetur Lorem tempor", "provenance": "exercitation quis" }, { "name": "non Excepteur Ut", "provenance": "nisi id nostrud esse" }, { "name": "officia sunt est aliquip", "provenance": "eiusmod anim in" } ], "type": "operation", "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "dolor do in labore non", "provenance": "mollit tempor dolor" }, { "name": "sunt cillum minim", "provenance": "laborum sint eu" } ], "_id": "34053cde-274a-c421-c7cf-1cd0ec2c25c2", "description": "magna labore et", "preAutomationTime": 63211602.373119324, "sla": -34731612.68668603, "errorHandler": null, "font_size": 12, "created": "2015-12-04T05:08:07.839Z", "created_by": { "username": "pariatur eiusmod quis sed", "provenance": "mollit occaecat eu laboris" }, "createdVersion": "consequat ea nisi est adipisicing", "last_updated": "1996-07-23T22:15:02.157Z", "last_updated_by": null, "lastUpdatedVersion": "ad in anim", "tags": [ { "_id": "adf43dfD50b26d8D549df7BE", "name": "dolor", "description": "in" }, { "_id": "Fe39Ad45fcb882Bf7C391DD8", "name": "Duis", "description": "consectetur pariatur in dolore laborum" }, { "_id": "9D9ABF9bcb0DA70cB2EEE4AC", "name": "anim ut", "description": "in ad" }, { "_id": "5581FAf2eFf4D747Bd81Fa4E", "name": "dolor in deserunt", "description": "aliqua ut" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/VJcU8-a" }, { "type": "encryption", "pointer": "/jge,1IqfBgy/RBg/fr/~1/~1/kfBe7hTE/vL" }, { "type": "encryption", "pointer": "/r-ewU0ov+SK/qHhu815qqd/Dkj/~1/f3BJxHV6/MqD46pV+G/~1" } ] }, "created": null, "edit": null, "success": false }, { "message": "amet proident ipsum", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 68782865.12939224, "y": -98190260.23758148 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 24123692.57079062, "y": 92143960.17658216 }, "error_handler": { "name": "childJob", "summary": "officia Excepteur", "description": "reprehenderit eiusmod sed tempor", "app": "in dolor veniam aliquip", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~1/~1/Cx92zzq/WetGeMhsHT/~1/FJX/pKD9LoPh" }, { "type": "encryption", "pointer": "/~1/WkcD/X6MKTJ+NH/~0/~0/Tv57Sqq/P-9gvmG/~0/wAsNj" } ] }, "groups": [ { "name": "do eu nulla", "provenance": "qui dolore" }, { "name": "pariatur mollit officia consequat", "provenance": "enim sed consectetur consequat" }, { "name": "anim", "provenance": "minim ad consectetur et culpa" }, { "name": "eiusmod Duis dolor incididunt", "provenance": "ex et non" }, { "name": "occaecat anim", "provenance": "dolore magna" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "mollit consequat cupidatat", "provenance": "ex sunt pariatur" }, { "name": "id", "provenance": "sed velit" }, { "name": "ut laboris", "provenance": "ex ipsum aute" } ], "_id": "6abe6094-5ec6-6519-d46e-4183706e8747", "description": "nostrud do id", "preAutomationTime": 47746171.99484661, "sla": 86458485.04127836, "errorHandler": { "type": "cillum Lorem", "name": "laboris commodo Lorem laborum" }, "font_size": 12, "created": "2014-10-18T03:35:18.487Z", "created_by": null, "createdVersion": "commodo", "last_updated": "1953-04-28T04:19:40.663Z", "last_updated_by": null, "lastUpdatedVersion": "ipsum sit incididunt id cillum", "tags": [ { "_id": "A9bC6DCAbfBdDefBA177eEDE", "name": "quis laboris labore do esse", "description": "enim dolor consectetur laboris" }, { "_id": "B167a6e45D4cC0c8CB3FD33f", "name": "nisi ut magna", "description": "fugiat" }, { "_id": "e0C82e13cfbD1c6595E596eb", "name": "irure dolore elit", "description": "quis laboris" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/~0/UjgnxM/Iy/s2/~1/QlpOc/sdrUw/~1/~1/pVXwjG0" }, { "type": "encryption", "pointer": "/axbuMtC,s/~1/Q/N8CGw36D/~1/~1/o0+D2/HUx4DakXz" }, { "type": "encryption", "pointer": "/WM/ol,Tu/KP,C/Hq8J3wb/g/~0" }, { "type": "encryption", "pointer": "/CZ50q6.85/Q8zgNyv/~1/~0/~1/w8r,u117k3y/~1/~1/~0/~0" } ] }, "edit": "incididunt sint", "success": false }, { "message": "proident sit cillum dolore", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -53966673.0750854, "y": -13798074.01509811 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 12960019.725662693, "y": 63334720.03519791 }, "error_handler": { "name": "childJob", "summary": "sit", "description": "do minim", "app": "mollit officia exercitation magna laborum", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/Mbmy/sn/~1/G6oX/~1/~0/~0" }, { "type": "encryption", "pointer": "/~0/~0/~1/~1/MJZfvhzX/y-x8/ME-Kl/OZ/HS1.gJQPvp/BbILX/~0" }, { "type": "encryption", "pointer": "/nerE/~1/Q/WLaYdyi8P./~0/~1/~1/jN3zYWA/rwnrhFn/Q,65wc3Xd/~0" }, { "type": "encryption", "pointer": "/c0jYM/EYmp-Nwr/F82/~0/~0/V/~0/~0/~1" } ] }, "groups": [ { "name": "sit aute sed irure", "provenance": "culpa aliqua commodo cillum" }, { "name": "et Lorem ipsum mollit aliqua", "provenance": "ut amet deserunt nisi sint" }, { "name": "ipsum ad minim quis aliquip", "provenance": "ipsum laborum" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "labore qui eu", "provenance": "nulla ut" }, { "name": "proident ea ad pariatur nisi", "provenance": "adipisicing nulla quis velit est" }, { "name": "magna nisi ut aute anim", "provenance": "pariatur ut in in" }, { "name": "qui mollit id incididunt", "provenance": "exercitation" }, { "name": "labore commodo aliquip Excepteur", "provenance": "occaecat" } ], "_id": "8be434cb-19f7-b086-ae62-05b2bc9ddb0f", "description": null, "preAutomationTime": -68364523.02038603, "sla": -89977000.56187825, "errorHandler": null, "font_size": 12, "created": "1978-09-02T19:37:07.408Z", "created_by": { "username": "consectetur", "provenance": "cillum amet ea ex proident" }, "createdVersion": "est consectetur", "last_updated": "2001-07-20T06:18:32.489Z", "last_updated_by": { "username": "do amet non sunt", "provenance": "esse et" }, "lastUpdatedVersion": "dolor commodo ipsum laborum non", "tags": [ { "_id": "49e6c2d6eeB6B3eCFa7C20ad", "name": "laboris dolore", "description": "do nostrud laborum exercitation" }, { "_id": "DC31759dE33AA6Daf18d599c", "name": "mollit", "description": "cupidatat" }, { "_id": "2B9dfeeeCCcA05e6860AAcCd", "name": "irure velit amet deserunt", "description": "aliquip labore" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/HQOP5WyuPbX/~0" }, { "type": "encryption", "pointer": "/pye9" } ] }, "created": null, "edit": "dolor sed ut", "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" ] } } } }