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": "eu", "provenance": "Excepteur fugiat" }, { "name": "eiusmod aliquip", "provenance": "Excepteur ut" }, { "name": "in in adipisicing et sit", "provenance": "fugiat" }, { "name": "reprehenderit", "provenance": "nulla Excepteur irure" } ], "x": 25744664.14198868, "y": -12021594.99717021 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "occaecat Lorem Duis laboris", "provenance": "magna aliqua nostrud elit" }, { "name": "sit dolor nostrud", "provenance": "Ut mollit Excepteur" }, { "name": "incididunt", "provenance": "veniam dolor" }, { "name": "proident cillum", "provenance": "ut sint sunt" } ], "gridCoordinate": { "x": -68750256.1944466, "y": -70256842.83783957 } }, "error_handler": { "name": "childJob", "summary": "et amet laboris", "description": "quis elit", "app": "nisi voluptate ex", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~0" }, { "type": "encryption", "pointer": "/bV/Djj7i/s2/xomM,2t4hD/~0/Pzui/~0/gl9Qv,t/m3" }, { "type": "encryption", "pointer": "/Q" }, { "type": "encryption", "pointer": "/SA/Vcq7YqOVAV6/rl5/~0/~1/~1/D8Uj-20tF/~0" } ] }, "groups": [ { "name": "ipsum eu in eiusmod consequat", "provenance": "voluptate in" }, { "name": "deserunt aliquip sint in ullamco", "provenance": "laborum Duis in sint" }, { "name": "in", "provenance": "eiusmod velit magna culpa dolor" } ], "type": "operation", "gridCoordinate": { "x": 42586823.4483532, "y": 75134737.3916958 }, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "elit Duis", "provenance": "nisi mollit occaecat enim" }, { "name": "ad", "provenance": "officia fugiat proident" }, { "name": "in mollit", "provenance": "ullamco non" }, { "name": "in voluptate eu exercitation aliquip", "provenance": "eu dolor elit do deserunt" }, { "name": "voluptate occaecat", "provenance": "laborum aliquip incididunt" } ], "_id": "c4b3d2f4-8ce9-cee9-45ea-d1704c6ff5f1", "description": null, "preAutomationTime": -17708714.721864283, "sla": -20071415.018937692, "errorHandler": null, "font_size": 12, "created": "2007-01-04T07:28:59.278Z", "created_by": null, "createdVersion": "magna ullamco reprehenderit proident", "last_updated": "2010-09-01T22:41:46.132Z", "last_updated_by": { "username": "et ut ea sunt", "provenance": "eiusmod pariatur amet esse" }, "lastUpdatedVersion": "nulla", "tags": [ { "_id": "1Be03Be582e8dcEC0fe6f2F7", "name": "adipisicing nulla incididunt velit sunt", "description": "ea in" }, { "_id": "E8de0f5cd4DcCc671c7ee5e3", "name": "Duis dolore consequat ex", "description": "sit anim cupidatat dolore laboris" }, { "_id": "88eeE137E5a167e0Fa1f2De9", "name": "adipisicing ipsum in ad et", "description": "nostrud nisi in Lorem adipisicing" }, { "_id": "3d9e6b9cA684AF267E655802", "name": "est magna enim", "description": "Duis minim magna mollit Lorem" } ], "canvasVersion": 2, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/aJd/C3A.8EE,g/~0/~1/~0/~0/NvvErP/O/~1/~0/~1" }, { "type": "encryption", "pointer": "/Aqjs/~0/D/~0/mzScv/~0/~1/~0" }, { "type": "encryption", "pointer": "/C50Y.5fmOHd/s/Oi/Mb/~0/UW/~0/HONx/~0/~1" } ], "migrationVersion": 31271305 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "ut", "provenance": "ex" }, { "name": "ad", "provenance": "aliquip ad labore irure" }, { "name": "in est", "provenance": "Duis" }, { "name": "occaecat esse nulla", "provenance": "veniam consequat occaecat non in" }, { "name": "irure non anim", "provenance": "ut qui eu ad laborum" } ], "x": 21383892.371114135, "y": -99387795.37701365 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "pariatur commodo dolor ut", "provenance": "nisi laboris irure" }, { "name": "consequat exercitation in id deserunt", "provenance": "elit" }, { "name": "quis laboris", "provenance": "eu voluptate" }, { "name": "laborum aliqua ex sit consequat", "provenance": "reprehenderit nulla in amet sit" }, { "name": "ad mollit commodo", "provenance": "magna in eu" } ], "gridCoordinate": { "x": 25718773.051954627, "y": 52754751.68925831 } }, "error_handler": { "name": "childJob", "summary": "proident eiusmod anim in", "description": "aliquip ullamco in enim", "app": "ex Lorem cupidatat", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/QM1Y-/SAv-0E" } ] }, "groups": [ { "name": "fugiat sint enim velit", "provenance": "incididunt sed" }, { "name": "sed quis", "provenance": "in do commodo anim" }, { "name": "pariatur do", "provenance": "irure consequat" } ], "type": "operation", "gridCoordinate": { "x": -80727270.68740448, "y": -96879716.67699516 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "sed ea", "provenance": "magna esse" }, { "name": "laboris Duis dolore", "provenance": "qui enim dolore" }, { "name": "aute Excepteur ullamco deserunt", "provenance": "eiusmod exercitation incididunt fugiat" } ], "_id": "f405ae70-9f31-8b97-9d9d-22e45d51a03a", "description": "Lorem", "preAutomationTime": 47973183.94970295, "sla": 10388385.777275339, "errorHandler": { "type": "esse ex labore aute veniam", "name": "Lorem in" }, "font_size": 12, "created": "1961-01-08T14:34:21.529Z", "created_by": null, "createdVersion": "ipsum eu do", "last_updated": "1946-06-24T23:30:47.301Z", "last_updated_by": null, "lastUpdatedVersion": "consequat", "tags": [ { "_id": "4f2fB4775Bc3E6f1ba98b9B8", "name": "tempor", "description": "ipsum" } ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/S1ZtcA/mfrUab/~1/n/~0/~0/QKcxRM0wx/~0/CTMctq/,BD/~0" }, { "type": "encryption", "pointer": "/~0/x/Bw5yW57pu4F/D7aXYoLUJa6/~1" }, { "type": "encryption", "pointer": "/XGkLZiy-dui/qxxMBOWzA/VPl3Is/~0/~1/~1/ST,PQhx3LC/Mr/~1/~1" }, { "type": "encryption", "pointer": "/~0/~0/EQ7V/JuxE4R/Hz.97B6S2WQ/~1/~0/ck+." }, { "type": "encryption", "pointer": "/e,JWgRMxXqK" } ], "migrationVersion": 51015808 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "sed tempor deserunt occaecat voluptate", "provenance": "ullamco ut" }, { "name": "est aliquip", "provenance": "culpa id" }, { "name": "ipsum exercitation Duis", "provenance": "dolore irure culpa nostrud amet" }, { "name": "ex do sit dolor", "provenance": "sed officia reprehenderit eu" }, { "name": "ad", "provenance": "eu incididunt nisi mollit" } ], "x": 54188883.90179494, "y": -11506336.598397344 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "voluptate tempor Excepteur elit velit", "provenance": "sed aliquip" }, { "name": "amet", "provenance": "tempor nulla" }, { "name": "irure exercitation elit ipsum", "provenance": "consectetur cupidatat consequat ea" } ], "gridCoordinate": { "x": -69050758.55796747, "y": -44064400.36645387 } }, "error_handler": { "name": "childJob", "summary": "exercitation ut veniam", "description": "in aliquip", "app": "veniam", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/vu,W1FpyRu/~1/Zffp6Lgw5bK/ftK6/hanS+YxU" } ] }, "groups": [ { "name": "nulla sed et mollit eiusmod", "provenance": "eiusmod" }, { "name": "enim ipsum eiusmod officia", "provenance": "exercitation irure" }, { "name": "dolor in", "provenance": "sunt qui" }, { "name": "enim", "provenance": "veniam ut" } ], "type": "operation", "gridCoordinate": { "x": 50368658.744288296, "y": -31868717.41382897 }, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "occaecat sint dolor magna", "provenance": "dolor nostrud Excepteur in" } ], "_id": "a3893997-4e38-9c6f-3037-c61e3dac05a0", "description": null, "preAutomationTime": -5321291.222376078, "sla": -21976263.12623906, "errorHandler": { "type": "proident et ut", "name": "exercitation" }, "font_size": 12, "created": "1951-05-28T16:25:23.42Z", "created_by": null, "createdVersion": "Excepteur eu consequat", "last_updated": "1952-10-15T07:57:23.283Z", "last_updated_by": { "username": "fugiat exercitation culpa", "provenance": "irure eiusmod commodo dolor" }, "lastUpdatedVersion": "aliqua in in", "tags": [ { "_id": "c69eAb927cEecc9dAEBAca77", "name": "magna dolore ullamco exercitation", "description": "elit do exercitation consectetur labore" }, { "_id": "2999F013E3ebE8070ce5fF2D", "name": "nostrud", "description": "ex cupidatat elit voluptate et" }, { "_id": "7F6C866CbFB5Bd2CCC13cE61", "name": "laborum sed exercitation in mollit", "description": "Ut enim amet" }, { "_id": "7C9027Df690EfbB3B7bA8F2E", "name": "nisi commodo nostrud dolore laborum", "description": "nisi deserunt aute Excepteur" } ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/~1/vNE/~0/~1/cq/jdit/~1/bYmozDI,3cz/Xar8.ckQ" }, { "type": "encryption", "pointer": "/LPfbN" } ], "migrationVersion": 87571106 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "Ut adipisicing", "provenance": "Lorem culpa deserunt in aute" } ], "x": 21104395.22066261, "y": 54449129.28297013 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "ad reprehenderit anim nostrud", "provenance": "dolor" }, { "name": "non", "provenance": "labore esse deserunt" } ], "gridCoordinate": { "x": -40518551.883248664, "y": -94123284.43875562 } }, "error_handler": { "name": "childJob", "summary": "reprehenderit tempor sit eu in", "description": "est commodo exercitation", "app": "Ut ad exercitation adipisicing voluptate", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/UCEE4kngZ/PYwn/~1/~0/XAVWH6Ba/yXgKtkas" }, { "type": "encryption", "pointer": "/z-5/~0/~1/X/~0/EPGjdBVgi/aEDj/~1/~1/B/fUrtCVK8" }, { "type": "encryption", "pointer": "/~1/~1/raUG/~1/~1/~0/~1/~1/o/" } ] }, "groups": [ { "name": "proident adipisicing incididunt in Duis", "provenance": "dolore do Duis" }, { "name": "Lorem", "provenance": "ipsum ex magna dolore consectetur" } ], "type": "operation", "gridCoordinate": { "x": 34774192.657426864, "y": -64904958.92433184 }, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "proident Duis", "provenance": "ullamco" } ], "_id": "58a463db-16f5-5939-3418-63370ca32fd2", "description": "incididunt est", "preAutomationTime": -10751014.47170344, "sla": -47655790.182193995, "errorHandler": null, "font_size": 12, "created": "1961-02-28T22:35:51.606Z", "created_by": null, "createdVersion": "laboris enim ut", "last_updated": "1995-11-01T14:29:40.489Z", "last_updated_by": { "username": "nostrud quis qui laboris mollit", "provenance": "aliqua laboris dolor consequat nostrud" }, "lastUpdatedVersion": "culpa ipsum sit cupidatat magna", "tags": [ { "_id": "AabDA22Eef2F4cC3e76B33ef", "name": "Duis", "description": "labore cupidatat culpa Ut eiusmod" }, { "_id": "9A94B0dEce8470EA99912b2E", "name": "irure enim", "description": "amet irure Lorem" }, { "_id": "659dae4EFD847B8bF829A683", "name": "voluptate", "description": "ut cupidatat aute adipisicing ipsum" }, { "_id": "80a46D07bEA6a05202AB6bBd", "name": "esse veniam eiusmod dolor tempor", "description": "Lorem sit qui voluptate" } ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/Qavcs/AUG/~0/~0/o" }, { "type": "encryption", "pointer": "/~0/~1/~0/~0/bSYIJ-f6/~0/~1" }, { "type": "encryption", "pointer": "/~1/FO/~0/~1/VInVe060o/~0/~0/D8mT7Q/S/~1/~0/lOQ8G" }, { "type": "encryption", "pointer": "/~0/~0/zojzn/K,MOScM/~1/~0/~0/~0" } ], "migrationVersion": 87035824 } ] }
{ "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": "nisi Excepteur et in", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "reprehenderit in dolor", "provenance": "et irure Ut" }, { "name": "anim est elit irure nisi", "provenance": "anim" }, { "name": "aliquip", "provenance": "mollit enim" }, { "name": "tempor", "provenance": "reprehenderit et sunt" } ], "gridCoordinate": { "x": -84650122.60026442, "y": 968771.9989483654 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "ipsum reprehenderit dolore", "provenance": "Excepteur magna" }, { "name": "nostrud cupidatat quis fugiat id", "provenance": "ut sit ut" }, { "name": "qui voluptate ex dolor dolore", "provenance": "Excepteur mollit labore incididunt amet" }, { "name": "cupidatat in deserunt", "provenance": "dolore aliqua qui reprehenderit" }, { "name": "et", "provenance": "tempor in eiusmod" } ], "x": 70883302.89454952, "y": -87944768.78082941 }, "error_handler": { "name": "childJob", "summary": "adipisicing in deserunt", "description": "in magna", "app": "proident qui non", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/YTTacW/~1/SJNqru,UnG/~0/~0/~0/~1/rdOPVNqSYOo" }, { "type": "encryption", "pointer": "/zHm7CU9--/~0/L3YLdm/Q.6n8/K7Sh" }, { "type": "encryption", "pointer": "/t4mxCvKA/~0/yMwQGRjqaQL/e9+/~1/TtI7M/J/X0Jd4X0j,g/oZ/~0" }, { "type": "encryption", "pointer": "/Sk/bhh.7,/~1/s46-C,KIfZ/V/~0/CdManzH/~0/~0" }, { "type": "encryption", "pointer": "/~1/~1/QnBKMD3y3" } ] }, "groups": [ { "name": "dolore sunt Excepteur", "provenance": "dolor aliquip anim quis" }, { "name": "sed ea exercitation aute", "provenance": "deserunt cupidatat ullamco" } ], "type": "operation", "gridCoordinate": { "x": -4467042.954939425, "y": 91411491.64745 }, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "voluptate in", "provenance": "laborum dolore et in" } ], "_id": "c4697eef-54a9-6e7f-0757-60f27d508ef3", "description": null, "preAutomationTime": -33374168.82666999, "sla": 73956990.80649805, "errorHandler": { "type": "occaecat", "name": "mollit occaecat culpa" }, "font_size": 12, "created": "1990-03-14T03:31:27.212Z", "created_by": null, "createdVersion": "aliqua commodo", "last_updated": "1972-06-24T23:46:00.313Z", "last_updated_by": null, "lastUpdatedVersion": "aute", "tags": [ { "_id": "ce694cCfa0B6cF629CdeDd2A", "name": "Excepteur reprehenderit esse ex", "description": "id Ut dolor laborum sed" }, { "_id": "FFE6f3CEC8be28d99af2beAD", "name": "in ea", "description": "nisi consequat esse sunt" }, { "_id": "db835E7eAA0C499cDda1E8dD", "name": "in dolore Lorem laboris", "description": "ipsum veniam aute" }, { "_id": "58F0bcbeAD0B1a86dE576B9f", "name": "nulla labore Lorem sint", "description": "officia sed do et" }, { "_id": "dF97Db7F7BdF436CCEEeAd25", "name": "ipsum dolor", "description": "occaecat adipisicing non reprehenderit" } ], "canvasVersion": 2, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/~1/N1YThoj27/WKMoQP/~0/R0vBO6/~1/~1/~1/~1" }, { "type": "encryption", "pointer": "/v4KXMNB/oiX2/~0" } ], "migrationVersion": 91449432 }, "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.", "oneOf": [ { "type": "string" }, { "type": "null" } ] } }, "required": [ "status", "message", "original", "created", "edit" ] } } } }