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": "culpa", "provenance": "id" }, { "name": "sint officia amet", "provenance": "enim nisi ea" }, { "name": "elit ullamco enim non sint", "provenance": "nostrud reprehenderit dolor" } ], "x": -89049080.35032494, "y": -34905403.14182185 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "commodo et mollit sint nulla", "provenance": "velit ex in culpa reprehenderit" } ], "nodeLocation": { "x": 88287147.71032393, "y": 75033397.55919063 } }, "error_handler": { "name": "childJob", "summary": "culpa eiusmod anim mollit", "description": "reprehenderit dolor", "app": "consequat dolor ipsum reprehenderit", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/qMXMowm/~1/~0/WPvkke0UY6x/~0/T/Z7.,27l/yXkDgk/~1/L1ZcPakEBi/~0" } ] }, "groups": [ { "name": "dolor deserunt minim consectetur commodo", "provenance": "aute irure" }, { "name": "nisi reprehenderit minim", "provenance": "sunt enim qui" }, { "name": "in velit ullamco nostrud", "provenance": "deserunt ut ut Duis officia" }, { "name": "ea qui", "provenance": "consectetur nisi nulla Ut in" } ], "type": "operation", "gridCoordinate": { "x": -85585209.73195267, "y": -83854391.95168929 }, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "dolor eiusmod ipsum occaecat sed", "provenance": "cillum ut eu aliquip ipsum" }, { "name": "reprehenderit", "provenance": "eu" }, { "name": "dolore eiusmod mollit", "provenance": "sunt" }, { "name": "magna voluptate tempor ex", "provenance": "dolore" } ], "_id": "9a980829-3c97-79ad-569a-ce9effda92b0", "description": "commodo laborum dolore esse aliqua", "preAutomationTime": -10714764.17333433, "sla": 55028469.54603946, "errorHandler": { "type": "officia ex cupidatat esse", "name": "culpa commodo reprehenderit nulla eu" }, "font_size": 12, "created": "1985-07-11T12:59:57.146Z", "created_by": null, "createdVersion": "Duis", "last_updated": "1969-07-01T10:09:22.353Z", "last_updated_by": null, "lastUpdatedVersion": "est non ea cillum", "tags": [ { "_id": "Ca0AEcbEceDA7ab8Bb3cBDc5", "name": "incididunt", "description": "minim" }, { "_id": "A1aaDF4caC69bf5E7dFB4e07", "name": "Duis in", "description": "nulla reprehenderit" }, { "_id": "fEcE500CfBd2f7e08Bba364C", "name": "quis aliqua", "description": "Ut velit" }, { "_id": "eAdBFCE6BcE4E4eb702a41bf", "name": "enim ex", "description": "reprehenderit voluptate commodo proident qui" }, { "_id": "23dAe553afAC4Cfd17Bc4AeA", "name": "do amet dolore irure et", "description": "sit" } ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~1/Pcns/pETTOtF/~0/jpZTkqhR/~1/~1/~0" }, { "type": "encryption", "pointer": "/NsTAQaDhH./~1/vv/ISQ2/~1/~1" }, { "type": "encryption", "pointer": "/~0/VjmBTZOF/m/~1/~0/Rz/F/~1/~1/~1" }, { "type": "encryption", "pointer": "/~1/~0/x5IOp/nwY3Lu-hr" } ], "migrationVersion": -74225629 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "culpa dolore ut minim mollit", "provenance": "aute" }, { "name": "velit aliquip", "provenance": "aliquip do Duis nostrud consectetur" }, { "name": "Ut dolore dolor in occaecat", "provenance": "reprehenderit" }, { "name": "sit aliqua sed est minim", "provenance": "qui quis" }, { "name": "eiusmod", "provenance": "est reprehenderit cillum laboris adipisicing" } ], "x": 92987989.32274356, "y": -39732874.57071004 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "quis Duis", "provenance": "minim" } ], "nodeLocation": { "x": -32504277.560976252, "y": 22406787.69694236 } }, "error_handler": { "name": "childJob", "summary": "fugiat voluptate", "description": "magna", "app": "ex consectetur et", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/h-6S/~0/~0/~1/s/SKWKD20I" }, { "type": "encryption", "pointer": "/~1/fVI2Og7P3H/~0/BY2q3/~0/BNLP,G5G/~1/~1" }, { "type": "encryption", "pointer": "/fPjRnX7RI/okwv/~0/iOSWsp/~0" }, { "type": "encryption", "pointer": "/MeABPt,CkW/~1/~1/~0/FGLNEBMxC/gy5j/~1/c" }, { "type": "encryption", "pointer": "/kVJDmg/Hy/C/vuqRz/K1/eR,Z4S" } ] }, "groups": [ { "name": "eu quis elit tempor", "provenance": "Ut non anim enim" }, { "name": "ea", "provenance": "incididunt" }, { "name": "Duis culpa ea", "provenance": "ipsum in aliquip dolor veniam" }, { "name": "cupidatat pariatur ea sed ut", "provenance": "veniam occaecat reprehenderit elit culpa" } ], "type": "operation", "gridCoordinate": { "x": 39240674.610839754, "y": 29047698.70251891 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "proident Ut fugiat", "provenance": "tempor labore cillum anim" }, { "name": "laboris magna sunt labore", "provenance": "adipisicing dolor laboris" }, { "name": "in do velit aute dolore", "provenance": "ipsum in id ea voluptate" }, { "name": "Excepteur in anim ea", "provenance": "in qui" } ], "_id": "42738cfd-e277-2b6f-a2f1-848043e320eb", "description": "et sunt", "preAutomationTime": 25312991.118313774, "sla": -32213106.887773663, "errorHandler": null, "font_size": 12, "created": "1978-11-13T10:27:34.822Z", "created_by": { "username": "voluptate occaecat nulla irure id", "provenance": "nostrud elit ad in" }, "createdVersion": "dolor dolore commodo esse", "last_updated": "2010-12-13T23:29:03.835Z", "last_updated_by": null, "lastUpdatedVersion": "Duis in", "tags": [ { "_id": "9f9F96ecd79c6373c0BDBaaa", "name": "eiusmod in", "description": "qui cillum ut pariatur Excepteur" }, { "_id": "52aa8dC115415102AEE80BD5", "name": "ullamco nostrud", "description": "sed ea laborum anim irure" } ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/~1/~0/~0" }, { "type": "encryption", "pointer": "/d7My" }, { "type": "encryption", "pointer": "/~0/~0/JUQ3H/~0/N-" }, { "type": "encryption", "pointer": "/~0/pQZl8I/~0/vENoXr" }, { "type": "encryption", "pointer": "/nIhHn+Ce/pNC/~0/~0/~0" } ], "migrationVersion": -26691873 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "do dolore consectetur", "provenance": "in aliquip voluptate" }, { "name": "dolor esse nostrud mollit", "provenance": "aliqua" }, { "name": "in Excepteur adipisicing cillum", "provenance": "minim" } ], "x": -27493594.355925307, "y": -1879297.9699942917 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "officia irure", "provenance": "consequat" } ], "nodeLocation": { "x": 17784580.701421022, "y": 94804736.8116264 } }, "error_handler": { "name": "childJob", "summary": "adipisicing exercitation id", "description": "cillum et commodo sint Lorem", "app": "incididunt", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/i6Nn6" } ] }, "groups": [ { "name": "sint enim id magna", "provenance": "reprehenderit labore" }, { "name": "eiusmod nulla ipsum ullamco", "provenance": "est" }, { "name": "id amet in incididunt", "provenance": "ullamco fugiat in culpa" }, { "name": "exercitation non veniam sint", "provenance": "aute" }, { "name": "Duis veniam", "provenance": "reprehenderit exercitation" } ], "type": "operation", "gridCoordinate": { "x": -65552449.434103675, "y": -83034907.17607772 }, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "ullamco tempor", "provenance": "in occaecat consequat voluptate cupidatat" }, { "name": "sit", "provenance": "laboris elit deserunt quis officia" }, { "name": "eiusmod incididunt", "provenance": "id amet eu labore" }, { "name": "ipsum aliqua nulla ullamco", "provenance": "sint aliquip deserunt veniam aute" }, { "name": "est ex dolor anim Duis", "provenance": "laboris dolor" } ], "_id": "1ddd3442-54fb-234c-b6b0-1c3b6818ca5b", "description": null, "preAutomationTime": 4459352.375420213, "sla": -34401460.989578635, "errorHandler": { "type": "irure proident Excepteur", "name": "tempor non nostrud magna eu" }, "font_size": 12, "created": "2024-01-01T10:31:29.727Z", "created_by": null, "createdVersion": "cillum qui dolor in labore", "last_updated": "2015-07-23T00:45:10.671Z", "last_updated_by": null, "lastUpdatedVersion": "mollit commodo do", "tags": [ { "_id": "1A8B9B7a69DD20D8DD4D27FA", "name": "in laboris esse", "description": "velit culpa ea pariatur irure" }, { "_id": "DEbCe8Bd8Fe4Bcc4a3CdDAf4", "name": "ex magna dolore", "description": "irure ut dolor" }, { "_id": "425AEDCee88C3adddA71F4D0", "name": "consequat", "description": "ex ipsum deserunt voluptate" } ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~1/d/~1/GyWIh,l/~0/DG/KlVPWhc9n/gPY5g/~1" } ], "migrationVersion": -3748548 } ] }
{ "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": "in nulla mollit velit", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "tempor consequat reprehenderit aliqua", "provenance": "velit ut" }, { "name": "irure laborum non eiusmod", "provenance": "cillum ullamco laboris" }, { "name": "pariatur adipisicing ut aliquip incididunt", "provenance": "Ut in commodo nulla deserunt" }, { "name": "qui in cupidatat commodo deserunt", "provenance": "dolor" }, { "name": "proident esse nisi voluptate occaecat", "provenance": "ipsum ullamco voluptate fugiat" } ], "nodeLocation": { "x": -77486514.86509784, "y": -40076137.47518013 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "enim", "provenance": "do" }, { "name": "esse aute velit", "provenance": "ipsum ea deserunt" } ], "gridCoordinate": { "x": 62376327.74800202, "y": 51246546.0830054 } }, "error_handler": { "name": "childJob", "summary": "reprehenderit pariatur non dolor", "description": "nisi mollit ullamco", "app": "nulla", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/qOk/IBNXoOA-/qoOI/nZ,KsJXQzu7/ID3f0QQs/rlzxJ/tKwwT/~1/~1/vkte9-O/~1" }, { "type": "encryption", "pointer": "/E4Gq,f1hMl/~1/~1/~1/~0/~1" }, { "type": "encryption", "pointer": "/pIVxH7XVyFk/NM1Zf-/~1/~1/CP6XIC/YoB," }, { "type": "encryption", "pointer": "/~1/~1/jg/E/~0/SM,3/BRLIJ8Vf5/W-g/dy/~1/~1/yiaFCg/uB2" }, { "type": "encryption", "pointer": "/~1/~1/~1/R+BaqcL/kUF/~1/hkJH4/OS,MwX+//~0/SDJ47,67" } ] }, "groups": [ { "name": "laborum", "provenance": "veniam qui Ut" } ], "type": "operation", "nodeLocation": { "x": -41089570.98738788, "y": -66550460.280517235 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "amet non est consequat", "provenance": "ullamco veniam Lorem sunt" } ], "_id": "a3a310c9-1a3a-6656-77fd-cae0efa1f24c", "description": "ullamco eu cillum magna", "preAutomationTime": -84551304.00244908, "sla": 66923798.21352029, "errorHandler": null, "font_size": 12, "created": "1980-05-10T22:31:40.335Z", "created_by": { "username": "fugiat anim eu", "provenance": "minim" }, "createdVersion": "laboris fugiat", "last_updated": "2004-04-07T19:13:21.544Z", "last_updated_by": null, "lastUpdatedVersion": "aliqua", "tags": [ { "_id": "65D9e625Ce7cBC0540D4eCa2", "name": "ipsum dolor consequat ad elit", "description": "ad aute eiusmod ullamco" }, { "_id": "0fCFfA0bbf1b7AACFD8bd6aE", "name": "tempor esse", "description": "Excepteur exercitation ut sed quis" }, { "_id": "e7cA22Dfffbf01fdEC4fC6aE", "name": "ut qui", "description": "nisi pariatur quis ut" } ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/qxhc4Jh/yU6k-h5q" }, { "type": "encryption", "pointer": "/Y0OHLlgeXyg/SLhl/o" }, { "type": "encryption", "pointer": "/~0/~1/~0/qz+O-yd9CT/yg/~1" } ], "migrationVersion": -4265826 }, "created": null, "edit": null, "success": true }, { "message": "occaecat in eu", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "nostrud exercitation minim qui", "provenance": "reprehenderit magna quis aliquip" }, { "name": "occaecat exercitation in", "provenance": "non commodo" }, { "name": "amet Ut nostrud dolore irure", "provenance": "labore mollit" } ], "nodeLocation": { "x": 542560.8773659319, "y": 28755827.71089928 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "commodo ipsum amet proident", "provenance": "laborum" }, { "name": "elit pariatur in", "provenance": "ut deserunt et" }, { "name": "ullamco minim mollit", "provenance": "Lorem est tempor veniam labore" } ], "gridCoordinate": { "x": -90570178.04997289, "y": 7570318.920026466 } }, "error_handler": { "name": "childJob", "summary": "culpa velit veniam", "description": "qui Lorem dolore voluptate culpa", "app": "commodo voluptate laboris", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/r./,/~1/~0" }, { "type": "encryption", "pointer": "/u/~0/cK/EN5KqO" } ] }, "groups": [ { "name": "labore ad ex", "provenance": "anim" }, { "name": "et", "provenance": "laboris Excepteur ipsum" }, { "name": "eiusmod incididunt minim ullamco fugiat", "provenance": "fugiat nostrud qui sunt dolor" } ], "type": "operation", "nodeLocation": { "x": -9294454.122621998, "y": -37245667.4868312 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "culpa pariatur ipsum sunt Excepteur", "provenance": "consequat" }, { "name": "dolore fugiat pariatur", "provenance": "ut anim ex eiusmod" } ], "_id": "05afc8c3-cad5-eff7-13f2-c00e7556eda1", "description": null, "preAutomationTime": -49530584.61102584, "sla": 93357856.6439744, "errorHandler": { "type": "laborum ex do sit aliquip", "name": "non laboris" }, "font_size": 12, "created": "1981-03-22T17:59:25.575Z", "created_by": null, "createdVersion": "Lorem reprehenderit", "last_updated": "1958-04-16T14:48:15.282Z", "last_updated_by": { "username": "eiusmod reprehenderit cillum", "provenance": "amet qui non irure officia" }, "lastUpdatedVersion": "pariatur et in deserunt irure", "tags": [ { "_id": "8E3E969d2b691EC49Ae61FbD", "name": "Duis consequat qui cillum elit", "description": "ipsum Duis" }, { "_id": "27eAbC854BDaf4e8EC6Fa4a4", "name": "amet laboris", "description": "proident ea ullamco" } ], "canvasVersion": 2, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/qZr-mrTj/n/BU6/gsO/~0/J/nV2BK6/~0/We4-lA3" }, { "type": "encryption", "pointer": "/~1/ki4Sr/mvdPW7/~1/d3" } ], "migrationVersion": -53238607 }, "edit": "voluptate adipisicing sunt", "success": false }, { "message": "id quis", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "cupidatat nostrud in fugiat", "provenance": "velit mollit non dolor" }, { "name": "sit labore aliquip", "provenance": "Duis pariatur fugiat dolore in" } ], "nodeLocation": { "x": 90823222.0585044, "y": 92414498.67863429 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "dolore est labore", "provenance": "cillum" }, { "name": "sed eu in", "provenance": "exercitation" }, { "name": "quis Lorem cupidatat culpa proident", "provenance": "sunt laboris aliqua" }, { "name": "officia pariatur eu enim", "provenance": "commodo irure ea in" }, { "name": "officia cillum tempor", "provenance": "quis consectetur laboris" } ], "gridCoordinate": { "x": 22480031.393642098, "y": 77260586.64640978 } }, "error_handler": { "name": "childJob", "summary": "esse voluptate laboris ut occaecat", "description": "occaecat", "app": "est mollit in", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/rq/~0/~1/~0/~1/~0/~0/mb+DBP+" }, { "type": "encryption", "pointer": "/T,0PO0" }, { "type": "encryption", "pointer": "/~0/~1/~0/~0/C/~0/Io,UQ,/~1/~0/dP" }, { "type": "encryption", "pointer": "/~0/~0/~0/i6F/zg/~0/M/~0/~1/~0" } ] }, "groups": [ { "name": "incididunt consequat", "provenance": "veniam velit" }, { "name": "quis incididunt mollit", "provenance": "voluptate Lorem deserunt" }, { "name": "deserunt pariatur proident quis", "provenance": "id reprehenderit labore" } ], "type": "operation", "nodeLocation": { "x": -84226233.59443793, "y": -29657129.379343554 }, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "do consectetur dolore", "provenance": "id do laborum" }, { "name": "ad labore fugiat", "provenance": "cillum est amet incididunt commodo" }, { "name": "proident nulla", "provenance": "incididunt" } ], "_id": "c5d492bd-6dd8-1289-6fc1-48e39dcada83", "description": "Duis", "preAutomationTime": 90768406.75086597, "sla": -65664439.6590127, "errorHandler": { "type": "occaecat non", "name": "voluptate consequat irure culpa dolor" }, "font_size": 12, "created": "2002-08-29T00:19:16.877Z", "created_by": { "username": "amet esse in aute", "provenance": "commodo Excepteur et exercitation ullamco" }, "createdVersion": "anim tempor sunt eiusmod ut", "last_updated": "1978-05-07T12:13:18.173Z", "last_updated_by": null, "lastUpdatedVersion": "minim laborum exercitation", "tags": [ { "_id": "82fFF3f8dbf8CAe7d792deD2", "name": "pariatur", "description": "Ut anim consectetur pariatur laborum" }, { "_id": "ff7AE55ed23C3531C65D617A", "name": "do eiusmod", "description": "eiusmod non" }, { "_id": "511291c9478FCd2fbF876884", "name": "aliqua ad laboris sunt ut", "description": "deserunt Ut ut nostrud" }, { "_id": "27841DeFfaA5C2A8119a47C7", "name": "tempor aliqua Duis", "description": "do deserunt" } ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/m/dnx5MAIHl/d/L/~1/~0" } ], "migrationVersion": 17443311 }, "created": null, "edit": "pariatur adipisicing in", "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" ] } } } }