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": "est", "provenance": "sed nisi eiusmod et ea" }, { "name": "et", "provenance": "ipsum ut in" }, { "name": "ut sunt sit veniam officia", "provenance": "laborum" }, { "name": "magna quis pariatur reprehenderit", "provenance": "ut sit" } ], "gridCoordinate": { "x": 1339870.7818731219, "y": 37397817.50845054 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "exercitation id", "provenance": "tempor" } ], "nodeLocation": { "x": 73893180.05552825, "y": -71832249.0562393 } }, "error_handler": { "name": "childJob", "summary": "commodo non", "description": "Duis occaecat", "app": "elit occaecat incididunt reprehenderit commodo", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/oBXHYA+j/Elum2/~1" }, { "type": "encryption", "pointer": "/~0" } ] }, "groups": [ { "name": "officia dolore eu et in", "provenance": "non" }, { "name": "magna ut dolor in voluptate", "provenance": "in enim" } ], "type": "operation", "x": 70123031.39491495, "y": -5849782.729713082, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "veniam in", "provenance": "cillum" }, { "name": "Duis nulla velit pariatur cupidatat", "provenance": "laboris tempor aute mollit" }, { "name": "non et minim", "provenance": "sunt nostrud magna quis" } ], "_id": "50211f72-57a0-2b60-c444-267083509e87", "description": null, "preAutomationTime": 95419770.32201436, "sla": 31309793.155158296, "errorHandler": null, "font_size": 12, "created": "2000-09-01T04:10:15.441Z", "created_by": { "username": "consectetur", "provenance": "reprehenderit non" }, "createdVersion": "qui officia ullamco adipisicing in", "last_updated": "1972-02-29T07:32:00.259Z", "last_updated_by": null, "lastUpdatedVersion": "fugiat magna dolore voluptate", "tags": [ { "_id": "cd0Ff74a4Af523e22B6CbaFE", "name": "dolor commodo fugiat est enim", "description": "pariatur sint exercitation" }, { "_id": "AC39dCdebE85F2A8E0eBf42f", "name": "Duis", "description": "quis enim dolore et sunt" }, { "_id": "7FEBb9D1fB8fdE5878Baac9A", "name": "elit non ipsum", "description": "veniam" }, { "_id": "F16cC2Fb1Af5A489af31806E", "name": "ea amet in magna velit", "description": "labore laborum" }, { "_id": "35d06A075c96b601eDa7a0BA", "name": "id", "description": "nostrud aute" } ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/~0/~1/Q/~1/QxdTCRl/~1/rD,kg/~0" }, { "type": "encryption", "pointer": "/~1/~1/wxuYL2r/~1/PrIHnpWj4/~1/~0/~1/R" }, { "type": "encryption", "pointer": "/~1/Ii-+Ad/~1/~0" } ], "migrationVersion": -55221187 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "ex mollit et ut", "provenance": "reprehenderit nulla deserunt" }, { "name": "cillum culpa in", "provenance": "est" }, { "name": "Excepteur reprehenderit sunt irure sint", "provenance": "ipsum sunt" }, { "name": "velit", "provenance": "esse amet adipisicing est" }, { "name": "esse", "provenance": "eiusmod" } ], "gridCoordinate": { "x": -15423467.54582496, "y": 94135353.18243268 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "aliquip", "provenance": "consectetur eu ut reprehenderit exercitation" }, { "name": "est Ut amet", "provenance": "cillum officia qui reprehenderit" }, { "name": "incididunt", "provenance": "dolor occaecat" } ], "nodeLocation": { "x": -66644124.93777095, "y": -31148867.546125606 } }, "error_handler": { "name": "childJob", "summary": "tempor enim", "description": "nisi", "app": "ea esse laboris magna", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~1/Z2UGMnNDDu/iGBG/~1/~0/~1/TdZQ-YA3/GF,v/dAkg27" } ] }, "groups": [ { "name": "do eiusmod mollit", "provenance": "nostrud do in fugiat" } ], "type": "operation", "x": -30438774.585162193, "y": 87133742.10622203, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "ad Lorem in aliquip dolor", "provenance": "eu Lorem aute consequat" }, { "name": "qui sed", "provenance": "ut nulla" }, { "name": "reprehenderit cupidatat sunt", "provenance": "sint" }, { "name": "ut aliquip elit velit in", "provenance": "sit labore amet" } ], "_id": "2e39c21d-eccc-5681-6ecb-653844e8fe99", "description": "sint tempor occaecat", "preAutomationTime": 53454666.38620886, "sla": 37768725.006977856, "errorHandler": null, "font_size": 12, "created": "1998-03-06T06:29:56.785Z", "created_by": { "username": "occaecat exercitation", "provenance": "exercitation laborum occaecat ut" }, "createdVersion": "aute adipisicing dolor Duis exercitation", "last_updated": "2020-03-28T04:51:30.348Z", "last_updated_by": { "username": "irure cupidatat magna", "provenance": "ipsum ut Duis eu" }, "lastUpdatedVersion": "eu", "tags": [ { "_id": "bf8bA7c8c574EEEd382FBf1E", "name": "sunt ipsum occaecat", "description": "fugiat Ut consectetur consequat irure" }, { "_id": "7bCb602abCb96b26f0D6b896", "name": "cupidatat eiusmod", "description": "officia consectetur" }, { "_id": "c1e9978c1ddd7CBEF2cDCEac", "name": "labore", "description": "dolore pariatur ut" }, { "_id": "ddf6eea6fa13B377B887E19E", "name": "cillum anim dolor ut Lorem", "description": "anim officia" } ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/~1/vPXaY/QYLAr/hxcquS/~0" } ], "migrationVersion": -89273646 } ] }
{ "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": "ut commodo veniam", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "aliquip", "provenance": "commodo est" }, { "name": "dolore labore", "provenance": "adipisicing" }, { "name": "ea", "provenance": "sunt" }, { "name": "aute ex ad", "provenance": "aliquip deserunt ex dolore" } ], "gridCoordinate": { "x": 47999551.48296738, "y": -92555588.4095203 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "commodo ex cupidatat sit adipisicing", "provenance": "enim dolor" }, { "name": "esse", "provenance": "Lorem fugiat" }, { "name": "ad quis voluptate aliquip cillum", "provenance": "cillum elit" }, { "name": "laboris", "provenance": "pariatur Duis aute" }, { "name": "adipisicing enim aliqua quis", "provenance": "occaecat nostrud" } ], "nodeLocation": { "x": -8296882.541526735, "y": 53371506.86080405 } }, "error_handler": { "name": "childJob", "summary": "tempor deserunt sint nostrud", "description": "minim", "app": "Ut", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~1/~0/~0/~0/~1" }, { "type": "encryption", "pointer": "/~0/~0/~1/~1/~0/iq3BLsQhm/~0/V,vFYHX," }, { "type": "encryption", "pointer": "/Zayo/h/~1/IcCN/TvB,/~0" } ] }, "groups": [ { "name": "incididunt do", "provenance": "quis labore eiusmod commodo" }, { "name": "non incididunt exercitation", "provenance": "minim sit non labore" }, { "name": "proident", "provenance": "reprehenderit nulla" } ], "type": "operation", "gridCoordinate": { "x": 76237604.15707198, "y": -25222417.483145818 }, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "dolor ea dolor", "provenance": "ipsum commodo labore et" } ], "_id": "fffcee81-0e00-1dad-b2d7-1d3a05ea94e4", "description": null, "preAutomationTime": -84559402.68596241, "sla": 35318.49950988591, "errorHandler": null, "font_size": 12, "created": "1959-07-22T15:17:06.707Z", "created_by": null, "createdVersion": "ipsum Excepteur nulla quis incididunt", "last_updated": "2001-03-30T02:58:17.133Z", "last_updated_by": null, "lastUpdatedVersion": "proident exercitation elit", "tags": [ { "_id": "5A87e2dFEce34Eaff417a816", "name": "dolore", "description": "sit ea Excepteur" }, { "_id": "bbb43A9c2bC2dFa5bB6786F8", "name": "cillum Duis Excepteur", "description": "ea esse amet enim exercitation" }, { "_id": "3E95aEEfaaEc61897c76Fc24", "name": "sunt sit", "description": "commodo proident Lorem" } ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/Lq9KPVjPp/~1/m7sLHrTHf2/~0/~1" }, { "type": "encryption", "pointer": "/~0/~0/NbNVL,FT8gP/~0/MBgDRDb/~1/~1/~0/~1/~1" } ], "migrationVersion": -91824092 }, "created": null, "edit": null, "success": true }, { "message": "deserunt laboris", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "elit sunt deserunt", "provenance": "incididunt officia dolore" } ], "gridCoordinate": { "x": -73909834.12536824, "y": 10146705.722153544 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "incididunt irure", "provenance": "et magna Excepteur dolor" }, { "name": "id ut adipisicing eiusmod exercitation", "provenance": "magna quis aliqua proident fugiat" }, { "name": "consectetur", "provenance": "eiusmod in ea adipisicing" }, { "name": "Ut consequat ut labore", "provenance": "laboris reprehenderit nostrud" } ], "nodeLocation": { "x": -28502775.45200987, "y": -75134710.87789889 } }, "error_handler": { "name": "childJob", "summary": "aute incididunt minim", "description": "quis enim adipisicing", "app": "eu", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/ayx-QGpe/~0/eo753-/LFj/ve.L/~1/MRQF/~0/~0" }, { "type": "encryption", "pointer": "/KbFAabjbYy/~0/su6-F/bIG8-/tMIMAKo7/~1/~0/R,PfNe8BPsS/jml,Wf/~1/~1" }, { "type": "encryption", "pointer": "/l/H/eY4t0ujEQo/~0" } ] }, "groups": [ { "name": "amet ex aute", "provenance": "nostrud reprehenderit" }, { "name": "Excepteur incididunt qui non labore", "provenance": "sunt nisi ea" }, { "name": "proident ut aliquip Excepteur", "provenance": "labore mollit" }, { "name": "ea laborum ut sit", "provenance": "fugiat consequat elit" } ], "type": "operation", "gridCoordinate": { "x": 55720857.5635809, "y": 52598892.85052034 }, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "ex", "provenance": "deserunt ad Ut magna" }, { "name": "cupidatat dolore Lorem qui", "provenance": "ut" }, { "name": "irure", "provenance": "ullamco deserunt ut" }, { "name": "nostrud", "provenance": "Excepteur" } ], "_id": "312b358d-078a-1625-5362-004fafbbf5ce", "description": "nulla", "preAutomationTime": -92554745.10724162, "sla": 69368180.31403872, "errorHandler": { "type": "laboris amet", "name": "aliquip id et ad minim" }, "font_size": 12, "created": "1979-06-25T17:18:36.699Z", "created_by": null, "createdVersion": "veniam minim", "last_updated": "1953-11-02T02:55:54.516Z", "last_updated_by": null, "lastUpdatedVersion": "dolore", "tags": [ { "_id": "1Ad539dE9bb2F3fCA66aa73c", "name": "velit", "description": "amet" }, { "_id": "6fbFF679cC30CaaDFE6036BE", "name": "et consectetur sed", "description": "Lorem occaecat nostrud" }, { "_id": "b8D9EebF440de9eAf5cab0Ef", "name": "dolor qui dolore", "description": "commodo in qui pariatur" } ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~0" } ], "migrationVersion": -31088499 }, "created": null, "edit": null, "success": true }, { "message": "ullamco voluptate aliqua Duis", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "reprehenderit elit eiusmod pariatur", "provenance": "Ut sint et incididunt dolore" }, { "name": "reprehenderit exercitation", "provenance": "commodo deserunt eu" } ], "gridCoordinate": { "x": 17307880.70158647, "y": -15135920.79443802 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "elit Lorem cupidatat ullamco laborum", "provenance": "velit aute mollit non" }, { "name": "enim est pariatur velit laborum", "provenance": "Excepteur" } ], "nodeLocation": { "x": 84634367.01925081, "y": 2586768.129841894 } }, "error_handler": { "name": "childJob", "summary": "in", "description": "eiusmod sunt dolor labore", "app": "culpa ullamco velit ex", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/i2/~1/E96l,o/ZrE8-igz/~1/nVCoxi/~0/~1" }, { "type": "encryption", "pointer": "/Sn0f/~1/~1" }, { "type": "encryption", "pointer": "/~1/nNeT-Frln/HlD" } ] }, "groups": [ { "name": "esse sunt eiusmod", "provenance": "adipisicing ullamco esse nulla commodo" }, { "name": "dolore sint voluptate qui", "provenance": "ipsum non veniam eu" }, { "name": "quis eu", "provenance": "sint dolor labore sit" }, { "name": "do ut tempor proident", "provenance": "deserunt velit dolore ex" } ], "type": "operation", "gridCoordinate": { "x": 69882975.89237487, "y": 2443935.3506235033 }, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "mollit veniam non", "provenance": "et eiusmod ex sint ea" }, { "name": "dolor anim laborum in", "provenance": "esse voluptate" }, { "name": "occaecat aute do sint velit", "provenance": "occaecat amet" } ], "_id": "0791e839-b38c-d381-cd8d-1759158d31c4", "description": "dolor", "preAutomationTime": 43901035.471693456, "sla": 40690611.51292002, "errorHandler": null, "font_size": 12, "created": "1986-03-05T02:05:46.928Z", "created_by": null, "createdVersion": "qui Excepteur fugiat", "last_updated": "2006-09-19T17:00:51.882Z", "last_updated_by": { "username": "deserunt id ut", "provenance": "aute minim in" }, "lastUpdatedVersion": "Duis", "tags": [ { "_id": "c28b8C0d4343fB4f2665A0dc", "name": "reprehenderit ut", "description": "dolor" }, { "_id": "0b6b94E5dd3feA8C63a4Bf4A", "name": "tempor", "description": "sed aliquip ipsum nulla aute" }, { "_id": "BFcaa9b62BaB20CF2CA8dBb4", "name": "ipsum ullamco est sit laborum", "description": "ut adipisicing dolore non" }, { "_id": "7bBdaddC4c874eD9fDFeEc03", "name": "aute exercitation Excepteur", "description": "dolore exercitation" } ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/dWLT0NHC/~0/t/EAxT80T/~0/S8/~1/fG/~1/in6jpWEMLw/p+NKqP/KF8" }, { "type": "encryption", "pointer": "/~0/Z/J/ENcuuhKVp/E/ge.4z/dX18-XfZbx/IRWnio/BEEZ1/R+Yqa1/MS6J" }, { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/aUMwC5Ai/~1/~1/WvjPR+/RTS/~0/WAxZZ/EWxXQ54/~1/Ssv.IWAOY/o21XKe526" } ], "migrationVersion": -60650059 }, "edit": "consequat fugiat culpa", "success": true }, { "message": "Duis ullamco commodo ut aliqua", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "Excepteur in labore elit", "provenance": "aute non enim laboris consequat" }, { "name": "velit", "provenance": "dolor cillum aliquip" } ], "gridCoordinate": { "x": -24102529.501174793, "y": -62033605.525011025 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "tempor enim cillum eiusmod", "provenance": "eu" }, { "name": "laboris fugiat aliqua Excepteur", "provenance": "aliquip pariatur elit quis" }, { "name": "veniam ipsum consequat", "provenance": "amet anim ad Duis in" }, { "name": "deserunt dolor adipisicing consectetur voluptate", "provenance": "reprehenderit anim" } ], "nodeLocation": { "x": 41569644.04743531, "y": -14421166.573062032 } }, "error_handler": { "name": "childJob", "summary": "Lorem", "description": "nisi velit ullamco ipsum culpa", "app": "laborum aute Duis aliquip veniam", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/J3MWTn/Ylr6a/~1/~0/fvn,zU,/HD09T/x8d/W5r" }, { "type": "encryption", "pointer": "/iAT9tnqiGpL/A2WmMd-vo" }, { "type": "encryption", "pointer": "/~1/~0" }, { "type": "encryption", "pointer": "/~1/~1/~1/f/Asw4DDgk/itzU/hSYBYv7FN-" }, { "type": "encryption", "pointer": "/~1/wz2KySWU/~0/~1/~1/mK2wPxvH+/x" } ] }, "groups": [ { "name": "in cillum cupidatat", "provenance": "reprehenderit adipisicing nisi est" }, { "name": "dolor consectetur", "provenance": "in ad occaecat sunt elit" }, { "name": "ex reprehenderit enim dolor nulla", "provenance": "Excepteur laborum quis dolore cupidatat" } ], "type": "operation", "gridCoordinate": { "x": -894827.3305867016, "y": 6442497.765809476 }, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "incididunt occaecat", "provenance": "dolor" }, { "name": "in", "provenance": "ullamco amet" } ], "_id": "0335a551-6b53-a294-5fdf-09e1d61ae622", "description": "in cupidatat", "preAutomationTime": 48826974.94186813, "sla": -7998221.268761665, "errorHandler": null, "font_size": 12, "created": "1980-03-02T12:49:39.072Z", "created_by": { "username": "adipisicing occaecat dolore non", "provenance": "anim" }, "createdVersion": "in", "last_updated": "2006-08-24T17:11:45.051Z", "last_updated_by": null, "lastUpdatedVersion": "ad aliquip", "tags": [ { "_id": "dD10222dbEE0D8C37be04Ef8", "name": "do voluptate pariatur sit aliquip", "description": "dolor dolore sunt" }, { "_id": "e0a90eF13D35d9CF2EE5F462", "name": "irure Duis eiusmod cillum", "description": "ut consequat" }, { "_id": "3a5Fb6Dba1AeD6112fA6cfb5", "name": "minim do velit ad", "description": "labore ut pariatur quis" }, { "_id": "D49addC4C13d4Cc1DCeC2bc2", "name": "consequat incididunt culpa do", "description": "nulla ex" }, { "_id": "FceA052BFD1aFA1DCa7A261e", "name": "irure eiusmod aute ut", "description": "reprehenderit" } ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/ZOl" }, { "type": "encryption", "pointer": "/~1/~0/fUdW0rc" }, { "type": "encryption", "pointer": "/~0/woL/TUjX/l7o0" } ], "migrationVersion": 86982299 }, "edit": "ut consequat", "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" ] } } } }