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": "in elit reprehenderit aliqua ea", "provenance": "non" }, { "name": "Lorem", "provenance": "dolore dolor sunt aliquip aliqua" } ], "x": -46770436.034862325, "y": 23148621.85449104 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "exercitation consectetur quis commodo elit", "provenance": "magna et" } ], "x": -31085636.77345985, "y": -10814517.444046512 }, "error_handler": { "name": "childJob", "summary": "ullamco ut qui in", "description": "est in elit irure eiusmod", "app": "cillum sit", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/P9/sObZFe,v/~1/~0/vHgoCtai.oR/~0/OBGS3X" }, { "type": "encryption", "pointer": "/~0/RkTgAKbQ/~0/~0/~0/B,hvb/A0" }, { "type": "encryption", "pointer": "/~1/N-U0DG4/~0/RykczFm/~1/~1/~0/TgbzGVUjV" }, { "type": "encryption", "pointer": "/w8IR3U9" }, { "type": "encryption", "pointer": "/~1/MHqFzEoN-P/Cb/Q/~0/~1/zu1NQ,X3Vj2/~1/~1" } ] }, "groups": [ { "name": "minim esse tempor", "provenance": "exercitation amet aute" }, { "name": "laborum fugiat sunt culpa ut", "provenance": "enim" }, { "name": "sunt ipsum in Duis", "provenance": "ut esse cillum" } ], "type": "operation", "nodeLocation": { "x": -266250.49605351686, "y": -41384762.33188393 }, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "id", "provenance": "eu Lorem" }, { "name": "consequat", "provenance": "anim enim magna" }, { "name": "deserunt ea", "provenance": "aliquip enim" }, { "name": "ea laboris", "provenance": "ullamco mollit dolore" }, { "name": "velit", "provenance": "dolore ipsum" } ], "_id": "3ca76654-ab23-9b6c-53fa-26e65d45c332", "namespace": { "type": "project", "name": "ullamco dolore ea", "accessControl": { "read": [ "aliquip aliqua et", "est" ], "write": [ "ea minim", "mollit labore" ], "execute": [ "sint et ex", "Duis consequat cillum minim labore", "quis commodo dolore", "enim", "occaecat reprehenderit deserunt consectetur dolore" ], "manage": [ "dolore magna cillum Ut ullamco", "amet" ] } }, "description": null, "preAutomationTime": 12807859.910988644, "sla": 25549277.274647415, "errorHandler": null, "font_size": 12, "created": "2020-11-24T07:09:29.753Z", "created_by": null, "createdVersion": "ullamco et ut aliqua", "last_updated": "1947-10-24T14:54:20.786Z", "last_updated_by": null, "lastUpdatedVersion": "sed commodo labore aliquip", "tags": [ { "_id": "ABdbcAd03Fe8A571DaA5E3C5", "name": "aliquip", "description": "magna id deserunt sunt cillum" }, { "_id": "1BFadB163cc614Bcfb5bF29c", "name": "in exercitation ut", "description": "consectetur nostrud in" }, { "_id": "c4169Be86f9fd204Fb5DBEC6", "name": "reprehenderit dolore", "description": "in Lorem" }, { "_id": "3e88CAEEC5818aaD83D8b1ea", "name": "dolore pariatur fugiat", "description": "enim ea non" }, { "_id": "Be6d8D430bcdBAec316ff09d", "name": "ut non Duis", "description": "sint et" } ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/O2NT/Bf/po6KSxs/~1/~0/~0" }, { "type": "encryption", "pointer": "/~1/~1/Kdg6/ldgK/~1/~1" } ], "migrationVersion": 23379254 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "dolor nulla", "provenance": "proident" }, { "name": "eu nisi pariatur", "provenance": "labore et sed magna tempor" }, { "name": "sint aliquip", "provenance": "proident" }, { "name": "sed consectetur sunt laboris", "provenance": "ea Duis sunt sit proident" } ], "x": -44934417.711554445, "y": 20237948.87314114 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "aute pariatur mollit", "provenance": "consequat dolore in" }, { "name": "Lorem sint enim", "provenance": "et" }, { "name": "sint in", "provenance": "nulla Excepteur Ut sunt" }, { "name": "magna dolore deserunt", "provenance": "incididunt reprehenderit deserunt" }, { "name": "enim cupidatat Duis ut", "provenance": "exercitation" } ], "x": -94920357.51983795, "y": 51001892.46097222 }, "error_handler": { "name": "childJob", "summary": "non eiusmod voluptate in", "description": "dolor dolore culpa", "app": "commodo", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~1/Jq/~1/~1" } ] }, "groups": [ { "name": "ad ut veniam deserunt", "provenance": "laborum adipisicing aliquip pariatur" }, { "name": "mollit tempor ex nostrud labore", "provenance": "ex qui dolore eiusmod consequat" }, { "name": "veniam velit", "provenance": "eiusmod" }, { "name": "velit non", "provenance": "consectetur et culpa eiusmod aute" } ], "type": "operation", "nodeLocation": { "x": 32399050.985603407, "y": -34463264.17302341 }, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "ipsum incididunt adipisicing", "provenance": "eu aliqua" }, { "name": "labore dolore eiusmod aute anim", "provenance": "occaecat cillum" } ], "_id": "a92fb6dd-a771-2856-9a9d-1232fe5de27b", "namespace": null, "description": null, "preAutomationTime": 24593349.783220872, "sla": 13447585.321680352, "errorHandler": { "type": "voluptate pariatur eiusmod ullamco dolor", "name": "culpa consequat deserunt sint Lorem" }, "font_size": 12, "created": "1971-03-09T15:53:38.339Z", "created_by": null, "createdVersion": "culpa aliquip est ea", "last_updated": "2003-03-02T06:48:52.72Z", "last_updated_by": { "username": "adipisicing officia", "provenance": "culpa occaecat nulla" }, "lastUpdatedVersion": "dolore sed cupidatat non", "tags": [ { "_id": "Be5a1F1e9eAa8cf30fe92E4f", "name": "veniam", "description": "Lorem" }, { "_id": "dA691DA659EFDaFf8D65DbD8", "name": "dolor labore", "description": "occaecat" }, { "_id": "Be4E617B0Ea05F3D0FaaCe8D", "name": "mollit magna amet nostrud", "description": "dolor" } ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/HhzyDO/~1/bPg/EV1QNzw/~1" }, { "type": "encryption", "pointer": "/US/Gt/cpPThM/pB" }, { "type": "encryption", "pointer": "/cqeJM-d1/~0/rHS/MUJnN84un+/Pw-d,/~0/fy/~1/~0" }, { "type": "encryption", "pointer": "/fb9dG/~1" }, { "type": "encryption", "pointer": "/~1/~0/~1/~1/~0/~1/~0/S42yiU+tC/~1/wuqukU-K/NL" } ], "migrationVersion": 24937239 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "do occaecat", "provenance": "esse adipisicing" }, { "name": "elit do", "provenance": "dolore Lorem" } ], "x": -59009200.8577491, "y": 97501780.94233447 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "incididunt in commodo ad officia", "provenance": "do incididunt culpa occaecat" }, { "name": "dolore ex incididunt eu", "provenance": "nisi Excepteur sit non velit" }, { "name": "qui minim mollit labore", "provenance": "dolor id velit dolore" }, { "name": "dolor aliqua et", "provenance": "esse commodo" }, { "name": "Lorem cillum tempor", "provenance": "sit" } ], "x": 34489508.10886994, "y": -97282915.16966899 }, "error_handler": { "name": "childJob", "summary": "aute dolor", "description": "occaecat", "app": "dolor id sit", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/S6./~0/YHv21+AFKAP/~1/~0/~0" }, { "type": "encryption", "pointer": "/sedJ9e3/~1/vAh/HKoOjeZ/~0/iRD/I5ek+v1m/qrc" }, { "type": "encryption", "pointer": "/~0/d60Kf84/~1/~0/~0" }, { "type": "encryption", "pointer": "/~1" }, { "type": "encryption", "pointer": "/S4S/BBZyT6Zczg/~0/~1/~1/~1/BU/~0/UR/tTr" } ] }, "groups": [ { "name": "ad voluptate ea", "provenance": "sed ut Lorem tempor culpa" }, { "name": "in enim ipsum", "provenance": "eiusmod non ut" } ], "type": "operation", "nodeLocation": { "x": -46025752.29285475, "y": -3524008.8845774233 }, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "velit fugiat exercitation", "provenance": "consequat esse nostrud velit" } ], "_id": "e454f186-e018-432e-1ff6-d6f50af507fd", "namespace": null, "description": null, "preAutomationTime": -27969284.886964723, "sla": -3922573.3217902035, "errorHandler": { "type": "mollit non sunt", "name": "Ut minim" }, "font_size": 12, "created": "1975-12-25T07:02:18.152Z", "created_by": null, "createdVersion": "ut pariatur dolore est", "last_updated": "1946-01-16T17:55:18.548Z", "last_updated_by": { "username": "tempor sunt culpa", "provenance": "cillum id" }, "lastUpdatedVersion": "ullamco qui labore est mollit", "tags": [ { "_id": "Fc0Bfc5d7ADD72bCc7ff4c89", "name": "ullamco in pariatur eu", "description": "veniam est voluptate" } ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/kFjVl7mbH,/~1" }, { "type": "encryption", "pointer": "/X8tFpc3AKxg/~0/~1/~1/xArCAmJlomX/Z/~0/ChPy,HjPSj/~0" } ], "migrationVersion": 31176641 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "aliqua ea", "provenance": "elit ad anim in dolore" }, { "name": "Lorem", "provenance": "minim Lorem esse" }, { "name": "occaecat dolore", "provenance": "do" }, { "name": "eiusmod veniam", "provenance": "est eu ea" }, { "name": "incididunt voluptate aute", "provenance": "ullamco labore tempor quis" } ], "x": -54885650.65480722, "y": -19321072.349377528 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "anim in enim irure", "provenance": "consequat" }, { "name": "laborum sed magna", "provenance": "labore fugiat consectetur sunt Lorem" }, { "name": "anim magna proident tempor cupidatat", "provenance": "sunt" }, { "name": "dolor mollit incididunt", "provenance": "qui non reprehenderit et Excepteur" }, { "name": "voluptate ut aliqua", "provenance": "qui laborum dolor" } ], "x": 25850849.351760358, "y": -86624322.6065845 }, "error_handler": { "name": "childJob", "summary": "deserunt nostrud", "description": "consectetur consequat", "app": "cupidatat officia mollit sit quis", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/aQ9a/GLa9vsI/hU/~0/K1aCh2Ha/hTJErNe/gm,PYJB/oQajhovZ8i6/jmCCB" }, { "type": "encryption", "pointer": "/~0/XmvJSXzH/~1/Dd/SiTBdlK/~1/qFXdgA/gbUxV,/~0" }, { "type": "encryption", "pointer": "/~1/~1/C/eDbK-4Qn2h/j,ZJdd6/~0/s-Se/NRI/~0/b9,TEXYnKl/~0/dvqOKtp/," }, { "type": "encryption", "pointer": "/YOaz/Nge16/~1/~0/~0/gzPC" }, { "type": "encryption", "pointer": "/YQP7g4h1QzQ/~1/~0/~0/~1/QvYkZkyf/~0/~0" } ] }, "groups": [ { "name": "incididunt tempor proident", "provenance": "dolore laborum nulla officia" } ], "type": "operation", "nodeLocation": { "x": -14767601.834261075, "y": -28884004.56045766 }, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "nulla et esse in ea", "provenance": "sit ad consectetur ea officia" }, { "name": "irure", "provenance": "reprehenderit est culpa ea" }, { "name": "eiusmod eu", "provenance": "consectetur sed dolore" } ], "_id": "0ce30adf-d93c-46bb-145f-be7f5c81482f", "namespace": { "type": "project", "name": "cillum voluptate proident esse et", "accessControl": { "read": [ "adipisicing", "sunt exercitation" ], "write": [ "Ut Lorem" ], "execute": [ "in proident culpa eiusmod" ], "manage": [ "consequat", "adipisicing elit aliquip", "Excepteur in non" ] } }, "description": null, "preAutomationTime": -1327964.5760825127, "sla": 71347139.35637867, "errorHandler": null, "font_size": 12, "created": "1944-07-09T11:42:44.223Z", "created_by": { "username": "mollit incididunt", "provenance": "eu adipisicing enim sunt id" }, "createdVersion": "sit fugiat nisi reprehenderit tempor", "last_updated": "2016-06-18T06:01:28.806Z", "last_updated_by": { "username": "dolor", "provenance": "Duis amet aute ex" }, "lastUpdatedVersion": "velit in laborum aute", "tags": [ { "_id": "0Fa9E2551e6a8D8fDcB7D985", "name": "pariatur nisi sunt laborum", "description": "ut exercitation" }, { "_id": "aac178CdA4efeEB4aBc9f558", "name": "in dolore pariatur", "description": "voluptate" } ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/jE978ypj2T/H,ooXAFYw" }, { "type": "encryption", "pointer": "/D9x" }, { "type": "encryption", "pointer": "/G/GsPAW+76Ie/~0" }, { "type": "encryption", "pointer": "/qP92UbJ/tvPbA/O0Da1ou/iN" }, { "type": "encryption", "pointer": "/~0/Qy8sUoOMW/~0/trYNQ/~1" } ], "migrationVersion": 82145392 } ] }
{ "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": "nulla Ut dolor esse ea", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "voluptate aliquip ut nisi reprehenderit", "provenance": "nostrud sit sed" }, { "name": "dolor", "provenance": "ad laboris laborum" } ], "gridCoordinate": { "x": -23743131.984532043, "y": -38054359.9895582 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "Duis nostrud sed", "provenance": "cillum minim ea dolor magna" }, { "name": "officia nisi cillum proident", "provenance": "nulla" }, { "name": "amet velit ut nisi", "provenance": "sint" }, { "name": "est", "provenance": "magna in ullamco tempor" }, { "name": "sint irure", "provenance": "cillum in aute pariatur est" } ], "x": 93243598.54441565, "y": -71167721.32928118 }, "error_handler": { "name": "childJob", "summary": "magna anim ad laboris in", "description": "irure ipsum", "app": "adipisicing dolore voluptate laboris sunt", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/mw,/C2t9ZTa+XJ/NObj4egA4np/~0/~0/~0/~0/~0/~1" }, { "type": "encryption", "pointer": "/Rd/~1/xaxCp3/~0" }, { "type": "encryption", "pointer": "/S/i0SX+3ZZna" } ] }, "groups": [ { "name": "eu", "provenance": "ad amet aliqua ut" }, { "name": "Duis voluptate ad nisi", "provenance": "Lorem" }, { "name": "laborum consectetur magna Lorem", "provenance": "veniam in" } ], "type": "operation", "x": 82702937.10361129, "y": -5246402.662721962, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "dolor velit in occaecat", "provenance": "eiusmod et ea" }, { "name": "non ut", "provenance": "non laborum dolor do" }, { "name": "adipisicing incididunt mollit veniam", "provenance": "eiusmod Duis aute adipisicing" } ], "_id": "c6c5b166-bcf6-9f68-09d0-51bdf242a2a4", "namespace": { "type": "project", "name": "culpa cupidatat", "accessControl": { "read": [ "nisi irure", "consectetur cillum", "exercitation", "Duis aliqua sint", "velit enim anim culpa minim" ], "write": [ "culpa laborum nisi ex est", "laboris eiusmod", "velit aute laborum sint aliquip", "commodo quis anim", "cillum officia" ], "execute": [ "ex consectetur ipsum officia", "ut consequat aliqua adipisicing" ], "manage": [ "ullamco", "velit do non ullamco laborum", "Excepteur reprehenderit dolore aliquip", "in irure in nulla" ] } }, "description": "nulla amet", "preAutomationTime": -57436704.70880717, "sla": 73475268.2187132, "errorHandler": null, "font_size": 12, "created": "2003-11-03T10:22:35.781Z", "created_by": null, "createdVersion": "esse sunt ipsum elit qui", "last_updated": "2015-04-26T23:41:30.154Z", "last_updated_by": null, "lastUpdatedVersion": "est eu reprehenderit proident consequat", "tags": [ { "_id": "F16Eb498DEb3f85cdeA11Acd", "name": "dolor aliqua et culpa", "description": "nulla" } ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/jB1BcXAYHw/q.iFJeGN" }, { "type": "encryption", "pointer": "/~0" } ], "migrationVersion": 96729868 }, "created": null, "edit": null, "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" ] } } } }