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": [ { "name": "commodo Lorem", "provenance": "in" }, { "name": "elit dolore minim laboris in", "provenance": "dolor ea" }, { "name": "elit amet fugiat aute", "provenance": "proident ad mollit ut ex" } ], "gridCoordinate": { "x": 41892372.90953463, "y": -69853306.2894116 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "Duis eu in occaecat nisi", "provenance": "ut sed sunt" }, { "name": "et sed in", "provenance": "consequat" }, { "name": "sed incididunt", "provenance": "occaecat" }, { "name": "incididunt magna", "provenance": "laboris sint in nisi ex" }, { "name": "incididunt proident", "provenance": "labore ullamco fugiat" } ], "x": 69601377.96031556, "y": -95711566.63015188 }, "error_handler": { "name": "childJob", "summary": "dolore", "description": "eu", "app": "id dolore cupidatat", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/FoRh8rqq/iy,40Za/VL04flEAtWC/R63ml/Ik8K8/~0/~1/~1" }, { "type": "encryption", "pointer": "/nF/mxxPyr-v7/siFvKdS6/b/s/Maocge4LA/~0/wkV02qA" } ] }, "groups": [ { "name": "cupidatat qui adipisicing id", "provenance": "do eiusmod amet veniam" }, { "name": "Duis dolore Excepteur aliquip culpa", "provenance": "do ut in" }, { "name": "culpa", "provenance": "reprehenderit Excepteur eu" } ], "type": "operation", "x": 49343419.0658645, "y": -38496402.8438338, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "anim est sed cillum", "provenance": "labore et voluptate non" }, { "name": "Ut nisi quis laborum", "provenance": "in" }, { "name": "nulla magna non", "provenance": "mollit eiusmod" } ], "_id": "84102fcd-5a17-64c6-0000-eeedb67d9cb8", "description": null, "preAutomationTime": 73103173.30185437, "sla": -53369211.49903229, "errorHandler": { "type": "mollit proident ut in laborum", "name": "deserunt nostrud non sit ipsum" }, "font_size": 12, "created": "2004-08-30T16:21:24.387Z", "created_by": null, "createdVersion": "consequat voluptate sint", "last_updated": "2020-09-19T11:55:27.01Z", "last_updated_by": { "username": "ex cillum esse dolore", "provenance": "sit nulla" }, "lastUpdatedVersion": "occaecat", "tags": [ { "_id": "b15CEC116F0e13a0C2bB6Fa8", "name": "nostrud", "description": "nulla" }, { "_id": "8BE6fee055EADFC5F9c539E2", "name": "consectetur reprehenderit nisi sunt Ut", "description": "dolore enim laborum id" }, { "_id": "ab96D051f782E79e1BAd2F05", "name": "adipisicing ea", "description": "eiusmod ipsum fugiat et sint" }, { "_id": "1dEDEcD94459eC3A3dA5C350", "name": "Duis", "description": "esse mollit incididunt" }, { "_id": "5aFcdBc931f4bD27AcdD258A", "name": "culpa cillum Duis aliqua exercitation", "description": "mollit quis" } ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/iwH/~1/hXB0+0F/~0/~0/BJUfPmKX-8/~1/~0" }, { "type": "encryption", "pointer": "/~0/wAHwJB.qUy/o9Wh/Hp42E/~1/sdjjn+Jp/~1/~0/d4uxrGGA/t/NZ/QUXE+KFY" } ], "migrationVersion": -24545875 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "sed deserunt voluptate", "provenance": "sit qui incididunt" }, { "name": "aliquip esse commodo", "provenance": "proident est ad" } ], "gridCoordinate": { "x": 15132665.888740376, "y": -19645825.8550888 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "officia ullamco esse incididunt adipisicing", "provenance": "id" }, { "name": "velit laborum voluptate non", "provenance": "irure sed aliquip laboris" }, { "name": "sint Ut elit", "provenance": "Excepteur magna" }, { "name": "ut amet sit", "provenance": "aliqua velit id sint qui" }, { "name": "eiusmod id", "provenance": "amet aliqua" } ], "x": -86297661.3509146, "y": 68966641.64900336 }, "error_handler": { "name": "childJob", "summary": "deserunt elit sunt sed", "description": "sint dolor Lorem", "app": "et consequat cupidatat ullamco", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~1/eIO0HFdR/Xj/~1/~1/h/~0" }, { "type": "encryption", "pointer": "/Q5jYi4uJ/~0/~0/m0o/~1" }, { "type": "encryption", "pointer": "/~1/cWn4Crpzn1/csZ.rP6Y/~1/~1/~0/~0" } ] }, "groups": [ { "name": "ut mollit dolor", "provenance": "cupidatat irure et non Duis" } ], "type": "operation", "x": 68567456.55511576, "y": -53617828.38746332, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "eiusmod officia laboris", "provenance": "irure et est" }, { "name": "ea dolor ipsum", "provenance": "irure cillum mollit nulla" }, { "name": "in", "provenance": "ut commodo aliqua" }, { "name": "do qui labore ex elit", "provenance": "pariatur consectetur eiusmod mollit minim" }, { "name": "velit consectetur", "provenance": "Lorem sit" } ], "_id": "92f266aa-3c3c-d392-a224-b961726e1186", "description": null, "preAutomationTime": 21047302.934277028, "sla": -44211487.43418173, "errorHandler": { "type": "adipisicing amet Ut mollit aliquip", "name": "sed ullamco" }, "font_size": 12, "created": "1957-10-19T12:52:05.252Z", "created_by": { "username": "anim tempor", "provenance": "et dolore mollit est incididunt" }, "createdVersion": "incididunt veniam dolor sint amet", "last_updated": "1982-03-14T07:36:05.192Z", "last_updated_by": null, "lastUpdatedVersion": "pariatur eiusmod", "tags": [ { "_id": "0DE26d6c054dd36CCF7D520d", "name": "Duis sit dolor fugiat", "description": "sunt tempor quis cillum" }, { "_id": "FC5a7a93DA480bA443d3b0CA", "name": "aliqua et", "description": "do adipisicing nostrud" }, { "_id": "946E93fbC8f01CcBea40eCAE", "name": "consequat laborum elit", "description": "cillum incididunt aliqua" } ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/nslo/HVB-/yfl+5BJ+3/~0" }, { "type": "encryption", "pointer": "/~1/~0/hequi/rDjj/ZN8W4/mTh" }, { "type": "encryption", "pointer": "/gQ5/~0/~1/~0/~0/~1/BET49/bvzS/SD1DuDLjrv5/V/Xg+jj.u" } ], "migrationVersion": 51368338 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "ullamco", "provenance": "occaecat id" }, { "name": "enim voluptate commodo culpa", "provenance": "velit" }, { "name": "Duis tempor sint in nisi", "provenance": "esse adipisicing ut" } ], "gridCoordinate": { "x": -4124373.50851351, "y": -57374995.875815935 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "veniam eiusmod exercitation in in", "provenance": "consectetur ullamco" }, { "name": "commodo ut", "provenance": "ullamco ut quis non" }, { "name": "consequat nisi Duis incididunt", "provenance": "Ut eu irure in ad" }, { "name": "in eu officia sint", "provenance": "deserunt ea commodo" }, { "name": "exercitation", "provenance": "eu sit incididunt do" } ], "x": 68998710.50701874, "y": -37453990.31018746 }, "error_handler": { "name": "childJob", "summary": "ea", "description": "aliqua est", "app": "cupidatat id nostrud dolore", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/Pg7QJxO/~0/Ld.PTD/hS,y-I/BVs1/whG/~1/~1" }, { "type": "encryption", "pointer": "/BEogm/P/HTQFJ/FMn40/NH4/n4l+jg6/~0/FZ82Z-Cg7G/~0/I5k7gXe" }, { "type": "encryption", "pointer": "/iAR/wIe3FV/bMMnfvB/sWQRxTDpp9/~1/~0/u+xxx0Pf/CgTQ/QXCEk7T/tOCuiZ/J+ekrO/~0" }, { "type": "encryption", "pointer": "/mIERF3A2Qbu/ipxalsJT/~0/~1/~0/woIy7-T3d/~1" } ] }, "groups": [ { "name": "proident est ea nulla", "provenance": "elit laboris deserunt ea velit" } ], "type": "operation", "x": -35011724.37356059, "y": 16623837.076656088, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "in sint do Ut", "provenance": "officia ut dolore esse" }, { "name": "dolore sit in in", "provenance": "occaecat" }, { "name": "Lorem Excepteur cillum anim", "provenance": "amet Ut elit labore" }, { "name": "culpa magna laboris", "provenance": "dolore elit ut cupidatat" } ], "_id": "0b82b104-5767-e7a3-9a48-25c3c20fc7aa", "description": null, "preAutomationTime": 37198626.23677108, "sla": 40062047.03351951, "errorHandler": { "type": "exercitation", "name": "labore commodo" }, "font_size": 12, "created": "1954-01-11T17:32:17.415Z", "created_by": null, "createdVersion": "amet voluptate", "last_updated": "1990-09-14T05:29:15.041Z", "last_updated_by": { "username": "dolor dolore", "provenance": "proident elit" }, "lastUpdatedVersion": "laboris cillum pariatur", "tags": [ { "_id": "D9aeCfbB4ebf1B06A6B243D6", "name": "irure elit dolore cillum", "description": "consequat officia cillum" }, { "_id": "C1d67C1a0bd5c70ecc1AaBDA", "name": "eu dolor non", "description": "eu eiusmod esse" }, { "_id": "C88Ad424bA02fE3FbF0cC7a6", "name": "enim eu sunt", "description": "enim irure laboris nisi" } ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/uayn1yD2L" } ], "migrationVersion": 92821755 } ] }
{ "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": "magna quis nisi", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "consectetur qui", "provenance": "commodo labore veniam" }, { "name": "dolor fugiat aliqua in", "provenance": "laboris dolore anim proident officia" }, { "name": "cillum velit", "provenance": "nostrud Excepteur aute id" } ], "gridCoordinate": { "x": 69169383.18581179, "y": -26611503.838967472 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "incididunt", "provenance": "proident tempor ullamco reprehenderit" }, { "name": "adipisicing voluptate do", "provenance": "magna esse Duis aute irure" }, { "name": "minim", "provenance": "ut ullamco" }, { "name": "consequat enim non dolore Excepteur", "provenance": "laboris nulla culpa" } ], "x": -67636624.10496378, "y": -91934516.03463072 }, "error_handler": { "name": "childJob", "summary": "irure cupidatat anim esse", "description": "cillum mollit quis", "app": "minim consequat veniam do", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/sBc9-m/Dtg1//~0/~0/~1/y1GPLGP/~0/~1/TrYd" }, { "type": "encryption", "pointer": "/XqQ9W+I2kFI/xqMcURJx13/lAy9koTBv/sWXG/aj/~1/~0/sdGa4Iy/~0/~1/~1" }, { "type": "encryption", "pointer": "/~1/wej7vN+/~0/u,3GY/~0/D/oW6m-C" } ] }, "groups": [ { "name": "in dolor non", "provenance": "ex Excepteur proident" } ], "type": "operation", "x": -63335994.47421086, "y": -95752069.98821804, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "in dolore officia Duis", "provenance": "commodo" }, { "name": "occaecat", "provenance": "cupidatat fugiat dolore" }, { "name": "aliquip sit", "provenance": "sunt labore do" }, { "name": "in", "provenance": "sed" }, { "name": "irure", "provenance": "non Lorem" } ], "_id": "71b94db1-3c0e-9944-6454-04ae2c5c75f8", "description": "ullamco nostrud", "preAutomationTime": 84074237.01591927, "sla": -49440389.78440073, "errorHandler": null, "font_size": 12, "created": "1969-12-23T07:37:05.998Z", "created_by": { "username": "ullamco reprehenderit et", "provenance": "Lorem culpa ad sed" }, "createdVersion": "reprehenderit veniam eiusmod qui", "last_updated": "2021-08-15T16:41:21.784Z", "last_updated_by": null, "lastUpdatedVersion": "quis laborum laboris Excepteur aute", "tags": [ { "_id": "380d2cF474e63Cefa96Af615", "name": "dolore in", "description": "mollit id Ut non" }, { "_id": "7c6A3E13c4fd8ac1Bdde71eD", "name": "aliquip", "description": "qui in" }, { "_id": "65E24fDB192Bb3ed7ad825Bf", "name": "culpa", "description": "eiusmod proident" }, { "_id": "7acFEcdE14DDd3C336cDb513", "name": "non reprehenderit ad", "description": "sit veniam laborum" } ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~1/~1/Z,bg/~1/~0/oRnzxlD.L/fSRDbOOtQ/~1/~1/~0" }, { "type": "encryption", "pointer": "/~1/DK/ZtnV+kL/za,VrFE3Q/~1/~0/PXmLb/WxiMvJ/~0/~1/~0" }, { "type": "encryption", "pointer": "/~1/JYAZ3T/aEV0wMsr" } ], "migrationVersion": 95650984 }, "created": null, "edit": "amet reprehenderit proident ut nulla", "success": true } ] }
{ "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.", "oneOf": [ { "type": "string" }, { "type": "null" } ] } }, "required": [ "status", "message", "original", "created", "edit" ] } } } }