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": -93110993.65756595, "y": 60658064.95019972 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -18252228.403866738, "y": -78325597.05398104 }, "error_handler": { "name": "childJob", "summary": "magna ea dolore esse occaecat", "description": "in dolor enim", "app": "anim in tempor", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/HX4dWnJ" }, { "type": "encryption", "pointer": "/PF3tTzGNwQi/~1/o0CUtjrAM/iXFAoGh//vuk/~1/~0/~1/~0/~0/yY" }, { "type": "encryption", "pointer": "/~1/~0/z4n/MF7SSH/pCVgZ/QW76OP/Q20XMITZ0/zftmYB/9Rt/~1/~0/yB1Y9818pMy" } ] }, "groups": [ { "name": "amet", "provenance": "exercitation pariatur" }, { "name": "anim nisi Excepteur", "provenance": "Lorem" }, { "name": "ullamco ipsum ea dolor", "provenance": "occaecat tempor" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "in", "provenance": "dolor irure cupidatat laborum tempor" }, { "name": "culpa officia in aliqua ad", "provenance": "nostrud quis labore in" }, { "name": "sed quis veniam", "provenance": "ea culpa cillum ad reprehenderit" }, { "name": "Lorem amet in Duis dolore", "provenance": "dolor qui" } ], "_id": "6d48498f-dbd5-a42b-123c-d08270e0ce55", "description": "esse", "preAutomationTime": 67721271.19906783, "sla": -26718898.39865011, "errorHandler": { "type": "aute", "name": "est consectetur ut" }, "font_size": 12, "created": "1986-04-30T06:03:13.986Z", "created_by": { "username": "nostrud in occaecat proident", "provenance": "eu in est" }, "createdVersion": "laboris ipsum nulla magna", "last_updated": "1943-06-11T18:07:11.431Z", "last_updated_by": { "username": "officia non", "provenance": "qui" }, "lastUpdatedVersion": "adipisicing", "tags": [ { "_id": "cd9dCADfCaAd650bcf8E3ba5", "name": "ut enim", "description": "qui laborum fugiat eu velit" }, { "_id": "8388c1E1B1FEf71104d7cFda", "name": "ipsum consequat aliquip ullamco", "description": "voluptate minim nostrud" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/APpLX5UkN/~0/~0/KtTMC33/~0/Po/A3RZ/M,.ykziRlOw/~0/~0/~1" } ], "migrationVersion": -96695555 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 16387028.213080153, "y": 73077414.1536895 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 61153722.08454257, "y": 29234190.338082433 }, "error_handler": { "name": "childJob", "summary": "proident", "description": "anim exercitation occaecat", "app": "aute", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~0/Cw1.y/PLp/~1/~0/~1/~0/~0/ij2llyK/~1" }, { "type": "encryption", "pointer": "/~1/G78EcG/V+Xe/TgiubC/~0" }, { "type": "encryption", "pointer": "/~1/~1/~0" }, { "type": "encryption", "pointer": "/k/NKZcb42C0/nI/a60pmuN" }, { "type": "encryption", "pointer": "/V+M9j/D8n/GtBmRb/ficWgL/~1" } ] }, "groups": [ { "name": "dolore aliqua", "provenance": "elit ut eu" } ], "type": "operation", "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "cupidatat do nulla occaecat fugiat", "provenance": "exercitation in" }, { "name": "Ut nulla ex commodo", "provenance": "non ad" }, { "name": "anim", "provenance": "in Ut sint sit ullamco" }, { "name": "sed aliqua adipisicing ut aute", "provenance": "sunt mollit cupidatat ullamco et" } ], "_id": "9dedbb6c-36dc-7d9a-0634-62e13ad0b7cb", "description": "officia", "preAutomationTime": -27680738.738819107, "sla": 5070995.846064091, "errorHandler": null, "font_size": 12, "created": "2015-05-24T21:00:19.15Z", "created_by": { "username": "culpa", "provenance": "sunt laborum" }, "createdVersion": "laboris exercitation cillum ea occaecat", "last_updated": "1993-06-15T01:39:17.383Z", "last_updated_by": { "username": "in", "provenance": "qui pariatur" }, "lastUpdatedVersion": "non", "tags": [ { "_id": "30cB137DBE7E5aD7c3Da2444", "name": "incididunt", "description": "anim fugiat sit veniam laborum" }, { "_id": "d5Fa06f820E8FbBaD80DA5dc", "name": "mollit nostrud", "description": "dolore exercitation cupidatat reprehenderit" }, { "_id": "041Fb38ADb9EEd5c9a3cFE27", "name": "amet incididunt cupidatat", "description": "veniam anim" }, { "_id": "EAadDCDBc3ac8f7B9aDEbbf3", "name": "eiusmod voluptate Excepteur elit", "description": "incididunt ex irure" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1" }, { "type": "encryption", "pointer": "/aqoDZ+oc/CL92jAWT/kNHX/~1/QIcvUM/OS/S" } ], "migrationVersion": 87943493 } ] }
{ "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": "ad ut aliqua veniam labore", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 26446501.73605761, "y": 8358005.25324139 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -30383518.53257528, "y": -94547416.08516231 }, "error_handler": { "name": "childJob", "summary": "Duis dolore ipsum", "description": "qui", "app": "mollit qui", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/Gdath/~1/~0/~0/~1/~0/~0" }, { "type": "encryption", "pointer": "/~0/~1/p9vSjaYk/~1" }, { "type": "encryption", "pointer": "/Bnmmi/~0/~1" }, { "type": "encryption", "pointer": "/Qh6b/B,t/7" } ] }, "groups": [ { "name": "laboris", "provenance": "eu dolore quis eiusmod ut" }, { "name": "Excepteur irure qui dolore", "provenance": "incididunt" }, { "name": "dolore Ut Excepteur elit in", "provenance": "Duis Excepteur" }, { "name": "amet ut fugiat eiusmod", "provenance": "esse aliquip" }, { "name": "sit magna dolore", "provenance": "incididunt minim laboris irure" } ], "type": "operation", "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "in dolore nulla id ullamco", "provenance": "in sit amet" } ], "_id": "3f62b186-9f04-75f9-525c-2da89872237a", "description": "mollit tempor Lorem", "preAutomationTime": 425824.7418259382, "sla": 42103584.13574368, "errorHandler": null, "font_size": 12, "created": "1974-11-20T09:48:28.215Z", "created_by": { "username": "anim elit esse", "provenance": "ad culpa adipisicing" }, "createdVersion": "exercitation aliqua do", "last_updated": "1951-06-05T14:02:34.9Z", "last_updated_by": null, "lastUpdatedVersion": "velit Duis nisi laborum non", "tags": [ { "_id": "8854D7B3d6C7FcAC646C27e3", "name": "aute", "description": "aliquip cillum eiusmod pariatur" }, { "_id": "AdACeebFbbF14dc397FaCc22", "name": "deserunt adipisicing elit commodo tempor", "description": "ullamco" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/W0z8q2Pc3/~0/iB4f4/~0/z-HOJN06gfF/a/d//TeBTLuf/~0/Y/ysdg/~0" }, { "type": "encryption", "pointer": "/~1/q/~0/~0/~1/mqavm/~1/zs/~0/~0" }, { "type": "encryption", "pointer": "/UriGlRSw3/~1/Jl87E/VIMmz1Gw/~1" } ], "migrationVersion": -69905596 }, "created": null, "edit": null, "success": true }, { "message": "in", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -25504334.969978973, "y": -70252442.97471462 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -68121772.38143393, "y": 78837056.15320027 }, "error_handler": { "name": "childJob", "summary": "culpa sint dolore non ipsum", "description": "exercitation adipisicing aliqua", "app": "consequat eiusmod", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/nsP,6EkcL/f/~1/~0/~1/XxT3ZoVxfjF" } ] }, "groups": [ { "name": "cupidatat", "provenance": "non" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "qui dolor", "provenance": "in irure culpa" }, { "name": "anim eiusmod deserunt velit", "provenance": "in reprehenderit amet ut" }, { "name": "est Ut Lorem tempor", "provenance": "labore ut in Lorem mollit" }, { "name": "aliqua", "provenance": "do irure" }, { "name": "in", "provenance": "do ea ipsum exercitation" } ], "_id": "f043ba96-375f-81b0-d1ed-b1045cd3b347", "description": "sit minim", "preAutomationTime": -18734992.973773673, "sla": 75782062.97884008, "errorHandler": { "type": "id amet dolor", "name": "qui magna consectetur incididunt deserunt" }, "font_size": 12, "created": "1951-06-24T18:32:54.462Z", "created_by": { "username": "cillum", "provenance": "amet voluptate esse elit commodo" }, "createdVersion": "sit", "last_updated": "1985-07-03T18:13:42.092Z", "last_updated_by": null, "lastUpdatedVersion": "est Duis", "tags": [ { "_id": "3cB6fFfFfBfbd47C6e3af2aA", "name": "exercitation voluptate sunt", "description": "id ipsum" }, { "_id": "b7Fb30eceabDe3cD15CB0Ea9", "name": "sint irure proident ex aute", "description": "enim pariatur qui culpa" }, { "_id": "FEEBf1A299aBA0B0A8040bCa", "name": "aliqua laboris", "description": "qui" }, { "_id": "9A6ff565A802Ec992C6acDe1", "name": "velit qui cillum ipsum", "description": "Duis in" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/nv/VQACEBh8P2/~0/mdxQf/JJn6J6/C8QN92m2k/cRvgz" }, { "type": "encryption", "pointer": "/Ip8pV/~0" }, { "type": "encryption", "pointer": "/~0/~1" }, { "type": "encryption", "pointer": "/zX-/~0/Q/~0/~0/~0/~0/~1/Dm/fMZEPqECwd/~0" }, { "type": "encryption", "pointer": "/~0/~1/zvjmAyI,/~0/~1" } ], "migrationVersion": -16977669 }, "created": null, "edit": "pariatur ex aute", "success": false }, { "message": "nisi dolor", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 73074584.91079003, "y": 8799272.684983 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 87342075.1448775, "y": -39793489.23372989 }, "error_handler": { "name": "childJob", "summary": "anim ea eiusmod officia id", "description": "id quis in eiusmod exercitation", "app": "sint dolor Excepteur Ut", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/gefl/~1" } ] }, "groups": [ { "name": "ut fugiat ipsum nisi", "provenance": "incididunt est reprehenderit" }, { "name": "anim", "provenance": "enim ipsum veniam commodo" }, { "name": "culpa officia id", "provenance": "dolore ex tempor" }, { "name": "anim Duis in ea ut", "provenance": "id nulla enim ad aute" }, { "name": "sint dolor laborum adipisicing ut", "provenance": "consequat qui commodo veniam ut" } ], "type": "operation", "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "sit sed quis aliquip tempor", "provenance": "anim proident quis" }, { "name": "amet", "provenance": "tempor elit enim" } ], "_id": "91093f4e-478e-9d70-120a-2b4fabd0c2eb", "description": null, "preAutomationTime": 56579760.11998743, "sla": 90296295.23504612, "errorHandler": null, "font_size": 12, "created": "1965-05-27T07:16:53.617Z", "created_by": null, "createdVersion": "Ut ut commodo exercitation sed", "last_updated": "1986-05-07T19:07:29.814Z", "last_updated_by": null, "lastUpdatedVersion": "quis Duis consequat", "tags": [ { "_id": "Bcf083FEa42E19Cd7bEeC724", "name": "ut deserunt", "description": "velit officia" }, { "_id": "4ba741c9CEdF7EC84A9afEad", "name": "Lorem in sit nisi cupidatat", "description": "Excepteur dolor dolore" }, { "_id": "3dA2bbc0Baa63d07befdEfaa", "name": "sunt", "description": "fugiat pariatur adipisicing enim dolor" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/hC-F4+0zoQR" }, { "type": "encryption", "pointer": "/b/oSy9F8/~1/O7/BJtWq6Qvk/j/~0/AFLCItOW/vG9/XBC0Fno/~1" }, { "type": "encryption", "pointer": "/NQykRpf/~1" } ], "migrationVersion": 93110898 }, "edit": null, "success": false }, { "message": "commodo do", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -79754823.71611977, "y": -34939969.68043213 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -59486063.945459835, "y": 26900357.302011684 }, "error_handler": { "name": "childJob", "summary": "Duis cillum sed", "description": "consectetur commodo ut occaecat Ut", "app": "adipisicing", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~1/v+pecdXG/l6j3aqP/~0/D,fJ2/~1/mXwupr3./eQ/~0/oC0p" } ] }, "groups": [ { "name": "incididunt", "provenance": "eiusmod officia nostrud" }, { "name": "Excepteur", "provenance": "Duis deserunt" } ], "type": "operation", "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "commodo in amet laborum Duis", "provenance": "reprehenderit laboris in labore" }, { "name": "consectetur quis adipisicing exercitation", "provenance": "cillum dolore" } ], "_id": "4d78e894-64e5-2e5b-4901-d165675266fc", "description": null, "preAutomationTime": 11582283.53987272, "sla": -84195061.38307402, "errorHandler": null, "font_size": 12, "created": "1968-10-11T14:22:51.697Z", "created_by": null, "createdVersion": "sunt", "last_updated": "1945-12-01T16:40:12.209Z", "last_updated_by": null, "lastUpdatedVersion": "cupidatat Duis sed", "tags": [ { "_id": "7465B1feC032ADCd9f3CAa97", "name": "exercitation consequat sint", "description": "enim" }, { "_id": "1B9e03CA2A49537F92DE18d2", "name": "cupidatat ea esse irure reprehenderit", "description": "laboris dolore ut" }, { "_id": "1f81Ad04e9D9C4F17538c09b", "name": "elit", "description": "Duis proident adipisicing Excepteur fugiat" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/siiA" } ], "migrationVersion": 64778154 }, "created": null, "edit": null, "success": true }, { "message": "consectetur elit do", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 24130724.15964867, "y": 54094337.534213334 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -39355134.334824935, "y": -95385028.88275096 }, "error_handler": { "name": "childJob", "summary": "veniam in", "description": "ut", "app": "dolor", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/EnqJCjb-/~0/~1/~0/~1/~0/~0/p8" }, { "type": "encryption", "pointer": "/rBCwNSNnSF5/~0/gO/Yb+CGLOkg4" }, { "type": "encryption", "pointer": "/c6ZjH.S/OVNNR/t/~0/~1/bjWz/~1/WhZ/K+/~1/~1" }, { "type": "encryption", "pointer": "/~1/~0/XO35+l.3eHA/~0/GOq/~1/mmuNVVzKo50/vXeCglEgT" } ] }, "groups": [ { "name": "voluptate", "provenance": "aliqua dolore veniam laboris" }, { "name": "minim", "provenance": "sit" } ], "type": "operation", "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "ad elit", "provenance": "ullamco proident" }, { "name": "magna", "provenance": "officia aute nostrud magna ut" }, { "name": "labore", "provenance": "consectetur aute" }, { "name": "anim magna Ut", "provenance": "dolore" } ], "_id": "002e45a5-54f4-5749-a7a2-4f13a1b94b53", "description": null, "preAutomationTime": -97779176.0317392, "sla": 16080572.697196782, "errorHandler": { "type": "exercitation culpa fugiat adipisicing", "name": "elit eu cillum ad sed" }, "font_size": 12, "created": "1993-10-23T08:52:02.174Z", "created_by": { "username": "fugiat sed minim Excepteur in", "provenance": "dolore in cupidatat veniam" }, "createdVersion": "irure sed consequat sint", "last_updated": "1946-04-25T08:41:42.257Z", "last_updated_by": { "username": "mollit", "provenance": "sunt aute Lorem in" }, "lastUpdatedVersion": "ea voluptate sed dolor", "tags": [ { "_id": "cb7a37A5cdC86abB140FD0b2", "name": "in", "description": "consequat Duis id amet occaecat" }, { "_id": "b1b111838a7BCdFE62fBaDC3", "name": "ipsum", "description": "sint sit mollit ad dolor" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~0/tMJoFS-Z/~0/~0/gf-0PQR/H,M/~0/nsUETNs9F" }, { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/nSVUdCXk-/aK.eIY4wjFM/~0/~0/~1/~0" }, { "type": "encryption", "pointer": "/~1/W0,KpBV/~1/JBS67d3K/JeHSuj3su/~1/V5L2+I2Fv/~0/~1/~0" }, { "type": "encryption", "pointer": "/ld/MS2T-0WnV5/IczpMQwv,/~1/~0/HA8cADYeb9/Ix1t" } ], "migrationVersion": -51140426 }, "edit": "elit sunt nulla", "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.", "type": [ "string", "null" ] } }, "required": [ "status", "message", "original", "created", "edit" ] } } } }