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": 67644945.84507644, "y": 79321457.16438565 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -88096939.5436975, "y": 68555001.08026323 }, "error_handler": { "name": "childJob", "summary": "et eu qui ipsum Duis", "description": "dolor commodo dolore irure est", "app": "veniam", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/x/kC/foyj9fa/Z-8LRrnf,S" }, { "type": "encryption", "pointer": "/~0/~0/W+M/J//BAKD4E6,LF/zm/i1SnQp/pD/uwm/~1" } ] }, "groups": [ { "name": "est", "provenance": "fugiat labore consectetur voluptate nostrud" }, { "name": "ea dolor non eiusmod", "provenance": "anim" }, { "name": "dolore in occaecat Lorem", "provenance": "nulla sed reprehenderit officia qui" }, { "name": "sunt Excepteur ex dolore laborum", "provenance": "cillum Lorem veniam Duis" }, { "name": "tempor Excepteur in", "provenance": "incididunt laboris in consectetur qui" } ], "type": "operation", "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "elit ex minim ipsum", "provenance": "dolor consectetur nostrud qui pariatur" }, { "name": "officia Ut mollit minim", "provenance": "eiusmod" }, { "name": "aliqua exercitation ipsum", "provenance": "mollit qui aute cillum" }, { "name": "est in labore", "provenance": "consectetur ut esse" }, { "name": "aute ad deserunt officia", "provenance": "aliqua dolor Duis sint" } ], "_id": "d16158fd-6329-1b6e-2c09-cf8b830ebdb3", "description": null, "preAutomationTime": 81181168.6362291, "sla": 59578087.48251554, "errorHandler": null, "font_size": 12, "created": "2003-12-25T03:34:51.675Z", "created_by": { "username": "et nostrud Excepteur ipsum", "provenance": "dolor Duis velit cillum ipsum" }, "createdVersion": "Ut in", "last_updated": "1977-10-01T21:37:12.931Z", "last_updated_by": null, "lastUpdatedVersion": "pariatur nisi non qui", "tags": [ { "_id": "Da24Bf36532FCcB185fff680", "name": "ullamco dolor do", "description": "qui in" }, { "_id": "A4E5Effbbd5eE0aCFC751bBb", "name": "nostrud culpa occaecat velit dolore", "description": "magna elit ullamco cupidatat" }, { "_id": "6C10fbf6AD93BF63E6A45da5", "name": "Excepteur consectetur ex", "description": "anim" }, { "_id": "22CDFf1a862EDF8929Cc44DB", "name": "ut ipsum", "description": "exercitation dolore eu consequat" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/~0/~1/~0/~1" }, { "type": "encryption", "pointer": "/DTsx7D/~0/FWd4Qefk" } ] }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -24476407.134281114, "y": 88572009.59203246 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -79708443.78004491, "y": -64040604.08406127 }, "error_handler": { "name": "childJob", "summary": "officia", "description": "id", "app": "dolore consequat ex", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/S8R/U0/~0/~1/wQ8o/CRTx/~0/Nnl-Lz/u/~0/dBnPulFG" }, { "type": "encryption", "pointer": "/D" }, { "type": "encryption", "pointer": "/~0/~0/~1/SRYTPpq/~1/HxtaSMU/q1lukm/xDvGevKZQ/~1/~0" }, { "type": "encryption", "pointer": "/~0/~1/N7Nz/TY-.OR/~1/a/mKWg,LE/Y3Yi06rOL/~1/~1/~1/ylE7Du" } ] }, "groups": [ { "name": "commodo dolore", "provenance": "ut sed qui" }, { "name": "fugiat dolore sit culpa", "provenance": "elit ut pariatur" }, { "name": "quis id fugiat", "provenance": "sed esse Ut" }, { "name": "anim culpa mollit", "provenance": "pariatur aliquip est id cupidatat" } ], "type": "operation", "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "Duis Ut consequat ea", "provenance": "culpa commodo" }, { "name": "irure veniam non est", "provenance": "dolore est" }, { "name": "fugiat culpa nulla", "provenance": "occaecat ut tempor in" }, { "name": "minim do ullamco sint deserunt", "provenance": "ex culpa laboris" }, { "name": "aliqua occaecat cupidatat et exercitation", "provenance": "culpa ullamco sunt cillum" } ], "_id": "9f4da3f0-8214-5d92-122d-502ba570a17d", "description": "aliquip anim nulla", "preAutomationTime": -64713337.96388494, "sla": 24096433.5556463, "errorHandler": { "type": "cillum laborum Ut nisi", "name": "eiusmod amet" }, "font_size": 12, "created": "1985-05-02T02:28:02.546Z", "created_by": { "username": "proident ad enim commodo", "provenance": "et ex" }, "createdVersion": "proident", "last_updated": "1958-12-12T21:04:48.768Z", "last_updated_by": { "username": "cupidatat dolore nostrud", "provenance": "sed" }, "lastUpdatedVersion": "ad voluptate", "tags": [ { "_id": "d11C7e1C3A4EE67ED79aDEFD", "name": "ea esse", "description": "officia" }, { "_id": "1f2EC729bED9D4aAd7f3c351", "name": "laborum", "description": "Excepteur quis aute cillum enim" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/wmkARg/~0" }, { "type": "encryption", "pointer": "/~1/jYxiD+wBP/vL2kQ/iK/~0/~0/~1/k/m-TOzCK/XO0Grkh" }, { "type": "encryption", "pointer": "/WB2O/aKEqhFr/VU0iHt1sQ8G/uxY5n0+4MW/~1/~0/~1/AqJx/~1/PUF.sKnVk/yZm4miZ8ex" }, { "type": "encryption", "pointer": "/~1/bJxRUn/~1/W/Sy1V9/~1/sYTn/~1/~0/~1/~1" } ] }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -1351810.1038383394, "y": 53898498.91582331 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 24311702.43384844, "y": 74241774.40650555 }, "error_handler": { "name": "childJob", "summary": "officia aute fugiat exercitation", "description": "et dolore enim in", "app": "deserunt exercitation occaecat Excepteur elit", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~1/~0/~1/ZyQ/NGX/~0/~0/~1" }, { "type": "encryption", "pointer": "/PiOX1B/~1/~0/Z1CDD/~1/DEKx51EjN/" }, { "type": "encryption", "pointer": "/w2/~1/~0/~1/CU9/~0" }, { "type": "encryption", "pointer": "/ij+xedEX/~1/Kh,OOi0S7/dQvyO/~1/iD7KC/U0Me" } ] }, "groups": [ { "name": "ut", "provenance": "ea nisi" }, { "name": "magna dolore commodo laboris", "provenance": "tempor" } ], "type": "operation", "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "aute pariatur dolore velit", "provenance": "reprehenderit consectetur deserunt dolor" }, { "name": "pariatur sed in", "provenance": "et pariatur exercitation" }, { "name": "veniam eiusmod sed occaecat", "provenance": "amet officia Lorem Excepteur" }, { "name": "eu", "provenance": "ut" }, { "name": "Lorem ullamco Excepteur", "provenance": "veniam" } ], "_id": "f2385486-4de8-06d5-5c0f-1ca904f88185", "description": "pariatur dolore reprehenderit", "preAutomationTime": 81273726.16130427, "sla": 28470908.74120149, "errorHandler": { "type": "aliqua reprehenderit", "name": "anim ut nulla do" }, "font_size": 12, "created": "1951-12-31T04:20:16.44Z", "created_by": null, "createdVersion": "Duis minim irure", "last_updated": "1984-06-07T03:42:55.786Z", "last_updated_by": { "username": "ea cupidatat in Ut", "provenance": "ex" }, "lastUpdatedVersion": "ut aute dolor", "tags": [ { "_id": "Deb678fC8cBE1e18bDe3f6Df", "name": "reprehenderit minim pariatur incididunt dolore", "description": "id ipsum deserunt ad nostrud" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/~1/~1" }, { "type": "encryption", "pointer": "/Ul/~1/p/Z+9BQ/E,kPY-2qYE/~1/~1/~0/L/JAqfg/I" }, { "type": "encryption", "pointer": "/~1" }, { "type": "encryption", "pointer": "/~1/w1NPWT/NZMlZ/f/ZXB6qvHm/DfcrU" }, { "type": "encryption", "pointer": "/SVmx,JIbM6C" } ] }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -59046415.850680225, "y": 71804757.84636486 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -16390207.502142355, "y": 41164967.52334458 }, "error_handler": { "name": "childJob", "summary": "aliquip adipisicing", "description": "incididunt cillum in", "app": "cillum mollit ullamco", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/WrXiok/yZVvk/~1/~1/~0/gsJoJ/CRiDuvh./~1/~0/~1" }, { "type": "encryption", "pointer": "/ZhM1lyYQPT" }, { "type": "encryption", "pointer": "/Hf/A2ZXlew+w" }, { "type": "encryption", "pointer": "/~1" } ] }, "groups": [ { "name": "esse anim enim", "provenance": "laborum enim" }, { "name": "magna velit proident est", "provenance": "amet pariatur Lorem non culpa" }, { "name": "labore consequat", "provenance": "fugiat officia ad qui" }, { "name": "voluptate magna incididunt Excepteur sunt", "provenance": "culpa exercitation laboris" }, { "name": "tempor", "provenance": "proident officia id magna" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "amet do", "provenance": "mollit esse qui in reprehenderit" }, { "name": "consectetur ea id", "provenance": "labore Duis fugiat elit" }, { "name": "Lorem", "provenance": "nulla cupidatat consequat" }, { "name": "consequat", "provenance": "officia" } ], "_id": "702cd095-4085-d39c-e811-3dc4444d3d75", "description": "consectetur minim", "preAutomationTime": -43885708.73713462, "sla": 897500.7766687721, "errorHandler": null, "font_size": 12, "created": "1986-05-14T16:00:07.302Z", "created_by": { "username": "minim", "provenance": "culpa qui enim" }, "createdVersion": "dolore Lorem consectetur", "last_updated": "1948-12-25T14:20:31.893Z", "last_updated_by": null, "lastUpdatedVersion": "commodo Excepteur non tempor", "tags": [ { "_id": "9B3f1E4c803490DeED6FCe1a", "name": "ad cillum nulla", "description": "minim dolore" }, { "_id": "1CEfe93fB0AEEF1e4000fad2", "name": "eiusmod qui aute", "description": "et" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/tSsW.TsBs./Tujyf/fAKiS/~0/~0/~0/~0" }, { "type": "encryption", "pointer": "/~1/P8E1m/l24/d-hRP" }, { "type": "encryption", "pointer": "/~0/~1/e+1axlJA4D6/~0/~1/~1/~0/~0/~1" }, { "type": "encryption", "pointer": "/~1/bm5V+F0Nm1/~1/CmS/JqH2Q/Io/JmeoToEj-./~1" } ] } ] }
{ "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": "qui", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -87209746.28692125, "y": 54650521.342612624 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -96628142.68049873, "y": -15086038.846449897 }, "error_handler": { "name": "childJob", "summary": "amet ad commodo", "description": "ea commodo dolore cillum", "app": "ullamco commodo sunt exercitation", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/Pq/~1/dz2Lt/w/HrGWW8eu/hN/CzbAgf/iHD,/v" }, { "type": "encryption", "pointer": "/~0/~0/~1/~0/JGFoEEL6/p/jtm4/~1/~1/yBXdH/Mh5u/~0" }, { "type": "encryption", "pointer": "/~0/HG.3Sq0289/~0/~0/~1/c/Ne/O/~1/gJSKKG" }, { "type": "encryption", "pointer": "/~0/VAL9yBOe/~1/gdEK/g97/BGw6QIc/~1/q-Cp3/~1" }, { "type": "encryption", "pointer": "/zo/YF-a/lkr52eFZk/vDx70xuA/~1/~1" } ] }, "groups": [ { "name": "sunt laborum adipisicing eu deserunt", "provenance": "do proident magna qui" }, { "name": "sint minim", "provenance": "minim culpa" }, { "name": "irure", "provenance": "deserunt eiusmod" }, { "name": "tempor irure in", "provenance": "Excepteur aliqua" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "consectetur", "provenance": "veniam magna voluptate Duis" }, { "name": "voluptate ad et est consequat", "provenance": "proident ea Excepteur" }, { "name": "dolore Ut eu", "provenance": "do irure" }, { "name": "culpa", "provenance": "nostrud consequat eiusmod" } ], "_id": "88ddb2b5-8472-44ef-d001-633bd49c1b91", "description": null, "preAutomationTime": -9199445.802721098, "sla": 19974226.69933729, "errorHandler": null, "font_size": 12, "created": "2007-09-10T16:47:02.515Z", "created_by": null, "createdVersion": "ex Duis est ad", "last_updated": "2007-12-14T15:32:21.485Z", "last_updated_by": null, "lastUpdatedVersion": "elit occaecat minim commodo Ut", "tags": [ { "_id": "6d5D4502bE413aa0Ce9303Ae", "name": "Excepteur adipisicing commodo tempor", "description": "ea mollit" }, { "_id": "7efadeb0cB25FAc263aC9d76", "name": "ut sit commodo consectetur Lorem", "description": "ullamco aliqua in" }, { "_id": "54e1a5219a9d0AfD01dD0aAc", "name": "amet", "description": "aute ea et sit" }, { "_id": "cbe84Ca4234b50a5E6E840D2", "name": "consequat incididunt", "description": "Duis adipisicing laboris irure" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/y+F7C3fZS/iUi/zGizqBlqRp/gEvCzDsnnLq/~0" }, { "type": "encryption", "pointer": "/~1/Si7/nlNSr/~1/~0/~1/x/,H9xOz/~0/~0/NG7" } ] }, "edit": "in mollit irure enim", "success": true }, { "message": "enim et nostrud fugiat dolor", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 49644450.73529732, "y": 73388970.4714362 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 59499877.48367792, "y": -98260973.41656995 }, "error_handler": { "name": "childJob", "summary": "consequat dolore sit reprehenderit ut", "description": "dolore sint elit ex dolor", "app": "consectetur officia ut", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~1" }, { "type": "encryption", "pointer": "/~1/NJIOb-/~1/~1/o" }, { "type": "encryption", "pointer": "/~0/LcA8HHtT" }, { "type": "encryption", "pointer": "/~1/w/~0/Gg" }, { "type": "encryption", "pointer": "/de7B/~1/XDM/p8Y6V" } ] }, "groups": [ { "name": "in aliquip incididunt", "provenance": "aute nostrud in do mollit" }, { "name": "ex laborum occaecat non", "provenance": "voluptate reprehenderit" }, { "name": "ad labore Lorem aute dolore", "provenance": "do laboris elit reprehenderit ipsum" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "esse commodo nisi laboris", "provenance": "occaecat pariatur elit reprehenderit laborum" }, { "name": "minim ad exercitation eu", "provenance": "quis occaecat in aute" }, { "name": "ut Lorem aute", "provenance": "Excepteur" }, { "name": "eu ut officia minim id", "provenance": "dolore nostrud do laboris" }, { "name": "in ea", "provenance": "sunt labore Duis in" } ], "_id": "7536bc6b-5f4c-8f25-d747-0b2cb66c5a63", "description": "Duis Lorem occaecat ipsum", "preAutomationTime": 53568921.20731732, "sla": 16400146.304304734, "errorHandler": null, "font_size": 12, "created": "2018-02-14T23:33:26.327Z", "created_by": { "username": "aliquip enim ea", "provenance": "dolor" }, "createdVersion": "in fugiat dolore ad", "last_updated": "1949-10-24T11:22:15.866Z", "last_updated_by": null, "lastUpdatedVersion": "Excepteur esse est mollit", "tags": [ { "_id": "Cfd2fB452ecd5A25fa66CBa8", "name": "ex in deserunt veniam qui", "description": "irure nulla voluptate in proident" }, { "_id": "5bc5cEaB9AcF89592cbDba79", "name": "cillum Excepteur Duis Lorem exercitation", "description": "irure ut" }, { "_id": "3DDdb361fbfc5c8bCcAd61f9", "name": "culpa officia exercitation sed magna", "description": "Duis dolore consectetur mollit" }, { "_id": "2ca604c7dDDda0eEBaF1C591", "name": "officia", "description": "sunt esse reprehenderit" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/~0/~0/~1/~1/V9juwuCy/~1/~0/~0/kmKI80/riH5m" }, { "type": "encryption", "pointer": "/~1/u/Hs/F/~0/~0" }, { "type": "encryption", "pointer": "/ZB/q1O" }, { "type": "encryption", "pointer": "/~0" } ] }, "created": null, "edit": null, "success": false }, { "message": "in dolor tempor", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -91413362.66184235, "y": 35442817.71407208 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 19347001.607865617, "y": 53091184.21490583 }, "error_handler": { "name": "childJob", "summary": "pariatur Excepteur eiusmod", "description": "in fugiat", "app": "tempor eu", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/tWLCHI1Jr/LH/~0/~1/p6vvjR/~1/S" }, { "type": "encryption", "pointer": "/~0/~0/LAtGhp/Wy.ck/~1/~1/~0/BI8PNGBCK" }, { "type": "encryption", "pointer": "/W/kp,/nN/~1/ndKlPA/qTMfLIMuI/DulPEqByGc/afVyNX" }, { "type": "encryption", "pointer": "/~1/~1/Dc/~1/~1/~1/~1" }, { "type": "encryption", "pointer": "/kksJQ/s64ZzyT4/RN/G8/~0/~1" } ] }, "groups": [ { "name": "aliquip dolor nulla aute", "provenance": "veniam reprehenderit consequat anim dolor" }, { "name": "quis tempor nostrud magna dolore", "provenance": "sint est exercitation nostrud" } ], "type": "operation", "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "esse aliqua Excepteur Ut consequat", "provenance": "anim consequat Duis aliqua" }, { "name": "dolore incididunt qui", "provenance": "veniam in consequat voluptate" }, { "name": "ut", "provenance": "est" }, { "name": "exercitation est dolor", "provenance": "occaecat nulla aute dolor" } ], "_id": "72070710-c19b-1450-76ff-b9ef92358f3b", "description": null, "preAutomationTime": 93765994.69828784, "sla": 90459734.91555163, "errorHandler": { "type": "cupidatat consequat", "name": "quis dolore proident" }, "font_size": 12, "created": "1966-03-18T13:18:40.063Z", "created_by": { "username": "Excepteur exercitation Ut velit incididunt", "provenance": "exercitation Excepteur id officia sunt" }, "createdVersion": "deserunt proident sunt ex", "last_updated": "1972-10-13T03:04:07.757Z", "last_updated_by": { "username": "qui", "provenance": "non deserunt" }, "lastUpdatedVersion": "eiusmod", "tags": [ { "_id": "FD20348EF914BACa22DdEC67", "name": "cupidatat tempor voluptate in mollit", "description": "amet fugiat" }, { "_id": "F6030eDFaEfDf7Fd2Fec8e0d", "name": "labore irure id", "description": "aliquip" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/Ze1-NE/ur3Tws/Z0D/nyP1OBm/m,eL/~0/SzCbwD/V7+R/WzliYar" } ] }, "edit": "dolore", "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" ] } } } }