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": -74359991.07620402, "y": 21233734.614845634 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -43133940.71207339, "y": -1094071.3085800856 }, "error_handler": { "name": "childJob", "summary": "in aliqua ad", "description": "incididunt in est", "app": "amet", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~1/~1" } ] }, "groups": [ { "name": "est", "provenance": "aliqua est" }, { "name": "in laboris fugiat ad", "provenance": "incididunt quis" }, { "name": "ea id non", "provenance": "id veniam esse est" }, { "name": "elit dolore", "provenance": "nostrud Ut" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "veniam exercitation in tempor dolor", "provenance": "dolore voluptate exercitation commodo" }, { "name": "irure et ad dolor", "provenance": "laborum velit Excepteur non" } ], "_id": "c1cf1fd1-5a21-b25a-fc46-e91ef83e64e4", "description": null, "preAutomationTime": -71525353.5516398, "sla": 16575918.561341047, "errorHandler": { "type": "occaecat", "name": "consectetur" }, "font_size": 12, "created": "2001-08-09T11:16:25.553Z", "created_by": { "username": "deserunt dolor tempor", "provenance": "tempor elit do" }, "createdVersion": "dolore", "last_updated": "1968-12-13T07:05:22.151Z", "last_updated_by": { "username": "ad Ut eiusmod adipisicing", "provenance": "do adipisicing reprehenderit" }, "lastUpdatedVersion": "velit dolor", "tags": [ { "_id": "EceeDc6F3245C8700F9Aa01A", "name": "proident ut minim sunt", "description": "eiusmod incididunt" }, { "_id": "f7e35d9C712AB07ed4bEE129", "name": "deserunt in adipisicing", "description": "pariatur" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/RZ3uExR/t5/~0/SYeZcSKsoZZ/~0/Aot+kJFnJx/~1" }, { "type": "encryption", "pointer": "/~1/MY1ALIuU/~0/qxW/k5fAB+/~0/~1/~1/~1" }, { "type": "encryption", "pointer": "/~0/~0/NClmmxo5Ow/~1/~0" } ], "migrationVersion": 11753781 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 76090279.53694353, "y": -64850744.54861874 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 55225903.23189917, "y": 47238522.703893274 }, "error_handler": { "name": "childJob", "summary": "commodo aliqua", "description": "aliqua ut proident", "app": "id", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/KHKxTFU/jI3dpL+GU3x/~0/Rr195/-UDi/~1/~0/FML/TwrG9jTF" }, { "type": "encryption", "pointer": "/fcw/~1/~0/~1/NI1/~1/~1/~1" }, { "type": "encryption", "pointer": "/lWKe9/RhzIOfi/~1/~0/vSq9oL.5n15/Lhx4B-fF/~0/v8Kao/~0" } ] }, "groups": [ { "name": "sed aliquip consectetur", "provenance": "dolore aliquip occaecat anim ad" }, { "name": "consectetur velit", "provenance": "mollit" }, { "name": "Lorem deserunt nisi", "provenance": "pariatur reprehenderit fugiat aute laboris" } ], "type": "operation", "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "minim enim", "provenance": "deserunt id consectetur do" }, { "name": "est Ut occaecat amet", "provenance": "exercitation est ullamco dolor" }, { "name": "qui reprehenderit", "provenance": "qui anim aliqua" } ], "_id": "cc01c278-538b-cd1e-472b-4462706f2a34", "description": null, "preAutomationTime": -89850877.10546082, "sla": -3499870.1940504313, "errorHandler": null, "font_size": 12, "created": "1999-04-25T06:56:54.195Z", "created_by": null, "createdVersion": "officia", "last_updated": "2021-09-27T11:50:48.798Z", "last_updated_by": { "username": "labore", "provenance": "culpa officia dolor" }, "lastUpdatedVersion": "proident do anim", "tags": [ { "_id": "C202c6Ea03cD1204cbd4fcfd", "name": "aute reprehenderit", "description": "reprehenderit" }, { "_id": "fAA5DF5bdb4aAe11a5B3CAde", "name": "reprehenderit tempor", "description": "ex exercitation dolore veniam" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/cGBiI8OP/LjQK2" }, { "type": "encryption", "pointer": "/FphL4C/~1/hDHB" } ], "migrationVersion": -84987526 } ] }
{ "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": "exercitation", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 16231699.928144306, "y": 33058063.941572472 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -84433536.18072033, "y": 12842238.506312236 }, "error_handler": { "name": "childJob", "summary": "laborum consectetur", "description": "nulla minim", "app": "adipisicing", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/y2qCFa5/~0/~1/gy-pDX3Ru/TOtFX/f,mToDbw/~0/~1/~1/~1" }, { "type": "encryption", "pointer": "/G,VR8qxx/~1/ZZ/Gn95wiWg/~1/~1/WR/~1/~1" }, { "type": "encryption", "pointer": "/k" }, { "type": "encryption", "pointer": "/U,9Yj/Bss012I9nlQ/~0/~0" }, { "type": "encryption", "pointer": "/~0/xesN/O/~1/HgvSh/C/z/OzahFQA/~0/~0/dm/nkT" } ] }, "groups": [ { "name": "nisi ex", "provenance": "exercitation in proident" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "consectetur dolor laboris do", "provenance": "mollit elit" }, { "name": "amet esse est reprehenderit sunt", "provenance": "voluptate et proident" }, { "name": "occaecat", "provenance": "cupidatat fugiat" }, { "name": "deserunt Ut nulla minim ut", "provenance": "nulla anim laborum" } ], "_id": "b82060a5-e7a9-7437-8767-3430f0299c15", "description": null, "preAutomationTime": -81834276.85198419, "sla": 26940540.86272803, "errorHandler": { "type": "ut", "name": "Ut" }, "font_size": 12, "created": "2012-06-06T19:02:14.17Z", "created_by": null, "createdVersion": "in sit", "last_updated": "1993-03-14T21:22:37.839Z", "last_updated_by": null, "lastUpdatedVersion": "sint magna culpa occaecat id", "tags": [ { "_id": "89fFAf95Aa68D815Ad2Bc82A", "name": "cillum dolor mollit fugiat", "description": "cupidatat in" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/~0/~1/Xc/v9lNLQB/OnXAv/b/~0" }, { "type": "encryption", "pointer": "/~0/~1/~1/s/DSj/~1/YMu-OQl3g/mkfb5/Uw" }, { "type": "encryption", "pointer": "/~1/~0/~1/~1/tkBxo0MP/~1/~0/~1/uEjwL/~0" } ], "migrationVersion": 58168628 }, "edit": null, "success": true }, { "message": "fugiat ea", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -65010809.4941253, "y": -87509015.89921165 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 37454767.55389765, "y": 72044244.0845719 }, "error_handler": { "name": "childJob", "summary": "quis Lorem et fugiat exercitation", "description": "Ut Lorem", "app": "esse", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/Zw/~1/~0/f/~1" } ] }, "groups": [ { "name": "est", "provenance": "nostrud labore incididunt reprehenderit" }, { "name": "laboris", "provenance": "nostrud" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "commodo", "provenance": "ex ut" }, { "name": "exercitation minim aute dolore elit", "provenance": "id ullamco" }, { "name": "commodo cupidatat", "provenance": "pariatur deserunt" }, { "name": "fugiat", "provenance": "officia laboris in irure" }, { "name": "nisi in officia enim nostrud", "provenance": "nostrud exercitation sint" } ], "_id": "f77f4dd2-3b1a-25d2-9c2a-1df7c7ba2f22", "description": "amet dolore", "preAutomationTime": 95485652.43025684, "sla": -86602365.2701184, "errorHandler": { "type": "minim aliquip", "name": "adipisicing" }, "font_size": 12, "created": "1946-05-13T21:01:34.093Z", "created_by": null, "createdVersion": "officia", "last_updated": "1980-06-13T06:09:55.25Z", "last_updated_by": null, "lastUpdatedVersion": "ut sunt", "tags": [ { "_id": "f553AE4DDBc8C4CCdb5e813C", "name": "occaecat dolor et velit", "description": "ipsum dolore" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~1/~1/qny+H2/EGdmi5oz6/Q+a/KCIvCPx/T/~1/fyCj" }, { "type": "encryption", "pointer": "/b,-/x99KD-e1/b,p7/L.KnaQ" }, { "type": "encryption", "pointer": "/a99/cuyH/kaF6kZR8/~0/~1/~1/~0" }, { "type": "encryption", "pointer": "/~0/~0/EY/VG/~0/dcp/~0/~1/~1/gAJ+Kz88/C/J" } ], "migrationVersion": 99798945 }, "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.", "type": [ "string", "null" ] } }, "required": [ "status", "message", "original", "created", "edit" ] } } } }