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": 6366533.6645502, "y": 63877558.492388785 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 26222252.397123873, "y": 48054274.293282 }, "error_handler": { "name": "childJob", "summary": "elit in ut", "description": "aliqua sit cillum in", "app": "elit proident dolore eu officia", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~1/~0/~0" }, { "type": "encryption", "pointer": "/~1/zFRF.,/MrVbgkooTMw/~1/~1/~1/~1" } ] }, "groups": [ { "name": "cillum tempor proident Ut", "provenance": "Duis anim adipisicing" }, { "name": "reprehenderit", "provenance": "aliqua dolor sit" }, { "name": "commodo ex nostrud et", "provenance": "in dolor ullamco" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "voluptate", "provenance": "velit culpa eiusmod" }, { "name": "velit non tempor aliqua", "provenance": "ea sit irure" }, { "name": "ullamco proident aute", "provenance": "laborum ex proident" }, { "name": "Duis commodo eu id", "provenance": "elit" } ], "_id": "69c79caa-b03b-9c79-812c-b2e3bcfbbfcb", "description": null, "preAutomationTime": -17381012.400755093, "sla": -87753123.93903252, "errorHandler": null, "font_size": 12, "created": "1948-01-12T18:06:51.972Z", "created_by": { "username": "qui sit laboris commodo", "provenance": "aute" }, "createdVersion": "fugiat sunt elit exercitation pariatur", "last_updated": "1998-05-14T06:36:57.634Z", "last_updated_by": { "username": "voluptate do reprehenderit ut fugiat", "provenance": "in" }, "lastUpdatedVersion": "aliqua nostrud culpa sed commodo", "tags": [ { "_id": "DdCcdbA9702682e98417D6A3", "name": "exercitation", "description": "sit veniam non laborum reprehenderit" }, { "_id": "c09Fb51Ced1F1Ead8ec8AD4e", "name": "consectetur veniam occaecat", "description": "incididunt aute Ut dolore deserunt" }, { "_id": "3A3D5848EEaCEe3B3CaeFaF1", "name": "minim proident adipisicing mollit Duis", "description": "Duis laborum" }, { "_id": "3a1AcF86A80C2efDbbE9825c", "name": "ut in sit", "description": "officia minim" }, { "_id": "062a25E8DebD3F3c5BB8Ca1D", "name": "labore tempor in", "description": "veniam" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/~1/m/~1/~1/~0/xl9kk/~1/~1/~1/vR" } ], "migrationVersion": 91013588 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 41268722.83055696, "y": -77073604.55779009 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 24784258.487644404, "y": 96481556.88979086 }, "error_handler": { "name": "childJob", "summary": "qui minim", "description": "aute", "app": "ea anim", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/ihOHvRtGlw/~0/WcFNjPh" }, { "type": "encryption", "pointer": "/~0/~0/K0/XXTgSyNMa+/D1t21oq./l2qBT-fg/~1/~0" }, { "type": "encryption", "pointer": "/nPF/Vtq93/VF-RB" } ] }, "groups": [ { "name": "ut eiusmod in", "provenance": "velit sint Excepteur occaecat" }, { "name": "elit aute sit", "provenance": "ipsum culpa" }, { "name": "reprehenderit", "provenance": "mollit aute tempor" } ], "type": "operation", "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "cillum", "provenance": "voluptate Ut proident" } ], "_id": "18584886-43bb-4189-2c89-d2b7e18ded27", "description": null, "preAutomationTime": 49366396.08780432, "sla": 57743836.03908411, "errorHandler": { "type": "sint", "name": "nostrud nisi proident" }, "font_size": 12, "created": "1972-06-16T12:05:37.378Z", "created_by": null, "createdVersion": "cillum tempor in incididunt quis", "last_updated": "1974-12-17T00:35:33.455Z", "last_updated_by": null, "lastUpdatedVersion": "labore Ut in dolore esse", "tags": [ { "_id": "dF97a4bDdFF29b95E2acfbAd", "name": "sed", "description": "veniam mollit irure ad" }, { "_id": "3c95a49bF2F24DB4baaf9131", "name": "laborum quis eu veniam", "description": "exercitation ut" }, { "_id": "0E12801F1147DDEbbEbe8421", "name": "ea elit est in", "description": "ut laborum amet Ut in" }, { "_id": "7bc05559DbE0921ed1Df5EFF", "name": "in velit", "description": "velit tempor Ut elit voluptate" }, { "_id": "0019BF85732cD4Ed66A61Cfa", "name": "anim proident ex", "description": "officia et" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/~0/KuTw7YK/~0/N+yvJU65/XoEzerKxIY/sdeK" }, { "type": "encryption", "pointer": "/~1/Sb/~0/~1/Pi,3BZ/~1/A/~0/L3Oa6k" } ], "migrationVersion": -4761131 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -88476385.08703355, "y": -65843370.55269014 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -90524644.74520576, "y": 68847344.52740782 }, "error_handler": { "name": "childJob", "summary": "labore", "description": "occaecat velit aute dolor nisi", "app": "adipisicing laborum sunt", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1" }, { "type": "encryption", "pointer": "/~0/fbPf-Ty/uV/~1/~1/jXH/7SuHB/~1" } ] }, "groups": [ { "name": "voluptate id pariatur", "provenance": "ipsum exercitation non id" }, { "name": "anim", "provenance": "in dolore sed magna consequat" }, { "name": "proident dolore ut", "provenance": "enim laboris irure" }, { "name": "ut enim in Excepteur consectetur", "provenance": "mollit reprehenderit sunt" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "veniam exercitation dolor cillum ea", "provenance": "incididunt" }, { "name": "aute sunt cupidatat sint in", "provenance": "consectetur cillum" }, { "name": "incididunt anim amet", "provenance": "exercitation adipisicing" }, { "name": "in quis ipsum", "provenance": "nostrud in" }, { "name": "sed cupidatat non", "provenance": "deserunt nisi officia" } ], "_id": "2ce4a5b4-06f6-59cb-4871-455bd9540e96", "description": "magna ex ullamco est", "preAutomationTime": 10598337.509666905, "sla": -60426604.847036056, "errorHandler": { "type": "commodo Ut", "name": "Lorem" }, "font_size": 12, "created": "2018-11-10T09:54:35.531Z", "created_by": { "username": "id consectetur exercitation", "provenance": "proident" }, "createdVersion": "do ea", "last_updated": "1969-09-15T10:15:38.718Z", "last_updated_by": { "username": "consectetur", "provenance": "sunt occaecat sed cupidatat aliqua" }, "lastUpdatedVersion": "qui id cupidatat", "tags": [ { "_id": "Db3AD6A2a7122aa2bAB1fdc8", "name": "velit mollit Duis dolor", "description": "esse" }, { "_id": "B3424466BFdF3FaAEf0EdA9D", "name": "ut culpa sunt elit", "description": "ea do" }, { "_id": "E2935fDaC64b6497A03D4919", "name": "ea", "description": "culpa Duis" }, { "_id": "4cE7E4B608fE8A2FB4E3B61A", "name": "proident", "description": "Ut eu nisi" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/~1/z5SbrvThgss/VU7Vb,HB3s/ZIe9/JmDHjo-N/gox" }, { "type": "encryption", "pointer": "/L6L/dyC9O/YpS4ACI/P4ZXPKzF/~0/~1" }, { "type": "encryption", "pointer": "/~0/~1/lrH6/oubFo2ULmJ" } ], "migrationVersion": 55607711 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 45272711.406324536, "y": 26103784.221962422 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -79608809.03459473, "y": -21501782.82704869 }, "error_handler": { "name": "childJob", "summary": "culpa elit non velit Duis", "description": "proident aute", "app": "exercitation pariatur sed aute anim", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~0/~1/~0/~0/wp,y/0" }, { "type": "encryption", "pointer": "/Y2/uj/~1/~1/woSgH0t3CO" }, { "type": "encryption", "pointer": "/T3+n68jwo/p/w/l/JXjc2VcL7fm" }, { "type": "encryption", "pointer": "/tl.Uvx/~0/k+edJB4BcS/~1" } ] }, "groups": [ { "name": "magna cupidatat velit ipsum", "provenance": "ipsum" } ], "type": "operation", "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "consectetur", "provenance": "aliqua" }, { "name": "veniam", "provenance": "sit in elit" }, { "name": "minim velit voluptate fugiat", "provenance": "voluptate consectetur" } ], "_id": "82bf97db-7fd8-d476-beb3-0460ec6e30ea", "description": "anim", "preAutomationTime": 68325001.89312533, "sla": 9551636.192011163, "errorHandler": { "type": "Duis", "name": "ut incididunt" }, "font_size": 12, "created": "1984-06-14T22:51:05.56Z", "created_by": null, "createdVersion": "culpa Lorem et sed dolor", "last_updated": "1977-09-04T20:21:56.775Z", "last_updated_by": { "username": "pariatur laborum in ut sint", "provenance": "labore" }, "lastUpdatedVersion": "adipisicing ea Ut ut", "tags": [ { "_id": "F7C4aAfE2765fca5cf0DBe8A", "name": "ullamco pariatur mollit in qui", "description": "aliqua" }, { "_id": "ba9F80Dc9FDF5f83064A0b10", "name": "in", "description": "Lorem dolor occaecat" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/Fo/Lm8/~0/E4dZx/AfQc+uk/~0/WTkQ/w4/tRizU" }, { "type": "encryption", "pointer": "/pMEEtnop,I8/~0/fRkl5xn/~1/~0/~0/~0/~0" } ], "migrationVersion": 25729810 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -75692987.0337411, "y": -99911237.85439853 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -59677860.31737536, "y": -2147794.18324022 }, "error_handler": { "name": "childJob", "summary": "culpa adipisicing magna aliqua anim", "description": "laboris qui", "app": "in adipisicing nisi cillum elit", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/AzI//WJmbY.ct" }, { "type": "encryption", "pointer": "/sZrC4jFNd/~0/~0/~0/aa+O/~0/~0" }, { "type": "encryption", "pointer": "/lKqX,b1ZWJ/beQ.dWB/~1" } ] }, "groups": [ { "name": "labore cillum aliqua dolor Duis", "provenance": "velit" } ], "type": "operation", "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "reprehenderit dolore cupidatat voluptate aliquip", "provenance": "eiusmod adipisicing" }, { "name": "irure cillum", "provenance": "sit reprehenderit deserunt" } ], "_id": "b384eaff-c02a-b91a-18b5-879e927cf28d", "description": null, "preAutomationTime": -45068002.82977066, "sla": 48127140.622581035, "errorHandler": { "type": "est", "name": "laboris dolor in" }, "font_size": 12, "created": "1986-02-25T05:49:40.495Z", "created_by": null, "createdVersion": "ut ipsum ad", "last_updated": "1965-09-03T03:34:16.247Z", "last_updated_by": null, "lastUpdatedVersion": "consectetur", "tags": [ { "_id": "aCdcfACd47D73538a30BA1Cf", "name": "dolor", "description": "non ullamco reprehenderit occaecat" }, { "_id": "dEFe57dacB75f34CcDbd8b02", "name": "culpa ex ullamco aliqua in", "description": "consequat dolore quis" }, { "_id": "eFCEDf51eeC8188ce3b18a82", "name": "aute ad proident", "description": "ipsum ex" }, { "_id": "f0Acc8bd6aeDAbDE3fADEfA5", "name": "sint", "description": "culpa ut ipsum dolore Excepteur" }, { "_id": "1B03eDbB3b2Bb0bC6feE93c6", "name": "dolor culpa cillum", "description": "ad quis officia" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/~1/~1/ptNPXZ0Pxb/imi/V.q/~0/~1/~1/~0" }, { "type": "encryption", "pointer": "/~1/~1/~0/qw/~0/cAx" }, { "type": "encryption", "pointer": "/~1/jd/iIOj9MPya/X/3rC/WDXxqXAp/~1/xHgG0SX" } ], "migrationVersion": -30752151 } ] }
{ "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": "officia mollit commodo", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 47603132.38721582, "y": -63647090.6034726 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 54367778.8887991, "y": 73349536.21104369 }, "error_handler": { "name": "childJob", "summary": "sunt Duis amet", "description": "mollit", "app": "eu Ut quis cillum", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/k-Bu3xm/Bx5gzmIn4X" } ] }, "groups": [ { "name": "ut irure officia", "provenance": "sed in nostrud" }, { "name": "mollit sit aute esse", "provenance": "laboris ipsum sint" }, { "name": "anim nisi sit exercitation consequat", "provenance": "exercitation est Ut dolore" }, { "name": "sit amet dolor non", "provenance": "consequat Lorem dolor" } ], "type": "operation", "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "velit in consectetur voluptate id", "provenance": "eu ut nostrud" }, { "name": "sint enim in", "provenance": "irure cupidatat ex" }, { "name": "Lorem nulla officia amet", "provenance": "dolore laborum fugiat" }, { "name": "laboris incididunt", "provenance": "officia pariatur" }, { "name": "officia minim fugiat", "provenance": "proident velit fugiat quis anim" } ], "_id": "c9ca7436-40a8-972c-9ee0-e2959bd9816a", "description": null, "preAutomationTime": -81676898.02701221, "sla": 67350647.00395262, "errorHandler": null, "font_size": 12, "created": "1960-09-09T09:59:48.395Z", "created_by": null, "createdVersion": "sed irure", "last_updated": "1958-12-23T12:55:37.148Z", "last_updated_by": null, "lastUpdatedVersion": "do officia", "tags": [ { "_id": "Ad07F4D7aB38b2dafAcbcF9c", "name": "tempor in", "description": "aliquip dolore et culpa fugiat" }, { "_id": "a0Fc3c632ffab77E9Cf473Af", "name": "voluptate dolor ullamco", "description": "labore mollit irure" }, { "_id": "6e31d2f5d99C5Db4Bdcd4F58", "name": "ut reprehenderit in", "description": "laborum in deserunt enim ipsum" }, { "_id": "8aDd7BeCCBA3879888b9d87a", "name": "enim Ut proident ea", "description": "in nostrud cupidatat" }, { "_id": "A5ccb5B25f3DC8b1aC8afeDC", "name": "et labore", "description": "cillum" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/c8/~0/~1/t-a-jVl//kGQZrb4qgV/~0/KF/ft-Bwukqgo/~0/~1/~0" }, { "type": "encryption", "pointer": "/~0/~0/~1/f1Eqymvzao/~1/toU-EME" }, { "type": "encryption", "pointer": "/hov/UzO-.kUUria/~0/uA4n/EQoBaF" }, { "type": "encryption", "pointer": "/ngSYk6yZ/~1/z,eWx" }, { "type": "encryption", "pointer": "/~0/QUUVrYUj/~0/VmH5BLRn/~1/~1" } ], "migrationVersion": 81985944 }, "created": null, "edit": "cillum irure sunt officia", "success": false }, { "message": "non", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 86144414.94072288, "y": 37307267.68449992 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 52516284.02796754, "y": -91552437.68168591 }, "error_handler": { "name": "childJob", "summary": "ullamco est reprehenderit nulla in", "description": "sed laboris culpa id", "app": "consequat eu occaecat Duis exercitation", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~1/~1/haNhtm/~0/~0" } ] }, "groups": [ { "name": "consectetur occaecat exercitation ad nisi", "provenance": "in est irure sit in" } ], "type": "operation", "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "mollit ea irure in cupidatat", "provenance": "Ut quis" }, { "name": "incididunt aliquip laboris", "provenance": "nulla Ut velit nisi quis" } ], "_id": "74b7b618-aaa3-a6a8-708a-266488c01f70", "description": null, "preAutomationTime": -28334722.36485353, "sla": 65889524.41775501, "errorHandler": { "type": "ipsum adipisicing esse", "name": "in aliqua" }, "font_size": 12, "created": "1977-11-18T05:23:05.654Z", "created_by": { "username": "sint Lorem cupidatat sunt dolor", "provenance": "non qui" }, "createdVersion": "sed deserunt reprehenderit", "last_updated": "1976-07-13T01:18:18.869Z", "last_updated_by": null, "lastUpdatedVersion": "proident ullamco id occaecat", "tags": [ { "_id": "51BE8B19EedE0e4E2eEf62c4", "name": "enim deserunt", "description": "eu" }, { "_id": "E50Ba3bCd65A1eFDCe55bdDa", "name": "occaecat Ut laborum dolore fugiat", "description": "eu dolore dolore" }, { "_id": "EACCaBd6AaA085B20f1ec736", "name": "dolore", "description": "ex" }, { "_id": "DaDDA3c3Fda9ED08E33Fd2F9", "name": "cillum veniam voluptate aliqua proident", "description": "mollit commodo consectetur minim" }, { "_id": "FE3F53F8d9B9BdDd6cc779F2", "name": "eiusmod veniam", "description": "dolore elit culpa" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/NKg48F7G/W2fg/r7wpo," } ], "migrationVersion": 91879680 }, "created": null, "edit": null, "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" ] } } } }