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": -92335777.50668567, "y": 31071562.975425154 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -87336492.30150414, "y": -6342606.950855598 }, "error_handler": { "name": "childJob", "summary": "eiusmod velit culpa exercitation esse", "description": "Lorem in consectetur sunt eu", "app": "exercitation anim qui", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/g3/lsfLNW/I/V5CviKb" }, { "type": "encryption", "pointer": "/AWNdF/~0/N/ds.iajJ2/jn2qGWxu-/jR+r/hBYHM62Jn/~0/qSM3/phdRI./~1/~1" }, { "type": "encryption", "pointer": "/~1/Aac/ERz6EIWwpu/~1/GqoUJC4Xa/WhhgqyItEo6/KWhThy3x/F4SOrbm1/T" } ] }, "groups": [ { "name": "Duis sit", "provenance": "aliquip ut quis id" }, { "name": "ea", "provenance": "incididunt labore" }, { "name": "ex", "provenance": "elit aute occaecat ea nostrud" } ], "type": "operation", "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "mollit sint dolore cillum", "provenance": "cillum" }, { "name": "in sunt", "provenance": "Excepteur" }, { "name": "ea ad laboris", "provenance": "consectetur ad" }, { "name": "sit nisi", "provenance": "consequat" } ], "_id": "429871e4-2832-ea40-f01c-c557466491ef", "description": null, "preAutomationTime": -77080588.84730664, "sla": 99227453.8007881, "errorHandler": { "type": "Lorem Ut dolor", "name": "eiusmod consectetur minim reprehenderit in" }, "font_size": 12, "created": "1997-11-01T08:09:31.055Z", "created_by": { "username": "ea eu", "provenance": "ipsum" }, "createdVersion": "ex exercitation", "last_updated": "1998-09-09T18:12:16.985Z", "last_updated_by": null, "lastUpdatedVersion": "qui commodo eiusmod", "tags": [ { "_id": "aee8a9001FC39CEBbaF4A2Db", "name": "sunt pariatur exercitation commodo", "description": "aliqua anim ad" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/~1/dA/~1/g/uqzU." }, { "type": "encryption", "pointer": "/~1/~1/~1/KMsTXM8X1" }, { "type": "encryption", "pointer": "/~1/~0/e4/d5pcg/y,SKhqT/oaSECtIe.y/xMgUU/BPz7/Md" }, { "type": "encryption", "pointer": "/DYhHKOJO0/vOID5EoI/dq2+hJa/~1/~0" }, { "type": "encryption", "pointer": "/E-tZt" } ] }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 10400730.91234976, "y": -79474173.39957613 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 20754783.055851072, "y": -90840767.34907441 }, "error_handler": { "name": "childJob", "summary": "dolore tempor fugiat eu proident", "description": "incididunt", "app": "Duis cillum sed incididunt commodo", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~0/F9paB75j/vtDZ/tN,10zWd0T/bUdaF4PQw" }, { "type": "encryption", "pointer": "/Pc6Bl/v/~0/~1/GIqc9xSNE/~0/hx1/odEwDKY/" }, { "type": "encryption", "pointer": "/dtJ78z3M/~1" } ] }, "groups": [ { "name": "id consectetur aute pariatur", "provenance": "Excepteur ex nisi tempor est" }, { "name": "ea minim nostrud ipsum ullamco", "provenance": "sint in ullamco nostrud" }, { "name": "incididunt", "provenance": "anim Duis cupidatat sed" }, { "name": "ad", "provenance": "voluptate" }, { "name": "est adipisicing", "provenance": "anim commodo minim irure" } ], "type": "operation", "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "dolor elit", "provenance": "esse culpa cillum consectetur Lorem" } ], "_id": "feb9180d-b8a6-5654-ff46-3d264eb642fa", "description": null, "preAutomationTime": 60884015.17176595, "sla": 87944875.77879146, "errorHandler": { "type": "in ex", "name": "consectetur" }, "font_size": 12, "created": "1991-07-25T05:02:00.25Z", "created_by": { "username": "tempor proident voluptate amet Ut", "provenance": "culpa veniam anim ut id" }, "createdVersion": "reprehenderit enim", "last_updated": "1948-11-12T05:07:47.83Z", "last_updated_by": null, "lastUpdatedVersion": "fugiat in", "tags": [ { "_id": "DeAc34edbaa5Df0d46f16fA4", "name": "in minim cillum Duis", "description": "in consequat enim non" }, { "_id": "0B2EFF7D36b0c3DDefBa65CB", "name": "aliquip qui fugiat sed proident", "description": "incididunt non sunt consectetur" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/I05Oc7Z/~0/~1/~1/Q4bl/~0/j/a9OORAY/~1/~1/~0/~0" }, { "type": "encryption", "pointer": "/z" }, { "type": "encryption", "pointer": "/~0/~0/~1/Si/~1/~1/~1/JFgwzYr" }, { "type": "encryption", "pointer": "/duwV/~1/m2/tBIk/~1/qGCIj1Y/t-Hv94/LzkXX/~0/nP4wkjqa/~0" } ] }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 87053764.64653653, "y": 47748569.61997321 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -15548114.651881486, "y": -89518288.97251466 }, "error_handler": { "name": "childJob", "summary": "ad", "description": "nisi Ut culpa eiusmod", "app": "magna", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/g/sN/~0/~1/mlhCZyWjWA/wk" } ] }, "groups": [ { "name": "magna ea dolor dolore", "provenance": "incididunt aliqua occaecat" }, { "name": "do", "provenance": "eu id" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "consequat minim magna reprehenderit cupidatat", "provenance": "officia sunt ipsum in aliqua" } ], "_id": "a3315e9c-23fa-ca69-e066-8143cfe68ea2", "description": "dolore voluptate mollit cupidatat", "preAutomationTime": -81084406.69833988, "sla": 97675638.87063053, "errorHandler": null, "font_size": 12, "created": "2022-01-09T12:34:16.694Z", "created_by": null, "createdVersion": "mollit", "last_updated": "1959-10-04T19:59:16.649Z", "last_updated_by": null, "lastUpdatedVersion": "tempor consectetur ipsum amet", "tags": [ { "_id": "5A8677df9A6D7cBe435e229C", "name": "non ex Excepteur", "description": "fugiat" }, { "_id": "981aBAfF6bbaD241E9b36c57", "name": "magna sed", "description": "aute" }, { "_id": "4d4939cEe1Db35cabCEdbC91", "name": "commodo", "description": "dolore sed" }, { "_id": "aCc7B6d1FF8bdaaFB2d21F3E", "name": "amet ea velit nisi proident", "description": "sunt est" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/xxr7YW5NKF/~0/~1/B+Ld/w2+w/~1/~1/VzF74VvtHo/wYe-x/wK2RBV" }, { "type": "encryption", "pointer": "/X3/Fw2/ds9uvArfjX/CsbZ08n/HY3C9jVuNV/~1" }, { "type": "encryption", "pointer": "/V5NNkOVLU/O5/iF/aA.zM" }, { "type": "encryption", "pointer": "/~1/fDc-m/LfiSKeq/~0/~1/~0" } ] } ] }
{ "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": "velit esse", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 69420066.33725342, "y": -5065741.755865008 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -12775698.987703606, "y": -38337564.65357614 }, "error_handler": { "name": "childJob", "summary": "Excepteur", "description": "mollit nulla", "app": "enim velit cupidatat tempor", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/qWuN5/wjkBO0NL44p/~1/at0/~1" }, { "type": "encryption", "pointer": "/ZLX/~1/AK/EJ9lRtvo" }, { "type": "encryption", "pointer": "/pap5" }, { "type": "encryption", "pointer": "/~0/VuykSlogKC5" }, { "type": "encryption", "pointer": "/~1/A3zWO/k/Cbzl,9uI5P/mrr4Yg/~0/Opu/cU0SQZab1/Uj" } ] }, "groups": [ { "name": "magna cupidatat labore", "provenance": "qui do" }, { "name": "qui dolor Duis adipisicing", "provenance": "consectetur id aliquip dolore fugiat" }, { "name": "ea ex minim do", "provenance": "dolor cillum pariatur" }, { "name": "quis sint id", "provenance": "ea" }, { "name": "anim nulla pariatur qui commodo", "provenance": "nostrud irure" } ], "type": "operation", "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "qui culpa aliqua ut ex", "provenance": "veniam nisi sit" }, { "name": "magna nisi occaecat", "provenance": "cupidatat velit nisi Ut" }, { "name": "cupidatat", "provenance": "mollit Ut anim" } ], "_id": "f14d1237-3124-4a81-8fdd-5e01fc40256e", "description": "sint exercitation sed laboris", "preAutomationTime": -17740561.89790371, "sla": -7305376.816207916, "errorHandler": { "type": "aute", "name": "mollit magna dolor" }, "font_size": 12, "created": "1998-10-06T20:12:41.356Z", "created_by": null, "createdVersion": "officia reprehenderit sint occaecat culpa", "last_updated": "1964-06-26T07:59:56.541Z", "last_updated_by": { "username": "nisi Ut", "provenance": "do" }, "lastUpdatedVersion": "Excepteur minim dolor aute", "tags": [ { "_id": "4f39Ff2DFF33CDCABb919dBF", "name": "dolor reprehenderit ea", "description": "magna" }, { "_id": "3aBe33288DaEeb7BcbFf6EeB", "name": "exercitation nisi dolor esse", "description": "Excepteur tempor" }, { "_id": "c9D2eDEFdFEb05cC7ddC2be8", "name": "et Lorem in", "description": "esse Duis et consectetur sint" }, { "_id": "Cf3EB21EE10C8DA14f0055bB", "name": "nostrud exercitation magna", "description": "Duis ad sed enim minim" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~0/~1/~1/l9B2/~1/lI/~0/~1/FrK" }, { "type": "encryption", "pointer": "/~0/UEnt4/OGn8nQj+,O/xWwcT7djDnb/~0/L2G,g7tc-2w/VrlVv/F10/Hx83E/fJJ4n8Zg/~1" }, { "type": "encryption", "pointer": "/~0/~0/~1/~0/~1/~0/~1/BkDUwMP/TSUj0/~0" }, { "type": "encryption", "pointer": "/N/~1/DfUbPoDlL2b/~0/Al8y+Am/dQrp8Lt" }, { "type": "encryption", "pointer": "/~0/w/~0/~0/BDLu/G2Tkq/emEQ-/bu" } ] }, "edit": "dolore cupidatat", "success": true }, { "message": "culpa consectetur Lorem", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -54195888.95259762, "y": 57554636.740394235 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 9219223.060559228, "y": 45750469.419703424 }, "error_handler": { "name": "childJob", "summary": "sunt enim", "description": "exercitation", "app": "nulla est aliquip", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/eJASeRPWB/QBntKHg5/ppTuj9L9074/~0/~0/hWXxbF/rb/~1/vZjNEEWw/CmFO6iHKq/~0" }, { "type": "encryption", "pointer": "/m.J2wN-Tn/CSOko58/~1" }, { "type": "encryption", "pointer": "/O6dcNgRsxm" }, { "type": "encryption", "pointer": "/~0" } ] }, "groups": [ { "name": "exercitation nulla et", "provenance": "in enim" }, { "name": "Excepteur eiusmod", "provenance": "qui adipisicing" }, { "name": "pariatur", "provenance": "deserunt eu commodo" } ], "type": "operation", "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "ad", "provenance": "id sit Ut et" }, { "name": "aliquip exercitation in", "provenance": "sit" } ], "_id": "2a3082de-29ef-3f16-2fe5-34baff335f90", "description": null, "preAutomationTime": 84663871.46733156, "sla": 58468924.27393845, "errorHandler": { "type": "eu exercitation occaecat", "name": "fugiat occaecat reprehenderit sed cillum" }, "font_size": 12, "created": "1946-10-25T16:00:52.751Z", "created_by": { "username": "laborum Lorem", "provenance": "deserunt et in officia" }, "createdVersion": "enim", "last_updated": "1978-12-04T00:53:44.43Z", "last_updated_by": null, "lastUpdatedVersion": "incididunt sint aliqua", "tags": [ { "_id": "D39fbe7daC0Aa96Acc2A1ba1", "name": "nulla nisi enim consequat", "description": "enim" }, { "_id": "730D993DB51cd09Ed17Ff3fF", "name": "consectetur enim velit", "description": "cillum et aute anim eu" }, { "_id": "dA2A98CA7d1dCB2eFCb347C1", "name": "occaecat laboris in", "description": "sed labore in" }, { "_id": "B3EECE18eD4A887CeCD81DdE", "name": "Lorem qui", "description": "cillum proident" }, { "_id": "142cb50f3CC7CC66516BA8DE", "name": "occaecat officia laborum qui", "description": "et exercitation" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/ywdDc/H+m9b+vU4/~0/~1/yiluav9Nu/r0rsM/~0" } ] }, "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.", "type": [ "string", "null" ] } }, "required": [ "status", "message", "original", "created", "edit" ] } } } }