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": [ { "name": "sed", "provenance": "est veniam" }, { "name": "adipisicing Ut labore quis", "provenance": "in culpa" }, { "name": "aliqua", "provenance": "commodo quis" }, { "name": "ipsum sed aute ex", "provenance": "aliquip Ut ex eiusmod" }, { "name": "consequat nisi adipisicing tempor qui", "provenance": "consectetur culpa" } ], "gridCoordinate": { "x": -35218908.3723899, "y": -4916068.13982451 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "sit reprehenderit", "provenance": "veniam labore dolore ipsum" }, { "name": "tempor", "provenance": "consectetur" }, { "name": "adipisicing aute est minim magna", "provenance": "sit laboris Excepteur est" } ], "nodeLocation": { "x": 28832909.068492755, "y": 27511821.474275514 } }, "error_handler": { "name": "childJob", "summary": "est nisi", "description": "proident", "app": "reprehenderit magna laborum officia", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/ciemuaWP/~0/~1/~0/QqCl/lMX9N7/~0/raV/~0/~0" }, { "type": "encryption", "pointer": "/~1/~0/~0/wyngu62nHa/~0/~0/~1/~1/~0" }, { "type": "encryption", "pointer": "/~0/~1/Ico/~0" }, { "type": "encryption", "pointer": "/d/nVyP7Gq5V/uqtVJ/lXd71eE" }, { "type": "encryption", "pointer": "/vK/a.pfZ5/~1/~1/~1/~0" } ] }, "groups": [ { "name": "ut", "provenance": "non eu proident Lorem" }, { "name": "do et Lorem", "provenance": "Lorem pariatur do cupidatat" }, { "name": "ipsum dolore", "provenance": "minim" } ], "type": "operation", "nodeLocation": { "x": 12779046.958173484, "y": -33785775.100963585 }, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "est voluptate dolore aliqua esse", "provenance": "cillum id" }, { "name": "ullamco consequat ea nulla adipisicing", "provenance": "esse aliquip mollit Duis" }, { "name": "do est labore", "provenance": "nostrud laboris est pariatur" }, { "name": "dolor cillum commodo id deserunt", "provenance": "Lorem culpa ex minim pariatur" } ], "_id": "3b830872-d9f0-5409-6765-e148ff496e0a", "description": null, "preAutomationTime": 9686154.608133271, "sla": -5974383.989763245, "errorHandler": { "type": "officia", "name": "ea" }, "font_size": 12, "created": "1978-09-13T10:01:04.011Z", "created_by": { "username": "labore ut ex", "provenance": "minim quis esse id laborum" }, "createdVersion": "ipsum exercitation Lorem", "last_updated": "1953-07-13T14:45:25.512Z", "last_updated_by": { "username": "non irure officia ipsum", "provenance": "ea mollit" }, "lastUpdatedVersion": "in labore", "tags": [ { "_id": "F24E33bf0Aab10aeCB5AC5DA", "name": "Ut", "description": "est reprehenderit sit ipsum proident" }, { "_id": "a6a1864AE0d381b7F787AfF0", "name": "pariatur sint elit dolore nulla", "description": "adipisicing" }, { "_id": "bC0597B4FebAdCA8f70C37fa", "name": "eiusmod labore", "description": "occaecat ut Ut sed" }, { "_id": "FB414bEd10d299a2E76bA26b", "name": "est laborum ut do nisi", "description": "minim elit labore commodo" }, { "_id": "a2De57fFfc6CfEcFa81dcEAb", "name": "elit", "description": "pariatur exercitation" } ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/x9nL0Lu" }, { "type": "encryption", "pointer": "/~0/~0/~0/~1/fU8/t4v9t" }, { "type": "encryption", "pointer": "/~0/vWpS" }, { "type": "encryption", "pointer": "/AS6/iX/~1/~1/~0/OfI1qyq9edL" }, { "type": "encryption", "pointer": "/guHjs/JT" } ], "migrationVersion": 97357540 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "eiusmod cillum Ut sint", "provenance": "quis laboris" }, { "name": "veniam eu dolor sit in", "provenance": "labore consequat Ut" }, { "name": "in non", "provenance": "sint enim" }, { "name": "ea", "provenance": "occaecat dolore magna Lorem sed" }, { "name": "adipisicing ad laborum ut cupidatat", "provenance": "dolore mollit sunt Ut Lorem" } ], "gridCoordinate": { "x": 20436722.89772594, "y": -56758658.40185051 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "mollit", "provenance": "sit fugiat dolore est Duis" }, { "name": "dolore", "provenance": "consectetur quis qui consequat eu" }, { "name": "laboris labore esse ullamco consequat", "provenance": "id dolore do" } ], "nodeLocation": { "x": 67568035.30319834, "y": 21852106.075744033 } }, "error_handler": { "name": "childJob", "summary": "eiusmod consequat do Ut cupidatat", "description": "pariatur", "app": "dolore", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/Pl/vW-o/~0" }, { "type": "encryption", "pointer": "/~0/abLGJnBk/~0/~0/jp7jeQw5/c6WyaqQTxGY/CJ2+Xsid9V5/f817iBJ61-" } ] }, "groups": [ { "name": "tempor ut", "provenance": "adipisicing" }, { "name": "do voluptate nostrud sed Duis", "provenance": "dolore anim eu et minim" }, { "name": "consectetur veniam", "provenance": "nulla" }, { "name": "amet dolore minim", "provenance": "dolore id occaecat" } ], "type": "operation", "nodeLocation": { "x": -90560556.83305058, "y": 40153992.29164967 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "proident aute culpa ex", "provenance": "dolor enim quis" }, { "name": "adipisicing irure", "provenance": "reprehenderit nostrud" }, { "name": "Duis ad fugiat", "provenance": "dolor sit" } ], "_id": "eb701436-d041-c8fd-a628-1ac11dec129c", "description": null, "preAutomationTime": -81704106.5090938, "sla": 78649956.44958559, "errorHandler": { "type": "veniam in", "name": "ipsum proident irure Ut Lorem" }, "font_size": 12, "created": "1946-12-09T23:40:56.213Z", "created_by": { "username": "non sit", "provenance": "adipisicing sit veniam magna" }, "createdVersion": "deserunt occaecat qui", "last_updated": "1949-09-02T11:07:08.988Z", "last_updated_by": null, "lastUpdatedVersion": "in dolor esse sed", "tags": [ { "_id": "793cbD90Aa92e01b60eDf983", "name": "consectetur deserunt ut", "description": "irure ut dolore qui Lorem" }, { "_id": "e34804903ab8ea1dAe7E3175", "name": "deserunt pariatur anim reprehenderit", "description": "do dolore exercitation aliqua" } ], "canvasVersion": 2, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/vVj/C1/QX/~0/~0" } ], "migrationVersion": 705289 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "aute proident", "provenance": "qui exercitation veniam" }, { "name": "sit ut adipisicing consequat officia", "provenance": "ad reprehenderit ipsum eu dolore" }, { "name": "est cillum fugiat quis", "provenance": "pariatur reprehenderit ut" } ], "gridCoordinate": { "x": 27944277.4571494, "y": -26542088.32920903 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "dolore et Excepteur sed cupidatat", "provenance": "fugiat reprehenderit qui" }, { "name": "in anim", "provenance": "esse" }, { "name": "mollit Duis labore", "provenance": "ut est dolor tempor" } ], "nodeLocation": { "x": 17818738.369329304, "y": -42297510.36488856 } }, "error_handler": { "name": "childJob", "summary": "adipisicing ut", "description": "adipisicing dolore", "app": "voluptate do laborum cillum cupidatat", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/nBGd/h/oEpW4L7jfC/~1/u/3sSWMS/~1" }, { "type": "encryption", "pointer": "/z/~0/~1/~0/WgE6/JAmb/~0" }, { "type": "encryption", "pointer": "/~1/E/Z-5/np8e7Cy/dTOM/cAZxyuETH6w/~0/~0/~0" } ] }, "groups": [ { "name": "culpa Duis", "provenance": "voluptate" } ], "type": "operation", "nodeLocation": { "x": 97227262.15898958, "y": -37313008.50119092 }, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "pariatur cillum ad", "provenance": "sunt do ullamco non" }, { "name": "voluptate nulla", "provenance": "labore" }, { "name": "dolor", "provenance": "ut fugiat enim voluptate nostrud" }, { "name": "Ut esse Lorem aute nisi", "provenance": "cillum do elit" } ], "_id": "e47dad76-aff2-4b36-3c4c-dfc9dee0e500", "description": "cillum aute voluptate in", "preAutomationTime": 2951679.2037162185, "sla": 74131238.32968503, "errorHandler": null, "font_size": 12, "created": "1986-09-19T05:10:43.912Z", "created_by": null, "createdVersion": "anim ea irure voluptate ex", "last_updated": "1957-10-28T04:25:49.858Z", "last_updated_by": { "username": "velit eu aliqua enim", "provenance": "nisi culpa esse et occaecat" }, "lastUpdatedVersion": "sed nisi", "tags": [ { "_id": "ec54B7D3F2Cf3aD10C8426DE", "name": "sunt mollit ut laboris sint", "description": "proident minim laboris deserunt reprehenderit" }, { "_id": "9ebCf3AeCE1ee9D9deD0eaFA", "name": "laboris fugiat mollit", "description": "sit velit dolore ut occaecat" } ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~1/~1/t-AK/wh7/fK4yk/~1" }, { "type": "encryption", "pointer": "/~1/~1/~1/DTytFnU.O/~0/~0/l4iBi/Zagv/~1" }, { "type": "encryption", "pointer": "/~1/re,5B2tDM1/oyG0Ml43n/D/~0/~1/~1/DfanNAfQh/~0/Fq3wa,G4n2/QmW" } ], "migrationVersion": 91221868 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "ipsum nisi occaecat veniam Lorem", "provenance": "tempor proident velit" } ], "gridCoordinate": { "x": -64409373.05813601, "y": 10492624.815311208 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "aliqua in", "provenance": "culpa" }, { "name": "sunt", "provenance": "in" }, { "name": "deserunt ea", "provenance": "incididunt velit nisi" }, { "name": "tempor adipisicing", "provenance": "pariatur non occaecat" } ], "nodeLocation": { "x": -8298611.2321712375, "y": -794509.5669412315 } }, "error_handler": { "name": "childJob", "summary": "Duis Excepteur occaecat enim sint", "description": "sed labore velit sit", "app": "incididunt ipsum", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~0/~1/~1/~1" }, { "type": "encryption", "pointer": "/tYa/~1/~0/~1/FpcGPZ/~1/~1/~0/~1" }, { "type": "encryption", "pointer": "/Hk/~1/jIDgSVTYe7/~1/GJsPj/~1/~0/zZbM/O1oZl9u.XI" } ] }, "groups": [ { "name": "sunt eiusmod in Ut", "provenance": "in magna sit pariatur" } ], "type": "operation", "nodeLocation": { "x": -56579177.743476585, "y": -73739663.51940298 }, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "ea adipisicing reprehenderit", "provenance": "pariatur Excepteur dolore" }, { "name": "in voluptate tempor esse", "provenance": "Duis veniam" }, { "name": "sint pariatur officia", "provenance": "consequat" }, { "name": "non cillum culpa ullamco", "provenance": "dolore esse in" }, { "name": "ipsum sunt nostrud Duis sed", "provenance": "in qui ad elit aliqua" } ], "_id": "a6909d92-a491-2231-52b7-6f607de2c232", "description": null, "preAutomationTime": -48092544.16758239, "sla": 45755009.165196955, "errorHandler": null, "font_size": 12, "created": "2017-04-03T20:13:34.368Z", "created_by": { "username": "amet Lorem nulla", "provenance": "dolore eu cillum" }, "createdVersion": "fugiat magna", "last_updated": "1998-02-24T05:34:29.413Z", "last_updated_by": null, "lastUpdatedVersion": "reprehenderit mollit est", "tags": [ { "_id": "3Ae608dB9c3aBfA7f4fE0ac3", "name": "in eu sunt", "description": "ut est eu mollit quis" }, { "_id": "a7d8e0ebb76B2abF6dEF1249", "name": "sint id amet proident", "description": "minim consectetur" }, { "_id": "4aeC2c0Edcaad7eB17B23BA4", "name": "voluptate anim consectetur", "description": "dolor ea anim" }, { "_id": "07Eb269C4c9EA7c05Ec3e62a", "name": "exercitation tempor laborum", "description": "quis pariatur" }, { "_id": "Ed3DDe01e8C7d1D3A8BCd9cF", "name": "sit", "description": "Excepteur ut aute aliquip exercitation" } ], "canvasVersion": 2, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/hB5n" }, { "type": "encryption", "pointer": "/kGZQ3h3cp8Q/X3eOaR0OJ/dz.maKeF1O/osHHQsrWlU/oNO/~0/qTbP/~1/~1" }, { "type": "encryption", "pointer": "/~0/DjXXt6Cnz/~0/~1/~1/uQ3LmOMFHF/H0i" }, { "type": "encryption", "pointer": "/sp60m31+X" }, { "type": "encryption", "pointer": "/~1/~1/~1" } ], "migrationVersion": 43385916 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "elit id est", "provenance": "exercitation" }, { "name": "Lorem veniam", "provenance": "ullamco tempor adipisicing Lorem nulla" }, { "name": "Ut in dolor", "provenance": "labore do amet" }, { "name": "Ut laboris eiusmod", "provenance": "dolore est" } ], "gridCoordinate": { "x": -12200440.508249775, "y": -831123.4915423095 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "fugiat", "provenance": "mollit ullamco aute incididunt" }, { "name": "Ut sunt amet Excepteur", "provenance": "laborum eu ea" }, { "name": "reprehenderit", "provenance": "dolor aliquip est anim" }, { "name": "commodo velit sit aliqua", "provenance": "dolore enim cupidatat pariatur" } ], "nodeLocation": { "x": 206236.015794307, "y": 5336691.31544508 } }, "error_handler": { "name": "childJob", "summary": "ullamco sit eiusmod", "description": "ea", "app": "aliqua reprehenderit", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/Vbx7N.2opui" }, { "type": "encryption", "pointer": "/N/~0/~0/~1/Z2nd9C/~1/~0/~1/~1/Ap/~0" }, { "type": "encryption", "pointer": "/~0/~1" }, { "type": "encryption", "pointer": "/KLNGLi-bR.i/~0/~0" } ] }, "groups": [ { "name": "dolore ut eu", "provenance": "sed occaecat do" }, { "name": "dolor veniam", "provenance": "non sed" }, { "name": "esse deserunt", "provenance": "magna ullamco officia adipisicing sint" }, { "name": "ex sit", "provenance": "aliquip" } ], "type": "operation", "nodeLocation": { "x": 33893044.8171006, "y": 18748406.750682145 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "pariatur dolor", "provenance": "ipsum ullamco est non" }, { "name": "ipsum pariatur", "provenance": "in in" }, { "name": "sint aute sed", "provenance": "esse eu ea commodo ut" }, { "name": "deserunt nisi incididunt in", "provenance": "reprehenderit non eu exercitation" } ], "_id": "c4e6ddaf-d2a3-4609-aa26-9b554a679ac6", "description": "nulla", "preAutomationTime": -33769309.578465335, "sla": 9275863.670829222, "errorHandler": { "type": "laborum", "name": "exercitation cillum" }, "font_size": 12, "created": "2016-03-02T19:05:04.697Z", "created_by": null, "createdVersion": "amet laborum laboris aute ipsum", "last_updated": "1963-08-16T20:35:28.797Z", "last_updated_by": { "username": "nisi eiusmod reprehenderit", "provenance": "cupidatat amet" }, "lastUpdatedVersion": "sit", "tags": [ { "_id": "aECc8c3a20e1bb4cfEceFa40", "name": "quis Ut consectetur exercitation ex", "description": "irure in proident" } ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/kHHvS/~0/ON-i+xL/WnJD/AU/hcD/wRr1h/~0" }, { "type": "encryption", "pointer": "/~1/s1Q+tsAWv/EyvsBi/~0/~0" } ], "migrationVersion": 32698835 } ] }
{ "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": "consectetur", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "dolore amet", "provenance": "dolore esse deserunt" }, { "name": "consectetur", "provenance": "commodo adipisicing eu" }, { "name": "officia deserunt amet Excepteur", "provenance": "ea id reprehenderit consectetur" }, { "name": "dolore aliquip dolor esse", "provenance": "quis nulla aliquip" }, { "name": "exercitation Lorem culpa non", "provenance": "esse" } ], "nodeLocation": { "x": -88885159.52958542, "y": 47692248.03688839 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "laborum", "provenance": "eu" }, { "name": "consequat id adipisicing eiusmod cillum", "provenance": "ut" }, { "name": "Excepteur deserunt esse", "provenance": "reprehenderit" }, { "name": "irure cillum aliqua", "provenance": "dolor non ea eu dolor" }, { "name": "consectetur Ut qui eu quis", "provenance": "dolore" } ], "nodeLocation": { "x": 64182248.99413252, "y": 11048318.03093566 } }, "error_handler": { "name": "childJob", "summary": "sit Lorem magna consequat", "description": "non", "app": "id occaecat Duis velit non", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~1/~0/mpuxzS0" }, { "type": "encryption", "pointer": "/~1/hPIh6/~1/~0/jndQA+fAL/~0/hj" }, { "type": "encryption", "pointer": "/BXQYj4/~0/UgEX/~0/cT/~0/~1" }, { "type": "encryption", "pointer": "/l5X62qDFu.b/~0/dF5LSA8RPA/ANm2G0/zQL8/pWHDJSEMpaU" }, { "type": "encryption", "pointer": "/H6wgeDxw/~1/~0/hyJkY7jY31" } ] }, "groups": [ { "name": "et consequat enim consectetur nulla", "provenance": "sunt irure" } ], "type": "operation", "x": 9097032.715763077, "y": -77795274.47045732, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "sed pariatur", "provenance": "id qui" } ], "_id": "77abb77e-0953-281f-476b-cccbe57b0aab", "description": null, "preAutomationTime": -95979233.88856299, "sla": 45146171.392615825, "errorHandler": null, "font_size": 12, "created": "1973-09-29T20:48:27.664Z", "created_by": { "username": "esse amet nulla", "provenance": "ipsum do eu aliquip sunt" }, "createdVersion": "minim", "last_updated": "1990-10-07T15:35:34.196Z", "last_updated_by": { "username": "officia dolore laborum ad", "provenance": "laboris" }, "lastUpdatedVersion": "minim deserunt", "tags": [ { "_id": "9680aC0E546C34030E2F0b8e", "name": "officia pariatur", "description": "dolore laborum culpa fugiat nisi" }, { "_id": "DC8C8d18C4edEFF29dA2DACB", "name": "nisi cupidatat eiusmod quis", "description": "adipisicing eu labore exercitation esse" }, { "_id": "Fdc73E64Ea1a77c14ff233cc", "name": "id sint commodo et", "description": "ex veniam laborum tempor" }, { "_id": "cC9EADB57d3acBff314cc7DA", "name": "quis in", "description": "reprehenderit adipisicing sunt" }, { "_id": "Bf8b1EaBB44c546bfaFbb2EA", "name": "quis aute commodo", "description": "nostrud do" } ], "canvasVersion": 2, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/dp.FJ2/~1/~0/i62.dcBIy7/K+n1/C57,Vb0,-GE/Fvz.iV/~1/Q99/~0/w.DmmEKGkl" }, { "type": "encryption", "pointer": "/~0/iX5nuAZU/AlHK7Ah/~0/~0/TCnrzapiTX/~1/EQ5gFDb/~1" }, { "type": "encryption", "pointer": "/~0" } ], "migrationVersion": -8151504 }, "edit": null, "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.", "oneOf": [ { "type": "string" }, { "type": "null" } ] } }, "required": [ "status", "message", "original", "created", "edit" ] } } } }