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": -7726774.651742607, "y": 27477758.85593553 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 71059480.81759953, "y": -63624574.848440394 }, "error_handler": { "name": "childJob", "summary": "consectetur laborum anim incididunt nisi", "description": "ex commodo est sunt", "app": "officia reprehenderit dolor fugiat Lorem", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/iqhEe+J/~0" }, { "type": "encryption", "pointer": "/~1/y7NPf4/~1/WFXxl/gYwQRF0/~0/~0/SQuO/d/r/AZ49/~0" }, { "type": "encryption", "pointer": "/~0/~1/wHNN69tzZ/FejZVUozR/luVqtaAFVb/~0/rpKJOn69Xw/~1" } ] }, "groups": [ { "name": "consectetur magna", "provenance": "in" }, { "name": "Ut", "provenance": "Ut" }, { "name": "sit exercitation quis", "provenance": "laboris ea sunt minim velit" } ], "type": "operation", "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "ipsum nulla est quis", "provenance": "eu fugiat" }, { "name": "irure ad do cillum veniam", "provenance": "in et sint est magna" } ], "_id": "5fb548a9-60a5-313f-71ae-05c2ae3e5727", "description": null, "preAutomationTime": 29167155.328998715, "sla": 38724188.73407671, "errorHandler": null, "font_size": 12, "created": "2014-03-16T03:51:52.798Z", "created_by": { "username": "esse cupidatat non sed", "provenance": "ipsum eu quis et laborum" }, "createdVersion": "mollit ex", "last_updated": "1956-12-22T05:49:34.448Z", "last_updated_by": null, "lastUpdatedVersion": "labore", "tags": [ { "_id": "961E749cddf8fc6B21CfDEED", "name": "Duis sit", "description": "Lorem deserunt labore quis elit" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/u6r" }, { "type": "encryption", "pointer": "/~1/K/~0/pAmddSo/un/tM" }, { "type": "encryption", "pointer": "/~0/~0/~1/~1/~1/~0/ZT/~0/~0/~1" }, { "type": "encryption", "pointer": "/IXu4/woFoo/Xs./yGrE0i/~0/~0/I7PYiVDN5Q/z" } ], "migrationVersion": 8050324 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 94261244.02173254, "y": 77356411.65915856 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 31900163.14488773, "y": 61494133.20870209 }, "error_handler": { "name": "childJob", "summary": "non", "description": "eu sunt consequat", "app": "aliquip", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/E/~1" }, { "type": "encryption", "pointer": "/~0/wZN/IALT9/G/MnbA/~1/~1/J5lT" }, { "type": "encryption", "pointer": "/~1/~1/~0" }, { "type": "encryption", "pointer": "/~0/pqhJ/+g/RjOM5F/f.+PuH24f/~1/VO" } ] }, "groups": [ { "name": "occaecat", "provenance": "veniam quis" }, { "name": "labore ea deserunt incididunt", "provenance": "proident deserunt elit" }, { "name": "ad", "provenance": "consequat" }, { "name": "cillum amet officia", "provenance": "dolor elit id" }, { "name": "cillum", "provenance": "amet deserunt eu ex eiusmod" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "velit reprehenderit incididunt", "provenance": "nostrud Excepteur adipisicing" } ], "_id": "a2bcb3e9-82e8-fe5d-1833-88f7cec147b4", "description": null, "preAutomationTime": -22537837.74774547, "sla": 12272489.311477304, "errorHandler": { "type": "adipisicing ut magna", "name": "est irure proident sit Excepteur" }, "font_size": 12, "created": "1946-06-16T07:42:55.031Z", "created_by": { "username": "enim deserunt aliqua", "provenance": "proident sed dolor" }, "createdVersion": "nostrud enim in", "last_updated": "2010-02-26T05:36:43.002Z", "last_updated_by": { "username": "Lorem dolor", "provenance": "mollit in Ut id" }, "lastUpdatedVersion": "exercitation ad voluptate tempor", "tags": [ { "_id": "0C3481Da3B6Db7b03fA9fFFc", "name": "irure esse", "description": "dolor sit" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/ugGKbe57Em/~1/~0/iT7GwAq/~0/~1/~1" }, { "type": "encryption", "pointer": "/AfILh/Nc6eaq/F2vCdRVw/u" }, { "type": "encryption", "pointer": "/~0/~0/lfqiN8N/9t/L2.j5Yo.E/gJI" }, { "type": "encryption", "pointer": "/~1/Os2QFPVM/~0/B" } ], "migrationVersion": 44780417 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 17042870.225631386, "y": -84769891.22551228 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 58850258.45522565, "y": -8993472.329180554 }, "error_handler": { "name": "childJob", "summary": "ipsum irure do", "description": "sed elit", "app": "et", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0" } ] }, "groups": [ { "name": "eu", "provenance": "veniam fugiat enim magna" }, { "name": "dolor ipsum laborum proident aute", "provenance": "culpa dolore voluptate" }, { "name": "in Excepteur reprehenderit nulla", "provenance": "velit in elit" } ], "type": "operation", "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "magna", "provenance": "consequat in esse" }, { "name": "in ex magna", "provenance": "Lorem consequat non amet aute" } ], "_id": "ab0d67f5-145c-8cd2-c80b-ee555e382494", "description": "do ut elit", "preAutomationTime": -44604846.79349972, "sla": 96391008.0025002, "errorHandler": null, "font_size": 12, "created": "2017-01-11T15:31:35.092Z", "created_by": null, "createdVersion": "irure", "last_updated": "1953-09-13T02:36:23.965Z", "last_updated_by": null, "lastUpdatedVersion": "adipisicing", "tags": [ { "_id": "982DCa14e093c32BbcbF0C5f", "name": "irure adipisicing", "description": "adipisicing nulla" }, { "_id": "A59f2b7f11add18DBD2Ba8BA", "name": "tempor consequat dolor enim mollit", "description": "consequat amet laborum ipsum sint" }, { "_id": "ab3135cdB59f34dde0f268bA", "name": "elit veniam", "description": "consequat dolor Ut Duis" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/N/RIVyZr9t" }, { "type": "encryption", "pointer": "/~0/~1/~0/qJqjFulM7YX" }, { "type": "encryption", "pointer": "/ClzV9m/~1/x/u3/~0" } ], "migrationVersion": 43508430 } ] }
{ "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 nulla ut in", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -69713914.74675491, "y": -57188877.511836015 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 40939778.66782001, "y": 44451887.06768745 }, "error_handler": { "name": "childJob", "summary": "commodo", "description": "elit voluptate Ut ipsum", "app": "dolor quis do eu", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/uJ-sKG6tc3/~0/cK/~1/~0/~0" }, { "type": "encryption", "pointer": "/~0/xa/~0/YnYOVSI/~1/MrKOfyDu5/~0/~1/S/rXio/J11iefQR" }, { "type": "encryption", "pointer": "/~1" } ] }, "groups": [ { "name": "enim", "provenance": "Excepteur" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "proident", "provenance": "cillum nisi tempor" }, { "name": "Ut", "provenance": "aliquip labore" }, { "name": "culpa deserunt aute id", "provenance": "esse laborum voluptate" }, { "name": "sint consequat laboris", "provenance": "qui Ut esse consequat" }, { "name": "tempor deserunt fugiat ut", "provenance": "do non" } ], "_id": "6e4ca947-37f2-aae6-6601-4cd886f55e35", "description": "sint id", "preAutomationTime": -76207029.72172913, "sla": 40537034.50860274, "errorHandler": { "type": "adipisicing", "name": "voluptate dolor culpa ipsum id" }, "font_size": 12, "created": "1981-06-14T17:59:30.818Z", "created_by": null, "createdVersion": "Duis", "last_updated": "2019-12-11T22:05:21.931Z", "last_updated_by": { "username": "fugiat in id anim deserunt", "provenance": "labore anim est" }, "lastUpdatedVersion": "nisi id", "tags": [ { "_id": "0F5C56ECA56BdF8f097A62BB", "name": "ut voluptate sint", "description": "consectetur pariatur adipisicing exercitation nulla" }, { "_id": "1D88BE9D8FF6dD115CacfDa6", "name": "est adipisicing elit nulla", "description": "dolore proident eiusmod qui" }, { "_id": "eCFA5B24Fffddc3bAFbCAEce", "name": "consequat consectetur quis deserunt nulla", "description": "magna" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/S83O49/ZtUe0eBOW3Z/~0/ImON/~0/kUDx1et/TuO/~1/~1/MwlFpfl,f.4" }, { "type": "encryption", "pointer": "/CO-ZpQHPE/~0/~0/t/Nz.qj-" }, { "type": "encryption", "pointer": "/~0/b75an0/lfNMm/~0/~0/vAoUYPE" }, { "type": "encryption", "pointer": "/~0/~1/~1/~1/~1" }, { "type": "encryption", "pointer": "/D48ix+uWl/~0" } ], "migrationVersion": 51489293 }, "edit": null, "success": true }, { "message": "in ad incididunt Lorem dolore", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 72033992.34834129, "y": 74951628.1665551 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -44290021.55555284, "y": 42976691.920123845 }, "error_handler": { "name": "childJob", "summary": "ea in dolor officia", "description": "pariatur", "app": "labore in", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/wtqbp" } ] }, "groups": [ { "name": "cupidatat dolor ut fugiat sed", "provenance": "tempor sunt Lorem" }, { "name": "in laborum", "provenance": "fugiat Excepteur" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "adipisicing", "provenance": "Ut incididunt id in Excepteur" }, { "name": "voluptate magna occaecat ea non", "provenance": "esse labore" }, { "name": "ipsum deserunt velit", "provenance": "ut ea nulla officia dolor" } ], "_id": "772727d8-9b01-689a-4fa8-385ec39b287e", "description": null, "preAutomationTime": -35799025.06422372, "sla": -88907570.42363372, "errorHandler": { "type": "voluptate", "name": "dolor sit" }, "font_size": 12, "created": "1980-11-14T09:33:33.123Z", "created_by": { "username": "mollit cillum aliqua", "provenance": "nulla non" }, "createdVersion": "eiusmod in in", "last_updated": "1991-08-22T15:29:15.098Z", "last_updated_by": { "username": "mollit", "provenance": "ut proident et Excepteur" }, "lastUpdatedVersion": "in laborum sunt id occaecat", "tags": [ { "_id": "31F8fe63E7D05D5CFF17Bcb3", "name": "eu quis cupidatat fugiat", "description": "occaecat ea incididunt eu" }, { "_id": "e5cdE08E7Ed10ADF201c4Cbb", "name": "et proident consectetur ullamco non", "description": "eu incididunt tempor voluptate" }, { "_id": "Fcd3C3c2E68cEC4AbbcCCB0d", "name": "ullamco laboris", "description": "ea ex Lorem nulla proident" }, { "_id": "c8a7b76ac2EAe2F3f14eBE9C", "name": "voluptate qui sint sit id", "description": "do adipisicing cillum eu consectetur" }, { "_id": "EaeDC0ac6e5099BD3E9C7A62", "name": "quis", "description": "laboris aute eu irure" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/w20/SjuG3PB/~0/~1/ebzH/og/~1/~0" }, { "type": "encryption", "pointer": "/P" }, { "type": "encryption", "pointer": "/xTKvx6L" }, { "type": "encryption", "pointer": "/~0/x0v/~0/~1/UY8jxlU/~1/Q77/jlFGPD6F/~0" } ], "migrationVersion": 56332170 }, "created": null, "edit": null, "success": true }, { "message": "qui amet do elit", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 12554610.701822221, "y": -3002704.5920052677 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 79070912.88940635, "y": 72615965.30668682 }, "error_handler": { "name": "childJob", "summary": "ut nostrud", "description": "fugiat sit sed magna in", "app": "sit laboris amet tempor labore", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/d+F/n4MGq/CwkR/~0/KuG18Yb/Jjx8+6h-K6z/~0/~1/~0/~1" }, { "type": "encryption", "pointer": "/X9Vd,/~0/Ikd0,jAtC75/v+wxl6iLQNj/~1" } ] }, "groups": [ { "name": "veniam dolor velit", "provenance": "consequat ipsum veniam" }, { "name": "reprehenderit est sint", "provenance": "qui" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "sunt aute tempor", "provenance": "eu do amet" } ], "_id": "85e9b4c4-86e6-5ba7-9b53-c398e688f630", "description": "labore velit deserunt ut in", "preAutomationTime": 17374521.211974517, "sla": -87646703.70591427, "errorHandler": { "type": "dolor est mollit dolore", "name": "amet" }, "font_size": 12, "created": "1998-04-17T20:28:33.669Z", "created_by": { "username": "et Lorem", "provenance": "dolore id dolor" }, "createdVersion": "cillum consequat ex proident et", "last_updated": "1993-06-29T09:42:19.239Z", "last_updated_by": null, "lastUpdatedVersion": "cupidatat sed in aliquip", "tags": [ { "_id": "cBaA0fFf11aa61f71b2e8Bb1", "name": "consequat id aliquip sunt", "description": "pariatur labore officia deserunt" }, { "_id": "1fBC24F4E6660733Cdc9417D", "name": "deserunt ad in ut minim", "description": "consectetur in minim" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/vlyd.0/M/biQ/~0/zq" }, { "type": "encryption", "pointer": "/K3cRXmPzOFW/~1/X5M/avR+ML7/~0/tHFC17K/~0/~0" }, { "type": "encryption", "pointer": "/~0/~1/bRI/6j/~0/OoIAeU//~0/SDxyHaM544/~1/BTNY" } ], "migrationVersion": -43722286 }, "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" ] } } } }