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 irure", "provenance": "proident" } ], "nodeLocation": { "x": -62718829.030213244, "y": -93476103.05893567 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "aute in", "provenance": "culpa Excepteur" } ], "nodeLocation": { "x": 39154098.61210084, "y": -45364957.495576695 } }, "error_handler": { "name": "childJob", "summary": "in", "description": "in in nulla culpa veniam", "app": "adipisicing aute", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~1/g/p6+uMmOeN/~1/~0/i,9c+8sekp/~0/cHqvkYqgLSD/~0" }, { "type": "encryption", "pointer": "/m9gNst//~0/MO2wITHCa/x9Frn1/Z7XqyTM5N/LdhJcG4YWno" }, { "type": "encryption", "pointer": "/P/VZWIE/~1/~1/~0/n9mpV/DyvmykBxY1/~0" } ] }, "groups": [ { "name": "fugiat non eu in mollit", "provenance": "sunt" } ], "type": "operation", "x": 14456851.735495538, "y": -68539932.1587564, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "exercitation cillum in minim", "provenance": "sint officia cupidatat minim" }, { "name": "ipsum id nostrud laboris in", "provenance": "tempor in" }, { "name": "reprehenderit qui tempor", "provenance": "exercitation eu" }, { "name": "irure labore pariatur nulla", "provenance": "fugiat esse qui exercitation adipisicing" } ], "_id": "1edb6b30-5035-1ce0-decb-3473de5bf8f4", "description": "in", "preAutomationTime": 36135628.15042931, "sla": -1461902.6620223522, "errorHandler": { "type": "Lorem Ut consectetur minim exercitation", "name": "quis Excepteur consectetur ex" }, "font_size": 12, "created": "1975-04-16T07:04:48.89Z", "created_by": null, "createdVersion": "mollit esse occaecat", "last_updated": "1992-12-22T19:14:02.16Z", "last_updated_by": null, "lastUpdatedVersion": "ea nulla", "tags": [ { "_id": "eC2E9672E10575B74c21b645", "name": "do amet labore", "description": "proident" }, { "_id": "c197E1df5b41F32BFf4a0AeB", "name": "sed in sunt consectetur Duis", "description": "labore voluptate sint nulla officia" } ], "canvasVersion": 2, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/v6KAZKxm/Jk/~0/gMR1y-/E+/~1/~0/~1/XvWnuf/" } ], "migrationVersion": 59225321 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "dolore proident aliqua dolore cillum", "provenance": "aliqua" }, { "name": "exercitation", "provenance": "ex ut" }, { "name": "dolor ut", "provenance": "sit consequat esse" }, { "name": "voluptate proident dolor", "provenance": "aute deserunt" }, { "name": "reprehenderit", "provenance": "eiusmod" } ], "nodeLocation": { "x": -81112035.48810147, "y": 62001163.63198331 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "sed sit minim laborum cupidatat", "provenance": "in" } ], "nodeLocation": { "x": -4729040.4233133495, "y": 65884894.45941645 } }, "error_handler": { "name": "childJob", "summary": "esse irure deserunt", "description": "labore dolore commodo", "app": "dolore cillum voluptate", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/s3Xa/SiJsAC/~0/~1/U/~0/qn/URThwe-HeqS" }, { "type": "encryption", "pointer": "/~0/~1" }, { "type": "encryption", "pointer": "/y/c-fwRhE0O/k,e4d1/~1/~1/q6uQPuSdMW/~1/ECv1BE-Ji5/~0/~0/~1/k4iUp88acr." } ] }, "groups": [ { "name": "voluptate nulla ut labore", "provenance": "tempor occaecat sunt exercitation esse" }, { "name": "ut sunt", "provenance": "exercitation" } ], "type": "operation", "x": 56541337.24416286, "y": 84939669.18115738, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "Excepteur Ut dolore veniam", "provenance": "non" } ], "_id": "e40a0fb4-3b07-423f-1598-14fb9bc25098", "description": null, "preAutomationTime": -13426317.728739351, "sla": -69713621.69853932, "errorHandler": { "type": "Excepteur velit", "name": "aliqua ad" }, "font_size": 12, "created": "1963-06-14T18:29:42.971Z", "created_by": null, "createdVersion": "proident", "last_updated": "1973-11-11T11:45:39.749Z", "last_updated_by": { "username": "occaecat", "provenance": "voluptate non Duis" }, "lastUpdatedVersion": "ut sit cillum", "tags": [ { "_id": "146b67a6e8D40103dC241Ef1", "name": "et sunt commodo dolore", "description": "sed nulla et dolore exercitation" }, { "_id": "Db717f8BdcEe01fA849Db65C", "name": "sunt ut dolor incididunt Lorem", "description": "in reprehenderit commodo" } ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/j2a+V" }, { "type": "encryption", "pointer": "/~0/QREcqPJ/~0/oC0/m3.DWz/~1/~1/HEnB/~1/~1/~1" }, { "type": "encryption", "pointer": "/~0/vlnlJ/YtQoz1/k6Q5qR97/a/~1" }, { "type": "encryption", "pointer": "/~1/zm-C3V/wjRP/~1/~0/VJ4-jToRpf" }, { "type": "encryption", "pointer": "/~0/~1/a/~1/Y9oQdB9nF/Q1dryTSPycz" } ], "migrationVersion": 42567822 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "culpa veniam", "provenance": "velit mollit" }, { "name": "Lorem elit velit tempor", "provenance": "nisi consequat exercitation enim" }, { "name": "laborum adipisicing", "provenance": "incididunt aute" }, { "name": "ea cupidatat aliquip", "provenance": "dolore esse" } ], "nodeLocation": { "x": -12774495.311813846, "y": 36137328.498505235 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "fugiat Excepteur", "provenance": "est elit in minim magna" } ], "nodeLocation": { "x": -20197019.981293842, "y": -35214496.46321466 } }, "error_handler": { "name": "childJob", "summary": "culpa officia sunt voluptate", "description": "pariatur aliqua sed dolore Excepteur", "app": "eiusmod voluptate adipisicing dolore", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~0/Tm/OaXI69/2/eEcU/~0/bYBs6zu/~1/~1/~1" }, { "type": "encryption", "pointer": "/~0/~0/~0" }, { "type": "encryption", "pointer": "/NP/~1/~0/~1/ZZML/~0" }, { "type": "encryption", "pointer": "/~1/X0f/FQE8F/2/ZRL0E7pc/w,rFuTP" }, { "type": "encryption", "pointer": "/SUFTk/~0/~0/Z1/EXtoUJu" } ] }, "groups": [ { "name": "aute Duis deserunt adipisicing amet", "provenance": "ea" }, { "name": "sunt Lorem", "provenance": "ut" }, { "name": "Lorem pariatur elit nulla", "provenance": "Excepteur tempor" }, { "name": "in exercitation", "provenance": "irure quis" }, { "name": "et anim exercitation", "provenance": "ullamco elit sed labore" } ], "type": "operation", "x": -67202623.50949308, "y": -75062709.00389911, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "nostrud Lorem elit nisi", "provenance": "Excepteur Duis dolor cupidatat" } ], "_id": "f0447fec-0365-8fc5-6214-7b64527d2260", "description": "in velit minim tempor anim", "preAutomationTime": -94264190.25357555, "sla": -57508035.32481479, "errorHandler": { "type": "in eiusmod", "name": "dolore laborum ut" }, "font_size": 12, "created": "1986-05-31T06:36:02.42Z", "created_by": null, "createdVersion": "eu", "last_updated": "2018-04-20T04:21:13.875Z", "last_updated_by": { "username": "sunt Lorem tempor proident", "provenance": "ut consequat Excepteur nisi" }, "lastUpdatedVersion": "reprehenderit labore mollit", "tags": [ { "_id": "85CdC67e0eD6D95C7461B9bc", "name": "dolor id laborum", "description": "sit" } ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/Z7-QZrRuU/~0/l50gfP/3oyG/~1/RaLL8uH4d/~0/UafdQ/~1" }, { "type": "encryption", "pointer": "/~0/~1/Mu/e" }, { "type": "encryption", "pointer": "/BlOTi4/oxJq,x+zs0" }, { "type": "encryption", "pointer": "/T9f,JP/YMT/~0/~0" }, { "type": "encryption", "pointer": "/~0/zUfxT1Yg9/~0/~1/NFPbP1KB/eqF-W" } ], "migrationVersion": 31748075 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "aliqua dolor voluptate exercitation cillum", "provenance": "est dolor" }, { "name": "qui Lorem aliquip", "provenance": "ut exercitation commodo tempor laborum" } ], "nodeLocation": { "x": 35620764.26070443, "y": 93853975.14563748 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "aliqua ex dolore exercitation irure", "provenance": "in" } ], "nodeLocation": { "x": -22428721.432818934, "y": 33939411.72893418 } }, "error_handler": { "name": "childJob", "summary": "occaecat fugiat labore ullamco", "description": "in ullamco", "app": "exercitation elit", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~1/s5X9/B3t/~1/y/Er/XlU22Vxa/~1/c3RGJ2J" } ] }, "groups": [ { "name": "exercitation adipisicing commodo dolore do", "provenance": "Duis id qui et" }, { "name": "voluptate ad proident in", "provenance": "nostrud ea et fugiat" }, { "name": "quis anim commodo eu id", "provenance": "adipisicing Excepteur" } ], "type": "operation", "x": 44853690.00106084, "y": 12574479.744559541, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "minim amet", "provenance": "Excepteur" }, { "name": "ea veniam do", "provenance": "in irure" }, { "name": "ex", "provenance": "esse" } ], "_id": "93318e17-a902-b00a-c4b4-02dabd108be2", "description": null, "preAutomationTime": 36789276.93446675, "sla": 26193418.160812154, "errorHandler": { "type": "culpa officia", "name": "laborum anim amet dolor sed" }, "font_size": 12, "created": "2000-04-03T13:40:42.676Z", "created_by": { "username": "ex tempor", "provenance": "in" }, "createdVersion": "dolore nostrud", "last_updated": "1977-08-07T21:43:34.977Z", "last_updated_by": null, "lastUpdatedVersion": "et voluptate laborum ex dolor", "tags": [ { "_id": "ddAA0D3Ea703BfDe0AdB5E75", "name": "Duis", "description": "dolor" }, { "_id": "F7bED05cbCB80bff1eBCEaCc", "name": "enim velit", "description": "nulla ut culpa" }, { "_id": "eBd4B44A6BbE65e2A0F027C1", "name": "Duis ad in", "description": "esse Ut minim" }, { "_id": "ADdBf26C53FA8712CaBbc16b", "name": "veniam do laboris cupidatat", "description": "dolor consequat" } ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/FeXMU-qA6C/~0/CVe61qc,ee//~1/~1/~1" }, { "type": "encryption", "pointer": "/~0/Z./~1/Scde/LRj0KeJ,g/~1" }, { "type": "encryption", "pointer": "/kNw" }, { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/~0/DDW/CSx+bY2+Z/U/~1/~1/~0/~0/~0" } ], "migrationVersion": -48669032 } ] }
{ "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 qui ut", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "dolor", "provenance": "veniam dolor" }, { "name": "qui do minim consequat culpa", "provenance": "do irure veniam" } ], "nodeLocation": { "x": -10417807.461561829, "y": -35241040.78087347 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "magna nulla Duis exercitation", "provenance": "mollit sint Duis officia" }, { "name": "velit ea sunt", "provenance": "anim laborum irure culpa" } ], "nodeLocation": { "x": -58174482.525936134, "y": 96385368.25052345 } }, "error_handler": { "name": "childJob", "summary": "elit", "description": "dolor officia velit dolore", "app": "aliqua Excepteur magna consequat aute", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/z9+E" }, { "type": "encryption", "pointer": "/G/l6l0/~0" }, { "type": "encryption", "pointer": "/~0/z-" }, { "type": "encryption", "pointer": "/~0/kPh+,tbTjl/~0" }, { "type": "encryption", "pointer": "/~0/~1/fACv/~1/~1/ZDIp8EVE/~0" } ] }, "groups": [ { "name": "voluptate est anim", "provenance": "cupidatat velit" }, { "name": "ea in", "provenance": "Excepteur" }, { "name": "ut fugiat cillum", "provenance": "ex sit cupidatat qui cillum" } ], "type": "operation", "x": 86071065.87187257, "y": 99197882.60493019, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "magna irure ipsum eiusmod", "provenance": "eu deserunt proident laborum incididunt" }, { "name": "sunt velit in sed", "provenance": "do ipsum aliqua sed" }, { "name": "sunt sit amet", "provenance": "pariatur aute" }, { "name": "dolor fugiat adipisicing", "provenance": "ut qui eiusmod" }, { "name": "ad sit qui ex", "provenance": "mollit consequat esse" } ], "_id": "233f9836-850c-defa-0908-59b3c74e33a2", "description": "veniam Excepteur consequat fugiat", "preAutomationTime": -46863424.91428368, "sla": 47441292.59072122, "errorHandler": { "type": "anim sit cupidatat", "name": "sint qui nostrud" }, "font_size": 12, "created": "2013-10-14T14:34:41.635Z", "created_by": null, "createdVersion": "in irure sint dolor", "last_updated": "1993-09-14T22:30:25.683Z", "last_updated_by": { "username": "labore Duis commodo aliqua Ut", "provenance": "eu aute quis in sed" }, "lastUpdatedVersion": "in", "tags": [ { "_id": "9fD19e9186cc27B7e30829BD", "name": "minim esse dolor", "description": "in id sunt ipsum enim" } ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/~0/tj,yYl9UtL" }, { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/~1/~0" }, { "type": "encryption", "pointer": "/~0/~0" }, { "type": "encryption", "pointer": "/n/Ug/tdjyt" } ], "migrationVersion": 22857941 }, "edit": null, "success": false }, { "message": "exercitation minim ut", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "est", "provenance": "cupidatat pariatur adipisicing dolor Ut" }, { "name": "amet in voluptate anim incididunt", "provenance": "ea qui" }, { "name": "est", "provenance": "qui do" } ], "nodeLocation": { "x": 34739215.63869241, "y": -19474347.20765418 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "in", "provenance": "anim cillum" }, { "name": "Duis dolore deserunt", "provenance": "id" }, { "name": "quis nisi mollit eu", "provenance": "sint est dolor tempor" }, { "name": "ea amet magna tempor", "provenance": "Ut" }, { "name": "reprehenderit", "provenance": "aute" } ], "nodeLocation": { "x": 21841397.852422297, "y": -86882738.89869738 } }, "error_handler": { "name": "childJob", "summary": "ipsum Duis non ex", "description": "labore aliqua", "app": "culpa magna quis", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/A-89ct/~0/ibRFcxnU/xQ4uTyV/aboSTeVqp/~1/~1/~1/FA/~0/B0Ir" } ] }, "groups": [ { "name": "deserunt dolore laboris quis", "provenance": "sit" }, { "name": "Lorem", "provenance": "ipsum quis minim in pariatur" } ], "type": "operation", "x": -50701504.06384548, "y": 45553740.352139324, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "laboris", "provenance": "dolor in" }, { "name": "ipsum sunt occaecat", "provenance": "Excepteur minim in et" }, { "name": "enim nulla et magna", "provenance": "non sed ipsum" }, { "name": "ut", "provenance": "eu" } ], "_id": "47826566-91bc-d3ac-988b-755b24634f34", "description": null, "preAutomationTime": 57296471.82201153, "sla": 57261507.734294176, "errorHandler": null, "font_size": 12, "created": "2022-09-29T17:25:52.252Z", "created_by": { "username": "minim Excepteur", "provenance": "elit in" }, "createdVersion": "labore nulla nostrud", "last_updated": "2005-05-22T18:37:29.136Z", "last_updated_by": null, "lastUpdatedVersion": "adipisicing anim id nisi reprehenderit", "tags": [ { "_id": "c0e1251E9bF043CAdcA35AF0", "name": "Lorem", "description": "ullamco minim ad" }, { "_id": "dE991Be6B9FfB00A218CEf6C", "name": "dolor consequat tempor", "description": "ex eiusmod consequat laborum ullamco" }, { "_id": "1a1bEF8359fd450A09DBaDB6", "name": "fugiat minim", "description": "non est aliqua esse" } ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/~1/nJlS0CDD/~0/Fl/kpHL/i/~0/~0/~0" } ], "migrationVersion": 90772727 }, "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.", "oneOf": [ { "type": "string" }, { "type": "null" } ] } }, "required": [ "status", "message", "original", "created", "edit" ] } } } }