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": 12859439.1623476, "y": -92863378.01980302 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -47208391.81424861, "y": 60834664.860725194 }, "error_handler": { "name": "childJob", "summary": "pariatur occaecat sint Excepteur nulla", "description": "consequat Excepteur laboris ea est", "app": "Duis non in", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~0/~0/JhluP+/C/~1/~1/~0/~0/b/pNeCJnjoRF" }, { "type": "encryption", "pointer": "/BzS,lXuJ/WK" }, { "type": "encryption", "pointer": "/rh" }, { "type": "encryption", "pointer": "/OWuhW/dC-7/~0/~1/ineVmpyYqS/~0/~1/R.+d" }, { "type": "encryption", "pointer": "/~1/AWduHyusAsq/rd/FFau/OKw+9L/uk,nbPE/S2Wul/M-j-8C/~0" } ] }, "groups": [ { "name": "quis", "provenance": "quis ullamco" }, { "name": "cupidatat", "provenance": "aliqua pariatur quis laborum" }, { "name": "dolor qui veniam occaecat", "provenance": "ut minim" } ], "type": "operation", "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "irure minim reprehenderit elit", "provenance": "officia sunt" }, { "name": "ex voluptate", "provenance": "Lorem ut elit in aute" } ], "_id": "25c3eed4-b36e-be8e-f81a-c239c005cec6", "description": null, "preAutomationTime": -76053562.41588171, "sla": -94487811.65247233, "errorHandler": { "type": "eu aute anim nulla", "name": "esse ut" }, "font_size": 12, "created": "1987-08-08T21:03:25.401Z", "created_by": null, "createdVersion": "in ad", "last_updated": "1995-05-26T11:26:13.368Z", "last_updated_by": { "username": "occaecat", "provenance": "sit tempor sint ullamco qui" }, "lastUpdatedVersion": "eiusmod velit dolore enim", "tags": [ { "_id": "eec51cB52D0464FF3f6909D0", "name": "fugiat", "description": "officia anim deserunt in" }, { "_id": "3A59e3Def3EDFf0EFD7deecF", "name": "reprehenderit", "description": "ut voluptate mollit ad velit" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/~1/~0" } ], "migrationVersion": 6218488 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 12784415.948955268, "y": -2026726.2679640353 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -89458515.70934646, "y": -26606178.17623207 }, "error_handler": { "name": "childJob", "summary": "nisi voluptate", "description": "laborum", "app": "in culpa incididunt Ut ex", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/t/cvsZJI/~0/~0/PK0HzD82/kZh8axsO/X/GO2/qqSQGy/z2ET/G8Xc3hTNXK-" }, { "type": "encryption", "pointer": "/~0/gNdHwF18.T/~1/b/h/gmi6u+DYv0/Kb2N/wvNyO3Nn,/qeAdVh1rg49" } ] }, "groups": [ { "name": "sint amet", "provenance": "consectetur" }, { "name": "est id dolore", "provenance": "non et aute tempor" }, { "name": "eiusmod aute in", "provenance": "dolor consequat sed ut" }, { "name": "ad quis in elit sint", "provenance": "adipisicing aliquip" } ], "type": "operation", "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "eu ea reprehenderit adipisicing", "provenance": "magna aute" }, { "name": "enim do", "provenance": "cillum" }, { "name": "Excepteur Duis nisi", "provenance": "fugiat commodo elit officia" }, { "name": "dolore eu qui dolor", "provenance": "elit sint sunt" } ], "_id": "b9cc6a78-8d74-036e-f5d0-9c37c74231bd", "description": null, "preAutomationTime": -19741560.453970626, "sla": 31823526.304867625, "errorHandler": { "type": "culpa sit dolor veniam aliquip", "name": "nostrud nulla ad" }, "font_size": 12, "created": "1948-02-25T03:19:36.243Z", "created_by": { "username": "nostrud aute id", "provenance": "incididunt" }, "createdVersion": "non irure", "last_updated": "1964-03-18T21:30:02.123Z", "last_updated_by": { "username": "officia ut", "provenance": "sit culpa occaecat labore" }, "lastUpdatedVersion": "aliquip ea Duis Ut quis", "tags": [ { "_id": "82357Fe68fCe3CDbc39D95c1", "name": "elit eu", "description": "ea elit voluptate" }, { "_id": "32abBD8839dCeAf7bcfC1AD8", "name": "deserunt eiusmod dolore", "description": "consequat in sit" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/P.t/~0/~1/zPqjsod,Ut/~0/~1/~0/YKcl/~0/rlYba76ELTv" }, { "type": "encryption", "pointer": "/KxzQ,Y/~0/GUqI/g-bs/~0/OP/GT2/~1" }, { "type": "encryption", "pointer": "/b1JcE/~0/~0/~0/xk0C/~1/~1" }, { "type": "encryption", "pointer": "/KNq/~0/I7HE6SOVeG/~0/Dt-" } ], "migrationVersion": -29061849 } ] }
{ "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": "reprehenderit ea dolor dolor id", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -33282943.02738768, "y": -14125986.478724912 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -34346877.851687595, "y": 94850698.73964882 }, "error_handler": { "name": "childJob", "summary": "nulla aliquip", "description": "officia Lorem amet", "app": "enim aliquip", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/KFiKrIuyKKY/~1/~1/~1/~0/DIJbjKKmwB/wO/~0" }, { "type": "encryption", "pointer": "/CDWs5/QNlK/FoFiIx-H/~0/~0/vI8/~1/~1/n5S" }, { "type": "encryption", "pointer": "/DSN9/~1/CL6/~1/~0/Ltk./ElJ+GNiB0n8" } ] }, "groups": [ { "name": "eiusmod nostrud nulla sunt", "provenance": "eu est cillum" }, { "name": "in irure consectetur ullamco", "provenance": "proident Duis consectetur adipisicing" }, { "name": "minim veniam", "provenance": "aliqua nulla aliquip Lorem qui" } ], "type": "operation", "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "do labore dolor", "provenance": "cillum magna voluptate id esse" }, { "name": "aute incididunt", "provenance": "veniam" }, { "name": "dolore", "provenance": "incididunt esse non" } ], "_id": "5385d85b-77f9-3447-e28d-2237a4708a1a", "description": null, "preAutomationTime": -96761190.34708677, "sla": 98089358.01286647, "errorHandler": { "type": "cillum non irure eu aliquip", "name": "id voluptate" }, "font_size": 12, "created": "2005-07-28T06:17:30.783Z", "created_by": null, "createdVersion": "sed nisi ea sit", "last_updated": "2012-03-17T04:44:14.86Z", "last_updated_by": { "username": "cillum do fugiat commodo exercitation", "provenance": "in eu cupidatat" }, "lastUpdatedVersion": "do", "tags": [ { "_id": "DF5ddeEcCaFFEcda4Ee7ca28", "name": "esse", "description": "dolor esse tempor incididunt" }, { "_id": "AB555fa57fABbceBaEBFA894", "name": "esse reprehenderit mollit veniam labore", "description": "tempor" }, { "_id": "EF7FeFa806EA50B4EAfcAEe9", "name": "labore velit quis consequat", "description": "amet dolore do nostrud" }, { "_id": "FBe9cFf3B8Db0DEeE2Aac6cA", "name": "quis", "description": "velit quis reprehenderit consequat" }, { "_id": "CCAFE1061E3fF6646DBCc068", "name": "aliquip", "description": "nisi in id" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/I9FJPM,E/~1/~0/~0/~1/QylfTfJG/kq2cHR" }, { "type": "encryption", "pointer": "/~0/gc7hXUe/T1VF/Ln.h6/EkS93J/NRf/tIxm/d/~1/~0" } ], "migrationVersion": 29789366 }, "edit": "et", "success": true }, { "message": "aliquip", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -66859625.21490954, "y": -74287761.44878757 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -57391740.72388664, "y": 83646819.52955887 }, "error_handler": { "name": "childJob", "summary": "magna fugiat nisi proident", "description": "veniam", "app": "minim reprehenderit fugiat proident", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/sA/b2VZITtP/ds+IYGtl//~1/o8" } ] }, "groups": [ { "name": "ullamco esse aliqua reprehenderit veniam", "provenance": "sunt nisi in sint aliqua" }, { "name": "in dolor", "provenance": "do nostrud" }, { "name": "ea officia aliquip dolore nulla", "provenance": "pariatur nostrud" }, { "name": "adipisicing Excepteur", "provenance": "fugiat" }, { "name": "irure Duis in", "provenance": "esse laboris" } ], "type": "operation", "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "sed", "provenance": "cupidatat magna" }, { "name": "ex laboris Duis reprehenderit", "provenance": "cillum dolor" } ], "_id": "ecef4921-f548-0854-c55f-92f3d995c5dc", "description": "mollit dolor", "preAutomationTime": 5134147.736418277, "sla": 46533835.898932904, "errorHandler": null, "font_size": 12, "created": "1945-08-18T22:28:33.864Z", "created_by": null, "createdVersion": "dolor mollit quis id dolor", "last_updated": "1950-05-29T00:21:42.844Z", "last_updated_by": null, "lastUpdatedVersion": "ex sunt", "tags": [ { "_id": "6B1fF8828C4B219C6111789F", "name": "est exercitation", "description": "incididunt" }, { "_id": "8c76eEE0B54Eef9eBD6BB22d", "name": "dolor commodo sint labore", "description": "sint officia" }, { "_id": "34aF56b3e9c76EFb3A0beAc8", "name": "deserunt in occaecat nostrud velit", "description": "est laboris" }, { "_id": "25b61fFEBeB3894307B9baf4", "name": "non id labore eu", "description": "consectetur Ut consequat dolore nulla" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/o+qIexwk/x" }, { "type": "encryption", "pointer": "/MNeuTA/~0/k///lxdEz/AQfw+" } ], "migrationVersion": 37264162 }, "edit": null, "success": false }, { "message": "enim non dolor", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -24649203.46005237, "y": 68090444.24554095 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 28433291.272569776, "y": -35920358.93805563 }, "error_handler": { "name": "childJob", "summary": "cillum Lorem", "description": "id occaecat", "app": "sint dolor qui", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/QbP4Da" }, { "type": "encryption", "pointer": "/~1/~1" }, { "type": "encryption", "pointer": "/~0/b/~1/~0/O/Fk,.X/~1/irvbSN/StHNVNt/x,2" } ] }, "groups": [ { "name": "pariatur mollit non ex ut", "provenance": "incididunt" }, { "name": "Duis laborum", "provenance": "dolor aute" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "dolore dolor", "provenance": "in" } ], "_id": "39594d36-5d36-aa5c-4ac4-937ae7eadf2d", "description": null, "preAutomationTime": -48979450.095216095, "sla": 15463936.471440613, "errorHandler": { "type": "ad dolore ea fugiat", "name": "qui veniam laborum sit" }, "font_size": 12, "created": "1971-07-10T17:39:14.502Z", "created_by": { "username": "laboris", "provenance": "fugiat do laboris" }, "createdVersion": "irure dolor", "last_updated": "1975-02-13T12:53:47.527Z", "last_updated_by": { "username": "do fugiat ex", "provenance": "eiusmod" }, "lastUpdatedVersion": "voluptate non", "tags": [ { "_id": "ad6ccEeed2E407d3c7DaE0c7", "name": "ipsum fugiat quis incididunt", "description": "occaecat dolor" }, { "_id": "989b089DcCFece6f7ce78265", "name": "dolore proident", "description": "reprehenderit velit qui sunt" }, { "_id": "36bfA0D9F7382cBC1FCBDA46", "name": "ipsum dolore laborum occaecat", "description": "consequat occaecat mollit nisi" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/EOw7BLFMra/Asd" }, { "type": "encryption", "pointer": "/csDj5/dX//Vsmf/I2+m/~0/KB8f2CQ" }, { "type": "encryption", "pointer": "/~0/PV/wPtNom2j" } ], "migrationVersion": 57630241 }, "created": null, "edit": null, "success": true }, { "message": "do ullamco veniam", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 85516119.36239576, "y": -87606605.073664 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -30800395.430583596, "y": 81282955.0110482 }, "error_handler": { "name": "childJob", "summary": "fugiat minim et", "description": "eiusmod fugiat in proident nostrud", "app": "laborum id ea et", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/dsg/OrnDCzdaR/~1" }, { "type": "encryption", "pointer": "/LgxNIr1jw" }, { "type": "encryption", "pointer": "/~1/~1/zJx/~0/~0/~1/Ny3F8OWAvXj" }, { "type": "encryption", "pointer": "/~0/vnMGw0h4RlN" }, { "type": "encryption", "pointer": "/r/URDO-/~0/~1" } ] }, "groups": [ { "name": "qui fugiat non ut", "provenance": "esse exercitation nisi consectetur cillum" }, { "name": "exercitation est ipsum et elit", "provenance": "consequat adipisicing sint" } ], "type": "operation", "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "ullamco cupidatat", "provenance": "voluptate eu nostrud aliqua" }, { "name": "eu ut elit dolor Excepteur", "provenance": "minim proident laborum nostrud ad" }, { "name": "et consequat", "provenance": "laborum in" } ], "_id": "b73720f2-31d2-84df-8cca-28448434cac9", "description": null, "preAutomationTime": 61865475.09795287, "sla": -73790399.9121468, "errorHandler": null, "font_size": 12, "created": "2019-02-21T15:49:15.292Z", "created_by": { "username": "fugiat proident", "provenance": "dolor in dolore amet" }, "createdVersion": "quis dolore dolore labore ut", "last_updated": "1986-09-07T13:13:32.874Z", "last_updated_by": null, "lastUpdatedVersion": "irure sed tempor ut", "tags": [ { "_id": "23adBbbFd3dfE5Fb163e8Cdd", "name": "Duis proident ad nulla", "description": "et aute" }, { "_id": "86bEC3Dd493b6DA9Dfc5ECf8", "name": "nulla", "description": "mollit" }, { "_id": "1FeD65A5ac5ed28BFf5751CB", "name": "commodo", "description": "aliqua Lorem cillum proident" }, { "_id": "7Ea5Cc4D8eEe4bc7D12b22CB", "name": "enim non", "description": "nisi Lorem" }, { "_id": "cdc5D9a2C0B4E6cc4CcD8a20", "name": "est commodo", "description": "sit aliquip dolor amet" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~0/A8" } ], "migrationVersion": 6804283 }, "created": null, "edit": "sit nisi", "success": true }, { "message": "commodo irure aliquip est", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -3662598.4311087728, "y": 50080341.21262801 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 69233868.61997712, "y": -69870307.9449071 }, "error_handler": { "name": "childJob", "summary": "non nulla cillum in", "description": "officia culpa fugiat", "app": "consequat veniam aute", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/ce7/c9Tcy6" }, { "type": "encryption", "pointer": "/YIy/jHxr/~0/mKvTVI3" }, { "type": "encryption", "pointer": "/j6j+Kf/~1/u-1Aw/~0/ajhNtku/Oo/~1/~0" }, { "type": "encryption", "pointer": "/~0/cV8a26B/~1/~1/r0,7I/FL/nmQ/~0/~0/j1AiKgz/YLv47uWc" } ] }, "groups": [ { "name": "exercitation", "provenance": "ad sunt magna non" }, { "name": "eiusmod Ut Duis veniam", "provenance": "officia velit dolor dolor" }, { "name": "eu sit laborum minim nostrud", "provenance": "labore Ut Duis dolor" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "voluptate mollit", "provenance": "ea" }, { "name": "sunt aliqua amet consectetur commodo", "provenance": "consequat dolore anim aliquip" } ], "_id": "664fad8b-63ff-d3d0-dc67-b170f85e8b93", "description": null, "preAutomationTime": 77223488.21839488, "sla": 31383805.207102045, "errorHandler": { "type": "nostrud laborum velit labore sit", "name": "in sunt" }, "font_size": 12, "created": "1964-04-06T06:43:31.225Z", "created_by": { "username": "est non sit ad", "provenance": "deserunt Duis eiusmod culpa in" }, "createdVersion": "consectetur tempor deserunt ut fugiat", "last_updated": "2006-01-09T06:47:14.044Z", "last_updated_by": { "username": "ea esse veniam sed reprehenderit", "provenance": "in elit in exercitation est" }, "lastUpdatedVersion": "qui velit consectetur", "tags": [ { "_id": "9F11a8E89C4aDef0Efdb3ef7", "name": "culpa reprehenderit", "description": "eiusmod occaecat Lorem reprehenderit adipisicing" }, { "_id": "Ca678fE69CbBFCCcaFacebEF", "name": "minim sint", "description": "esse Duis" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/oRHPcO2Dpp/cGMio/tz2gGTY6m/mjhEOfuTY95/~1/~0/HFz/+0Ieo3" }, { "type": "encryption", "pointer": "/~1/~1/oC51gG1ws/MMF7TJre/~0/~0/yXz/~1/~0" }, { "type": "encryption", "pointer": "/GptO/fL" } ], "migrationVersion": -86211333 }, "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" ] } } } }