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": -70989679.30491206, "y": -85367352.27359374 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -40884595.78423778, "y": -87735875.63223435 }, "error_handler": { "name": "childJob", "summary": "in sed consectetur non", "description": "est", "app": "laborum in deserunt sit fugiat", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/ym8xwezW5,7/nzBB/y36C9ivu1i/iLHEVofwQ/~1/~1/~1/ZA4/~0/~0/~1" }, { "type": "encryption", "pointer": "/~0/HKzG5mI/e/~1/U/VaZEa18G" }, { "type": "encryption", "pointer": "/~1/~0/~1/dqagSPL/~0/P+zA/ajN5U70FGv3/dcmouwKhJL" } ] }, "groups": [ { "name": "laboris proident deserunt ut culpa", "provenance": "eu officia elit sunt irure" }, { "name": "in dolore culpa", "provenance": "officia incididunt tempor" } ], "type": "operation", "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "do anim", "provenance": "voluptate in" }, { "name": "dolore et dolore aliquip", "provenance": "sunt" }, { "name": "ut culpa aliqua", "provenance": "qui esse id veniam" }, { "name": "Ut reprehenderit dolore", "provenance": "elit ipsum" } ], "_id": "46ef1e1f-713b-fbfd-8ef4-021dd2bf0c8c", "description": null, "preAutomationTime": -53162121.251350805, "sla": 92462031.7105031, "errorHandler": null, "font_size": 12, "created": "2004-06-08T11:11:38.085Z", "created_by": { "username": "aute proident eiusmod cillum officia", "provenance": "dolor in anim ad" }, "createdVersion": "mollit in", "last_updated": "1965-05-31T08:11:43.49Z", "last_updated_by": { "username": "tempor fugiat proident voluptate", "provenance": "ipsum et" }, "lastUpdatedVersion": "id commodo voluptate", "tags": [ { "_id": "FDF0b14E507bA70C4CC2cb5E", "name": "fugiat", "description": "Ut in cupidatat veniam" }, { "_id": "34dB0ddFCAc538e00E6c3e0F", "name": "mollit Ut non dolor nisi", "description": "veniam reprehenderit occaecat exercitation" }, { "_id": "9dEB5a907d63E3ECD5e6F0F2", "name": "sed veniam eiusmod laborum adipisicing", "description": "officia incididunt" }, { "_id": "469EeB7bc8CC3d7d2eca8F6d", "name": "nisi ea velit", "description": "nostrud et Lorem" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~1/ntXQO2uI/gcuyZ5" } ], "migrationVersion": 22148938 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 17528605.056766182, "y": -21823229.92845887 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 44440624.46247065, "y": 21440110.127238482 }, "error_handler": { "name": "childJob", "summary": "deserunt dolor", "description": "in pariatur aliquip commodo", "app": "officia", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/QnP5C1HT" }, { "type": "encryption", "pointer": "/~1/~1/kfA8IQOQ/~0" }, { "type": "encryption", "pointer": "/~0/~0/PJZdz/~0/G5ykH8Ah6b/~0/~1/~0/~1/~1/JtVYSd" } ] }, "groups": [ { "name": "consequat in tempor elit laboris", "provenance": "sunt sed culpa officia dolore" } ], "type": "operation", "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "ad occaecat", "provenance": "voluptate" }, { "name": "id do sint", "provenance": "nulla ipsum occaecat qui velit" }, { "name": "laboris", "provenance": "ut" }, { "name": "eiusmod", "provenance": "commodo sint" } ], "_id": "8bac54d4-2527-301f-cd69-5be65a0168be", "description": null, "preAutomationTime": 78907483.37718067, "sla": 32237245.511277422, "errorHandler": { "type": "laborum elit mollit", "name": "amet" }, "font_size": 12, "created": "1982-02-02T07:09:07.419Z", "created_by": null, "createdVersion": "Duis sint", "last_updated": "1959-04-08T03:17:48.512Z", "last_updated_by": { "username": "ipsum eiusmod consequat", "provenance": "enim ut in ut" }, "lastUpdatedVersion": "nisi", "tags": [ { "_id": "9072f4C60aFEC54Ef7A6a65d", "name": "ea", "description": "aute ullamco" }, { "_id": "eF4Ddb8B65a9E6D4E8DDcCB8", "name": "ut", "description": "cillum" }, { "_id": "A6fE1FAaB0C1cC3b426C870a", "name": "in sed nulla tempor", "description": "ipsum" }, { "_id": "Bfa244F3AB15A2053f06bdAb", "name": "voluptate Lorem", "description": "ex exercitation ut officia cupidatat" }, { "_id": "32DaAEBfBC68AfAEe4D9e0d9", "name": "consequat elit", "description": "dolor irure ea nostrud" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~0/~0/M" }, { "type": "encryption", "pointer": "/~0/~0/ZbWkeibAYz/yl.,rd9+/~1/rh6KS4cpl/~0" }, { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/~1/~1" } ], "migrationVersion": 22241886 } ] }
{ "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": "deserunt cillum", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -53036545.645303555, "y": 66947851.447141916 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 83157755.28724095, "y": -10826225.041256025 }, "error_handler": { "name": "childJob", "summary": "pariatur laborum", "description": "in eiusmod veniam minim", "app": "enim consequat", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/sc9RYChp+h4/~1/vSfcA7/y/~0/af-5UKzqCP/~0/ODVUHEZ/~0/~1/~1" } ] }, "groups": [ { "name": "velit adipisicing", "provenance": "dolore" }, { "name": "et", "provenance": "ut nulla" }, { "name": "dolore sit", "provenance": "Ut exercitation id dolor ut" }, { "name": "aute reprehenderit adipisicing", "provenance": "enim non dolor" }, { "name": "nisi ea sunt", "provenance": "deserunt quis eu" } ], "type": "operation", "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "Lorem velit", "provenance": "eiusmod ullamco in occaecat est" }, { "name": "dolor enim amet", "provenance": "consectetur ut" }, { "name": "velit", "provenance": "velit" } ], "_id": "c27b5be0-28ec-3d93-00dc-9533e956492a", "description": "in reprehenderit ex id", "preAutomationTime": -21154246.154954582, "sla": -69783501.56118762, "errorHandler": { "type": "cupidatat quis nostrud elit fugiat", "name": "sint" }, "font_size": 12, "created": "2015-01-21T15:54:47.035Z", "created_by": { "username": "anim est", "provenance": "dolor" }, "createdVersion": "eu velit in proident", "last_updated": "1999-06-22T04:43:39.472Z", "last_updated_by": null, "lastUpdatedVersion": "Duis ut nulla", "tags": [ { "_id": "BC9fb919Bb8Fa52F2BF57DF7", "name": "proident fugiat minim velit", "description": "eu magna" }, { "_id": "A5c097ea0aFB6f02b35FF5b0", "name": "dolor nostrud ut magna", "description": "veniam exercitation aute" }, { "_id": "26fDEBDF411c30E35AE9E9A2", "name": "ullamco sint nulla incididunt velit", "description": "fugiat pariatur tempor" }, { "_id": "99F24F6d637AaEffcE1eF26c", "name": "sint aliquip", "description": "consequat enim occaecat adipisicing" }, { "_id": "CB5f3d0FC6e8915FeAf226dF", "name": "ad enim aliquip", "description": "exercitation occaecat est ut mollit" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/IAJeP/F4/~1/~1/~0/pzoZjdn.q/dWYI" }, { "type": "encryption", "pointer": "/~0/~0/~0/akXG2zZxH6/alV4bxd6VgG/~1/gd/~1/IiIxD6/~1/ayJ" } ], "migrationVersion": 9168765 }, "created": null, "edit": null, "success": false }, { "message": "cillum minim officia deserunt quis", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 98074337.92143342, "y": -53370494.94901929 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 70681313.3202492, "y": -21617328.491076738 }, "error_handler": { "name": "childJob", "summary": "mollit ad Ut", "description": "sit anim", "app": "dolore Ut nulla", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/kD+4Xds/~1/xku/~1/jBy1MsP3J/aEkcK3B/SpYbhiwlw0/~1" }, { "type": "encryption", "pointer": "/UvrD/vbyC/~0/T/QJY/~0/Q.r-VtSN8u/h/yT/cejE3G/IO1Ebeq2g/~0" }, { "type": "encryption", "pointer": "/~1/~0/~0/~1/Y/oF+B-cld/zsfTwKQbCE/i8ua" } ] }, "groups": [ { "name": "eu", "provenance": "ipsum minim" } ], "type": "operation", "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "magna", "provenance": "ex" }, { "name": "quis eu amet cillum", "provenance": "officia cupidatat" } ], "_id": "1cc752c1-46e4-ef6c-c5f1-df879038fdf8", "description": null, "preAutomationTime": -43609055.358839564, "sla": -78588481.4387905, "errorHandler": null, "font_size": 12, "created": "1949-09-14T16:01:43.275Z", "created_by": { "username": "labore sunt qui", "provenance": "qui Lorem ea et occaecat" }, "createdVersion": "sed velit adipisicing reprehenderit in", "last_updated": "1980-10-05T01:14:32.357Z", "last_updated_by": null, "lastUpdatedVersion": "tempor", "tags": [ { "_id": "d543dFab6DdBDAC4BDc7de73", "name": "nisi dolore ex adipisicing incididunt", "description": "Excepteur dolore" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/AF/~1/~1/~1/~1" } ], "migrationVersion": 88627270 }, "created": null, "edit": "nulla nisi", "success": true }, { "message": "adipisicing", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -11130538.056691915, "y": -42328761.47196252 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -56432255.13076775, "y": -50059258.801631756 }, "error_handler": { "name": "childJob", "summary": "ut", "description": "ut", "app": "aliqua ipsum dolor", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/OZacc/~1" }, { "type": "encryption", "pointer": "/fU/m" } ] }, "groups": [ { "name": "consequat fugiat officia est ex", "provenance": "aute aliqua adipisicing" }, { "name": "magna enim", "provenance": "pariatur enim" }, { "name": "minim labore pariatur", "provenance": "mollit dolor incididunt culpa" } ], "type": "operation", "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "ipsum", "provenance": "velit elit" } ], "_id": "5499d719-f451-4921-cf69-87c942944823", "description": null, "preAutomationTime": 49677057.60163489, "sla": -61405687.57526683, "errorHandler": { "type": "Ut dolor veniam", "name": "proident cupidatat cillum quis" }, "font_size": 12, "created": "2013-02-26T08:17:15.619Z", "created_by": { "username": "pariatur ipsum sint", "provenance": "pariatur labore dolore" }, "createdVersion": "do", "last_updated": "2018-07-29T00:18:16.238Z", "last_updated_by": null, "lastUpdatedVersion": "nulla in deserunt", "tags": [ { "_id": "dB3b4Da3E6FeEefF12CDfDFc", "name": "magna", "description": "nostrud id voluptate cillum veniam" }, { "_id": "D56b1Af81eFAeC73Fd3505f9", "name": "sit labore anim", "description": "ullamco occaecat commodo cillum" }, { "_id": "FBc2f1c63BcA8f91dD4Ab39e", "name": "velit non dolor", "description": "Ut aute non cupidatat" }, { "_id": "c4aAFA07D8CeEdA9F28bf9Ef", "name": "esse est ea", "description": "est ad Excepteur" }, { "_id": "D12161f03D3DCe1a03Db21Cf", "name": "ad magna ut quis", "description": "ut" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/Kitnw/~1/m/~0/~1/~1/qprTdPShc2D/JGi/DTgH" }, { "type": "encryption", "pointer": "/~0/qs/mzQ9unkG5Mw/~0/~1" } ], "migrationVersion": -90173964 }, "created": null, "edit": "nisi pariatur officia nulla", "success": true }, { "message": "est sint elit quis", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 33387550.786213443, "y": 46077961.58470619 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -39458527.89055126, "y": 960411.5690768063 }, "error_handler": { "name": "childJob", "summary": "sunt in dolore pariatur eu", "description": "amet", "app": "in irure esse proident", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~0/~1/~1/S6tqw/a2xc/IlLwcQ2Lk8n/~0/~1/HmILeehlMTj" } ] }, "groups": [ { "name": "Duis aute Ut non dolor", "provenance": "anim aute ex" }, { "name": "anim mollit", "provenance": "aliqua ipsum do incididunt" }, { "name": "officia cupidatat", "provenance": "Ut sint ipsum velit adipisicing" }, { "name": "labore amet officia Lorem in", "provenance": "irure" } ], "type": "operation", "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "velit labore in esse", "provenance": "ut velit Lorem in" }, { "name": "Excepteur", "provenance": "ex officia" }, { "name": "ullamco aliqua dolore ipsum", "provenance": "elit Ut" } ], "_id": "faf91939-f601-8167-cd8a-61eba8729a23", "description": "et anim in consequat", "preAutomationTime": 27270619.76087661, "sla": 67757292.32871574, "errorHandler": { "type": "voluptate deserunt Ut", "name": "magna cupidatat cillum est sunt" }, "font_size": 12, "created": "2022-08-30T03:32:20.277Z", "created_by": { "username": "deserunt sint qui ad sunt", "provenance": "anim ex" }, "createdVersion": "do sit", "last_updated": "2016-05-08T05:47:12.346Z", "last_updated_by": { "username": "dolore incididunt ea proident", "provenance": "in non consequat" }, "lastUpdatedVersion": "Excepteur", "tags": [ { "_id": "29fEace212FCe231EeeDbc3B", "name": "anim Duis voluptate laboris", "description": "reprehenderit eu" }, { "_id": "a1B76DCCc5B6e80B392502dd", "name": "tempor amet cupidatat dolore", "description": "cupidatat Excepteur commodo Duis ut" }, { "_id": "eB6689D9eaBBFc5Bc31155Cd", "name": "voluptate enim sunt ullamco nostrud", "description": "sit" }, { "_id": "1B98E7BFCf326CfB1fC0fdd9", "name": "Duis qui exercitation", "description": "Excepteur" }, { "_id": "CbBDb50B843B3BBFa8192A5D", "name": "do", "description": "dolor occaecat adipisicing sed dolore" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/R.Sh/Tsm5/~1/e/xc/CopuXs/V/uz./~0/~0" }, { "type": "encryption", "pointer": "/JlO/~0/vC4kYR/~1/WT-/J3PeCG/z" } ], "migrationVersion": -22031376 }, "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.", "type": [ "string", "null" ] } }, "required": [ "status", "message", "original", "created", "edit" ] } } } }