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": 10585369.317558244, "y": 56439452.9397687 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -5182819.337278351, "y": 44283909.94977072 }, "error_handler": { "name": "childJob", "summary": "elit tempor enim voluptate Lorem", "description": "sint dolore", "app": "sed velit ut aliqua", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/YBjRcMlWfQ9/~1/f/~0/vsCUm3.z/sf2/~1/~1/ZgejF/xcDivkVV" }, { "type": "encryption", "pointer": "/AnJja4" } ] }, "groups": [ { "name": "dolor in", "provenance": "ex" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "nulla ex cillum in ad", "provenance": "aliqua et ullamco Duis dolore" }, { "name": "exercitation aliqua nulla ut", "provenance": "fugiat cillum in voluptate nulla" }, { "name": "deserunt", "provenance": "eu elit ut minim" }, { "name": "deserunt", "provenance": "proident ipsum consectetur Excepteur" } ], "_id": "cb78d9e9-a8c7-7495-f190-92c6ec09fe3d", "description": null, "preAutomationTime": 84288806.40701082, "sla": 27186854.06166643, "errorHandler": null, "font_size": 12, "created": "1985-08-24T23:28:36.168Z", "created_by": { "username": "in", "provenance": "consectetur sunt cupidatat irure in" }, "createdVersion": "Ut dolore veniam esse culpa", "last_updated": "2002-01-28T21:55:09.707Z", "last_updated_by": { "username": "anim ex do tempor esse", "provenance": "voluptate aute" }, "lastUpdatedVersion": "dolor enim sit cillum aliquip", "tags": [ { "_id": "1CEB4126acdd20cA1d3dF86c", "name": "tempor Duis", "description": "occaecat labore ea nisi consectetur" }, { "_id": "4a8dEeDDfDbA1FBbf8Ad67ed", "name": "nisi commodo", "description": "in et aliqua" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/~0/~1/Rpt3Nl/~0/wrI2QEqI2Y/~1/n,42" }, { "type": "encryption", "pointer": "/~1/~0" }, { "type": "encryption", "pointer": "/~1/~1/~0" }, { "type": "encryption", "pointer": "/~1/~1/~1/k8CtpEP4Py/YjSnCQadNgi/~1/YMWvheR//CC7/oZ2/~0" }, { "type": "encryption", "pointer": "/wxzHen/~0/~1/~1/~0/~0/~0/wFhnTbxLj/ShZaAo8/~0/o1Zt" } ], "migrationVersion": 30842111 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -1700218.2970557064, "y": 67487909.78600305 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 61159671.587191164, "y": 45542596.23515141 }, "error_handler": { "name": "childJob", "summary": "eu aliquip", "description": "nisi ad non", "app": "quis ullamco id laboris", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/S.blSo8QcpS" }, { "type": "encryption", "pointer": "/jcRvY64SE0/~1/~0/~1/~1" }, { "type": "encryption", "pointer": "/S1Q.k/w/Y/~0/~0/taL/wK/~1/utZJi/~1" } ] }, "groups": [ { "name": "aliqua in dolor", "provenance": "cillum ipsum proident amet" } ], "type": "operation", "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "in id ea", "provenance": "dolore fugiat do aliquip commodo" }, { "name": "ad sint sunt officia magna", "provenance": "dolor Duis irure" }, { "name": "Ut aliqua est", "provenance": "commodo tempor exercitation sed" } ], "_id": "e0721631-256e-da51-bafe-18918c7fd8f2", "description": null, "preAutomationTime": -37814333.022113636, "sla": 15033671.411732778, "errorHandler": null, "font_size": 12, "created": "1963-01-08T14:49:46.326Z", "created_by": null, "createdVersion": "in officia reprehenderit ipsum enim", "last_updated": "1995-04-29T21:04:03.26Z", "last_updated_by": { "username": "nulla", "provenance": "cupidatat in" }, "lastUpdatedVersion": "deserunt sint", "tags": [ { "_id": "4E28FFb60E6Aee9634EcFFa2", "name": "reprehenderit anim cupidatat cillum", "description": "ipsum sit" }, { "_id": "7F669EB193bd827FccDa78F3", "name": "in est deserunt", "description": "quis est" }, { "_id": "d16eA6D0AEeFEe29BCcc41B7", "name": "sed in", "description": "aute in" }, { "_id": "DaE9EFBAc7Db1Ac9e58Aac3A", "name": "veniam eu", "description": "sint laborum aliquip" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/AFQtl5/~1/~0/~0/~1/~1/~1/F8r/2Y0bDC/~0/XdwxUqsIr" }, { "type": "encryption", "pointer": "/~0/~1/~1/~1/~0/~0" }, { "type": "encryption", "pointer": "/~0/HjoT/p/CP0/~1" } ], "migrationVersion": -60428663 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -33233547.05121129, "y": -65610959.97694899 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 29193846.445685387, "y": -86159674.08913434 }, "error_handler": { "name": "childJob", "summary": "laboris ut nulla ullamco", "description": "amet aliqua", "app": "elit", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~0/~0/P.HNU" } ] }, "groups": [ { "name": "mollit", "provenance": "irure nisi" } ], "type": "operation", "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "consectetur minim aliquip Excepteur", "provenance": "pariatur eiusmod quis" }, { "name": "Duis", "provenance": "occaecat Lorem nostrud pariatur" }, { "name": "est in ipsum Excepteur minim", "provenance": "proident esse adipisicing Duis amet" }, { "name": "sit sunt", "provenance": "pariatur cupidatat laborum deserunt nulla" }, { "name": "minim occaecat fugiat", "provenance": "sed tempor sit" } ], "_id": "788d2f4c-a8fe-e920-2985-ed41c9f23f40", "description": "veniam", "preAutomationTime": -72122950.084293, "sla": -72712634.1920588, "errorHandler": null, "font_size": 12, "created": "1962-03-15T20:10:20.001Z", "created_by": { "username": "labore", "provenance": "deserunt" }, "createdVersion": "dolore Excepteur tempor", "last_updated": "1965-09-21T22:33:32.068Z", "last_updated_by": { "username": "consequat in tempor", "provenance": "ex" }, "lastUpdatedVersion": "amet aliqua anim", "tags": [ { "_id": "Ef53C3CeD94B179CE2EdBB5f", "name": "veniam anim in aute", "description": "reprehenderit eu" }, { "_id": "E8bBBE1DdcdF8b1bAbAc837E", "name": "in ut deserunt commodo", "description": "tempor" }, { "_id": "Cdef3f5adC9aB13fAd9faAB5", "name": "reprehenderit exercitation", "description": "ut sunt ex" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~0/~0" }, { "type": "encryption", "pointer": "/~1/~1/pYd4i/~0/EG/~1/~0/~0/~1/n9kqtM2t" }, { "type": "encryption", "pointer": "/~1" }, { "type": "encryption", "pointer": "/lcc7aNUIDd/k/~1/qW4.Nx/~0" } ], "migrationVersion": 43590426 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 5611817.4306256175, "y": 69128164.73447129 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -66759923.95979131, "y": -97048401.85999726 }, "error_handler": { "name": "childJob", "summary": "non ullamco dolore", "description": "ad", "app": "sunt dolor in ipsum", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/ikE1z/n8.,vM/~1/~1/~0/~0/~1/V1tMkXx/rVq/~1" } ] }, "groups": [ { "name": "quis magna", "provenance": "dolore irure Excepteur" }, { "name": "velit ullamco nostrud", "provenance": "veniam cillum velit officia" } ], "type": "operation", "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "reprehenderit exercitation voluptate laboris", "provenance": "in sed" }, { "name": "fugiat adipisicing reprehenderit minim", "provenance": "in ullamco" }, { "name": "sunt", "provenance": "id ad" }, { "name": "dolore ad sit Ut dolore", "provenance": "deserunt aute ea" }, { "name": "voluptate", "provenance": "veniam eu aliqua minim" } ], "_id": "ca64d855-63aa-cea4-45b5-46d5eef2787b", "description": "aliqua dolore labore amet", "preAutomationTime": -54942571.997606926, "sla": 84888224.69086736, "errorHandler": { "type": "ipsum laboris commodo", "name": "voluptate in laboris ex tempor" }, "font_size": 12, "created": "2018-10-24T02:13:23.62Z", "created_by": null, "createdVersion": "minim cillum occaecat", "last_updated": "2001-02-17T00:46:38.247Z", "last_updated_by": { "username": "proident", "provenance": "sed veniam" }, "lastUpdatedVersion": "commodo qui Lorem et", "tags": [ { "_id": "AdDfeDEAc0d0e141e594dCff", "name": "est quis id", "description": "nostrud dolor tempor do" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/Nv83sVDktQy/Iegk9A/~0/Sp-CJS,WA0/vW6/o.XO,0kBnw4/yvJIs/rmWd9qeLenD/~0/Ndg" }, { "type": "encryption", "pointer": "/gRDhvDR-C/yPruiva/~0/U,9Mf/~1" }, { "type": "encryption", "pointer": "/~0" } ], "migrationVersion": 70157023 } ] }
{ "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": "eiusmod irure dolore ex", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -60034678.92674639, "y": -83630526.16334139 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -96351505.1109749, "y": -90534702.15475011 }, "error_handler": { "name": "childJob", "summary": "veniam aliqua labore incididunt", "description": "dolor", "app": "non", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/WI/~1/iakcb+/~1/jyLaW/K/p4Vuvv5/TqBLs1kxNi1" } ] }, "groups": [ { "name": "minim", "provenance": "aliqua ullamco" }, { "name": "dolor qui", "provenance": "dolor consectetur aute sed" }, { "name": "esse enim", "provenance": "in Excepteur est fugiat" }, { "name": "ex laborum occaecat dolore laboris", "provenance": "ea ipsum nulla in" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "exercitation anim aute ad", "provenance": "in laboris nostrud reprehenderit" } ], "_id": "72f1ddf4-fc0a-f746-fa40-9f336f7cdc8e", "description": null, "preAutomationTime": -63286638.275031805, "sla": -69072888.94025555, "errorHandler": { "type": "enim nulla dolore in Lorem", "name": "consectetur dolor mollit voluptate culpa" }, "font_size": 12, "created": "1992-09-27T16:38:41.852Z", "created_by": { "username": "velit fugiat pariatur exercitation", "provenance": "dolore" }, "createdVersion": "non nisi ad", "last_updated": "2004-07-04T04:23:38.418Z", "last_updated_by": { "username": "ea in", "provenance": "Duis id est" }, "lastUpdatedVersion": "sunt minim amet", "tags": [ { "_id": "2B9eCD32bc03f6Ab51ddc7AF", "name": "nulla", "description": "ipsum quis adipisicing est irure" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/dsO9/MoD8m45No5+/~1/egikpjit/~0" }, { "type": "encryption", "pointer": "/n7JRFAMCUHF/zJRfdEF7//L/j83eb/~1/S9UKu8ir5dx/m/~0/~0/XiSQ" }, { "type": "encryption", "pointer": "/~1/~1/q.ap/4OYec/~0/~0/~0/~1/~1/~0/~0/~1" } ], "migrationVersion": 79467924 }, "created": null, "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" ] } } } }