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": 54037134.09760895, "y": 13667501.968688756 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 40856641.59011161, "y": 65613702.13309133 }, "error_handler": { "name": "childJob", "summary": "in sunt tempor", "description": "aliqua laboris eu culpa", "app": "esse ipsum in nulla", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~0/Tvi/K4.P+/~0/nGcYv2B/Y" }, { "type": "encryption", "pointer": "/~0/~1/~1/~0/~1/~1/X,Thn57fq7" }, { "type": "encryption", "pointer": "/~1/Cu/Hs/kq/~1/~0/~0/SZzpaEqn" }, { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/rUbk/ajPkbvbv/hfdbFKf+A/wAIU/dnVzPl.BcIU/~1" } ] }, "groups": [ { "name": "fugiat Excepteur in eu", "provenance": "incididunt exercitation nostrud elit adipisicing" } ], "type": "operation", "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "incididunt", "provenance": "velit laboris" }, { "name": "dolor aliquip ex", "provenance": "ex elit in dolore voluptate" }, { "name": "culpa fugiat anim ipsum ea", "provenance": "dolore elit Duis dolor" } ], "_id": "ccd6170c-5034-1195-dda2-5c167ffe8190", "description": "tempor", "preAutomationTime": 14894074.904554218, "sla": 19980995.079236403, "errorHandler": { "type": "incididunt voluptate", "name": "occaecat" }, "font_size": 12, "created": "1968-02-22T22:21:20.467Z", "created_by": { "username": "fugiat in dolore in magna", "provenance": "laboris" }, "createdVersion": "laborum enim incididunt qui", "last_updated": "1965-07-31T20:52:26.885Z", "last_updated_by": { "username": "Ut Lorem ea dolor nisi", "provenance": "deserunt consectetur fugiat nostrud" }, "lastUpdatedVersion": "Duis proident qui", "tags": [ { "_id": "4ce0eF9eaaAaf39Ca8e0D539", "name": "in est minim", "description": "qui deserunt" }, { "_id": "B0b3DAc10c8a6427E7a0c26D", "name": "consectetur do labore ut", "description": "pariatur" }, { "_id": "7381Fd1bd4D3887B6E38beC3", "name": "aute incididunt aliqua proident non", "description": "aliqua ut tempor quis minim" }, { "_id": "6e514E00c54Db10aDAbF5A1B", "name": "labore", "description": "mollit" }, { "_id": "e24DccFeBE0eA4734B9b541E", "name": "esse aliqua exercitation ex culpa", "description": "enim" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/REYd/DYgz/V,-Ybb7" }, { "type": "encryption", "pointer": "/gwBg9KRR/H8kxwW" }, { "type": "encryption", "pointer": "/VZ/Mqa/y/KG3PcBo/~1/gl.j+54Ap2" }, { "type": "encryption", "pointer": "/~0/R8/Zk50L,/Jnoaz0u9T/~1" }, { "type": "encryption", "pointer": "/Hbg-JoOJrS/TLhqtXsZ/~1" } ] }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 37105984.838780016, "y": 8915834.095245898 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -19765499.659026846, "y": -82473232.79515034 }, "error_handler": { "name": "childJob", "summary": "proident qui eiusmod aute Lorem", "description": "laborum sint in Ut Lorem", "app": "exercitation consectetur non in", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~1/~1/~0/tU" } ] }, "groups": [ { "name": "sit fugiat do", "provenance": "deserunt" }, { "name": "sunt", "provenance": "ex consequat labore sunt" }, { "name": "cupidatat magna consectetur", "provenance": "nulla velit ipsum et" }, { "name": "non do", "provenance": "elit" } ], "type": "operation", "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "labore irure", "provenance": "ut exercitation in esse anim" }, { "name": "cillum labore ea sit", "provenance": "Duis dolore et anim est" }, { "name": "labore in", "provenance": "sunt irure eiusmod cillum magna" }, { "name": "velit incididunt enim commodo cupidatat", "provenance": "amet est cupidatat tempor irure" }, { "name": "eu", "provenance": "sed non" } ], "_id": "214404a1-e608-237b-f67a-24e47f084d3f", "description": "sunt laboris", "preAutomationTime": -94343029.00145668, "sla": -80369715.321286, "errorHandler": { "type": "adipisicing", "name": "amet est sed" }, "font_size": 12, "created": "1990-09-02T18:45:35.152Z", "created_by": null, "createdVersion": "ut incididunt consequat aliqua", "last_updated": "2016-01-03T11:56:32.435Z", "last_updated_by": null, "lastUpdatedVersion": "labore non", "tags": [ { "_id": "1D16d20B0b9005e1d1b3BCaB", "name": "Ut in laborum", "description": "cillum Excepteur" }, { "_id": "8beC0d5784e7557c0CcA8e47", "name": "ullamco", "description": "sed ut minim sit magna" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/~1/~0/~1/PT++mR86/zWc/I.EJA/Jp7v5Q/~0/~1/l4dgmg+/~0" }, { "type": "encryption", "pointer": "/MXV/KAT7MO4/~1/~0/GdVrJwVd/~1/~1/~1/f6/U/FpCXKjlKF/~1" }, { "type": "encryption", "pointer": "/Cu/~0/~1/FBqnG/~1" } ] }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 53313560.71036631, "y": -50152263.97436896 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 39843151.71732962, "y": 72279445.1061776 }, "error_handler": { "name": "childJob", "summary": "est culpa aliquip", "description": "aute", "app": "Excepteur", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~1/GiuHYA/~0/~0" }, { "type": "encryption", "pointer": "/~1/hW/X/hXNLcV,FF1N/hlLzFq+QHT" }, { "type": "encryption", "pointer": "/b4/a/hPS/UZcsNnHiEUm/cEYHoi6y/f/~0/~1/~0/xG7" }, { "type": "encryption", "pointer": "/eB0STS8nTY8/agadXoYIG/~0/H.T/~0/wQDwsbd" } ] }, "groups": [ { "name": "dolor mollit cillum ad", "provenance": "sed ullamco eiusmod" }, { "name": "fugiat culpa consequat aliqua dolor", "provenance": "tempor eu enim" }, { "name": "in dolor nulla mollit", "provenance": "reprehenderit Ut consectetur cillum minim" }, { "name": "laboris Lorem mollit", "provenance": "velit cillum" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "ex non", "provenance": "enim consectetur ad sunt sed" }, { "name": "do ut", "provenance": "proident enim in ex nostrud" }, { "name": "cupidatat", "provenance": "velit consequat" }, { "name": "exercitation in occaecat", "provenance": "est amet et sit" } ], "_id": "2bfac176-50dd-2195-2385-36611592b31d", "description": "amet aute anim", "preAutomationTime": -85131747.30133772, "sla": 64708401.04579052, "errorHandler": null, "font_size": 12, "created": "1985-08-08T15:18:56.48Z", "created_by": null, "createdVersion": "amet voluptate eu", "last_updated": "1959-12-27T18:38:25.217Z", "last_updated_by": { "username": "magna ea reprehenderit proident minim", "provenance": "velit dolore" }, "lastUpdatedVersion": "in dolore reprehenderit id", "tags": [ { "_id": "1D4ca1FCA60A1a700a70AcAc", "name": "ex", "description": "elit est amet deserunt" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/qTRlhm/gl/~0/~1" }, { "type": "encryption", "pointer": "/~1/~0/~1" }, { "type": "encryption", "pointer": "/~0/~0/~1/~0/~1/~0/b/R.Y/C/~0/jPUzaDi/Gyj5,gGrg-l" } ] } ] }
{ "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": "sunt reprehenderit", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 46884524.74427596, "y": 92957861.56817973 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -12574083.0207282, "y": 50719687.37322536 }, "error_handler": { "name": "childJob", "summary": "labore ut nisi eiusmod", "description": "sed ex", "app": "mollit", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/C/t4i5Gnbf35A/~0/Z7wSh5dU1vK/niF,A3/sCcNvvuu9f/anz0P" }, { "type": "encryption", "pointer": "/~1/~1/~0/~0/z/~1/wgDRc8,h/~0/~1/G" }, { "type": "encryption", "pointer": "/~0/~0/x9srv/raMGEYTLzGD/~0" }, { "type": "encryption", "pointer": "/Kagwdu/~1/BTKup2DVeX/jsj/~1/~0/fcMns" }, { "type": "encryption", "pointer": "/aYEPeq/Zj7DZ/U/A/~1/~0/Ejo/mEt-WFyq8VP/~0/m" } ] }, "groups": [ { "name": "nulla est eu", "provenance": "aute" } ], "type": "operation", "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "nisi sint amet dolor commodo", "provenance": "ea sed in ut" }, { "name": "Excepteur sit", "provenance": "ipsum tempor voluptate ut nostrud" }, { "name": "quis exercitation", "provenance": "Lorem sed Ut aute nulla" }, { "name": "eu dolor in tempor", "provenance": "et" }, { "name": "tempor", "provenance": "nostrud eiusmod" } ], "_id": "3e3897b1-ad9b-5272-8e2e-bd2bd51c0e7f", "description": null, "preAutomationTime": -10169335.225062028, "sla": -54417731.452702254, "errorHandler": { "type": "ea occaecat veniam", "name": "nulla irure ut eiusmod" }, "font_size": 12, "created": "2017-08-29T23:05:01.683Z", "created_by": { "username": "irure Ut", "provenance": "est ullamco minim dolor do" }, "createdVersion": "ex reprehenderit in elit cillum", "last_updated": "1993-08-28T16:40:32.713Z", "last_updated_by": null, "lastUpdatedVersion": "ex", "tags": [ { "_id": "FbF57637E9e3572ccBedac11", "name": "adipisicing", "description": "incididunt" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/pfu/vV/~0/~1" }, { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/Kr83wha" }, { "type": "encryption", "pointer": "/~1" } ] }, "created": null, "edit": null, "success": true }, { "message": "nostrud voluptate", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -5670761.176278025, "y": 44457386.22618812 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -44150823.89145262, "y": -87006210.55098781 }, "error_handler": { "name": "childJob", "summary": "aute amet ad", "description": "ea laboris", "app": "aute aliqua sunt", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/TE/~1/~0/~1" }, { "type": "encryption", "pointer": "/Xa/~1/cTpLg6BxeT/~0" }, { "type": "encryption", "pointer": "/~1/P,7b/~0/Kw4QSFaS/~1" }, { "type": "encryption", "pointer": "/~0/FoyEq/~1/~1" } ] }, "groups": [ { "name": "exercitation Duis do consectetur", "provenance": "et" }, { "name": "ut", "provenance": "irure culpa enim ea" }, { "name": "Duis", "provenance": "deserunt velit reprehenderit aliqua eu" }, { "name": "ut ea Lorem officia", "provenance": "dolore" } ], "type": "operation", "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "est minim", "provenance": "dolor velit Excepteur minim" }, { "name": "minim sint laborum", "provenance": "sunt Excepteur voluptate aute" } ], "_id": "206979ac-85eb-fa4b-4b51-6b6ed28b4927", "description": "sit id", "preAutomationTime": 30912667.489606842, "sla": -1374920.832955569, "errorHandler": { "type": "nostrud anim amet", "name": "laboris eu in dolore" }, "font_size": 12, "created": "1957-08-16T01:55:21.119Z", "created_by": { "username": "commodo ut id reprehenderit", "provenance": "do mollit labore" }, "createdVersion": "veniam ullamco pariatur elit", "last_updated": "1990-06-02T20:51:59.222Z", "last_updated_by": null, "lastUpdatedVersion": "laboris cillum", "tags": [ { "_id": "F20accfBFf6D56d733431b42", "name": "deserunt", "description": "sint voluptate" }, { "_id": "BaaD4d5CbdF1c3B73db5c9Aa", "name": "minim non pariatur id aliquip", "description": "ad mollit consequat ex ut" }, { "_id": "6b6f0A69A4f2a62E0b1FD581", "name": "elit", "description": "Duis ut" }, { "_id": "A4e88fD5fABc067FaBCFD25B", "name": "Ut labore fugiat", "description": "aliquip occaecat sunt id sit" }, { "_id": "7fF313d5Cce5aD8FDDadCda5", "name": "dolore in veniam", "description": "Ut dolor" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/~0/JrD/s" }, { "type": "encryption", "pointer": "/~1/Zpe-nBcTZS3/~0/~0/~0/biG/~0/~1/neuu9+" }, { "type": "encryption", "pointer": "/zudy/~0/NljtFWOAf/Xw0l7dCc/Ch.O" } ] }, "created": null, "edit": "nostrud ea in voluptate Ut", "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.", "type": [ "string", "null" ] } }, "required": [ "status", "message", "original", "created", "edit" ] } } } }