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": "nulla reprehenderit Lorem", "provenance": "voluptate aute" }, { "name": "nisi exercitation voluptate", "provenance": "pariatur sunt irure cupidatat quis" } ], "nodeLocation": { "x": -29911516.00682804, "y": -19680295.039912283 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "est tempor cupidatat in", "provenance": "fugiat velit voluptate pariatur tempor" }, { "name": "minim anim aliqua labore esse", "provenance": "dolore Duis commodo" }, { "name": "id", "provenance": "mollit officia" } ], "gridCoordinate": { "x": -43731288.80194308, "y": -40155891.4783299 } }, "error_handler": { "name": "childJob", "summary": "dolor magna tempor enim", "description": "et fugiat", "app": "in pariatur", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/oz/th6t3FE9p/~1/G5/OKtBu8KZ/YJupM/pu3K/~0" }, { "type": "encryption", "pointer": "/vBbB2/~0/N,y9qk/j/I-wbJYT,5k/xqQpbAhlb,/D/~1" }, { "type": "encryption", "pointer": "/T3Pg5+8R6qE/tkFV/kh4E/~0/~0/~1/~0/qsc/~1" }, { "type": "encryption", "pointer": "/~1/HY+GY/yYAHFLlXE.0/~0" } ] }, "groups": [ { "name": "Lorem", "provenance": "Ut" }, { "name": "fugiat exercitation aliqua", "provenance": "occaecat minim laborum ullamco consequat" }, { "name": "id", "provenance": "cillum exercitation voluptate" }, { "name": "cillum Lorem ullamco", "provenance": "cillum est" }, { "name": "Duis eu est nostrud", "provenance": "ut" } ], "type": "operation", "nodeLocation": { "x": 35870639.85584381, "y": -62507246.56019408 }, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "sed quis culpa", "provenance": "eu ut eiusmod reprehenderit consequat" }, { "name": "ad fugiat", "provenance": "ut" }, { "name": "nostrud id eu tempor proident", "provenance": "proident et non adipisicing laboris" } ], "_id": "69860364-7266-0bf6-1b13-cc1f2c90a0fd", "description": "nisi officia", "preAutomationTime": 14401818.697486266, "sla": -48644678.91714268, "errorHandler": null, "font_size": 12, "created": "2013-08-10T17:07:46.121Z", "created_by": null, "createdVersion": "sed", "last_updated": "1963-08-16T07:17:11.443Z", "last_updated_by": null, "lastUpdatedVersion": "minim reprehenderit amet", "tags": [ { "_id": "6EaB77Af2e626F1De9AD4689", "name": "labore occaecat dolor officia eiusmod", "description": "esse sed" }, { "_id": "84b2d0Fdd5f7B9Fef3E95adC", "name": "laborum Excepteur adipisicing", "description": "anim" }, { "_id": "308Af9bBe809FbB39cAadD48", "name": "aliquip sed culpa", "description": "quis incididunt sed id" }, { "_id": "F1C0dBdAecBdEd0a9B5656Ba", "name": "do sunt in dolor", "description": "dolore sint pariatur nisi ullamco" }, { "_id": "C3d150c90BFeaDcC8d1EB77A", "name": "anim elit exercitation nulla", "description": "sint est dolor occaecat aliquip" } ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/~1/~0" }, { "type": "encryption", "pointer": "/shonE7Aaqui/vXIM+MwaJ/~1/~0/~0/~0/~1" }, { "type": "encryption", "pointer": "/xy+1A/GHx/~0" } ], "migrationVersion": 21237435 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "consectetur ipsum fugiat", "provenance": "sit Lorem occaecat ea" } ], "nodeLocation": { "x": -74308246.20434034, "y": -10856724.523417816 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "cupidatat Duis", "provenance": "laboris incididunt minim eu" }, { "name": "in irure ex qui Ut", "provenance": "ex aliquip" }, { "name": "fugiat labore veniam reprehenderit pariatur", "provenance": "amet" }, { "name": "ex", "provenance": "laboris sint" }, { "name": "ea aliquip", "provenance": "ipsum dolor occaecat cupidatat" } ], "gridCoordinate": { "x": 79991834.75237116, "y": -44420298.096347824 } }, "error_handler": { "name": "childJob", "summary": "et aliqua ullamco irure pariatur", "description": "enim culpa", "app": "officia", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/aG9K17m" }, { "type": "encryption", "pointer": "/GSlzCn/4/~0/~1/QM/MdFI7eW/~1/~0/Yn8./np/ol0,-k/~1/~0" } ] }, "groups": [ { "name": "laboris", "provenance": "Ut" }, { "name": "mollit", "provenance": "esse aliquip velit veniam" }, { "name": "sit dolore", "provenance": "Duis amet dolor" }, { "name": "Ut", "provenance": "est nisi consequat laborum veniam" }, { "name": "cillum", "provenance": "laboris ea" } ], "type": "operation", "nodeLocation": { "x": -26459734.89688553, "y": -61615031.909108 }, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "qui ut esse sint", "provenance": "do anim sunt amet labore" }, { "name": "sunt proident et ut", "provenance": "ex Excepteur quis amet proident" }, { "name": "ex pariatur sunt", "provenance": "dolore aliquip est" } ], "_id": "41ea10cf-8d85-1e17-293b-d4bdd7f56637", "description": null, "preAutomationTime": -99239806.61353542, "sla": -92085473.79984084, "errorHandler": null, "font_size": 12, "created": "1970-12-24T22:58:33.194Z", "created_by": null, "createdVersion": "non sint pariatur", "last_updated": "1967-10-04T10:40:08.882Z", "last_updated_by": { "username": "anim voluptate est in cillum", "provenance": "Lorem aute nulla incididunt" }, "lastUpdatedVersion": "ex", "tags": [ { "_id": "433bB50bB489eeeCEb3cC86D", "name": "qui nostrud do dolor dolor", "description": "Lorem officia" }, { "_id": "A2fC31eFacC27D175Cc10CAF", "name": "consectetur consequat laborum dolore", "description": "minim sed labore incididunt" }, { "_id": "A7F2cEEc1AC0FCeA4c8fca33", "name": "elit anim voluptate", "description": "reprehenderit sit" }, { "_id": "0db9d6d75e9674DBbeaEFAaF", "name": "Ut enim consectetur", "description": "sunt Ut sint ipsum" }, { "_id": "405accA5B3cBBc7Bcadc9A0D", "name": "mollit ut fugiat deserunt", "description": "commodo sint Lorem" } ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/lh/~0/~1/PSmNECz/~0/~0/XRNJh" }, { "type": "encryption", "pointer": "/~1/~1/~1" }, { "type": "encryption", "pointer": "/~0/pQ7EIi8fBo7" } ], "migrationVersion": -37791596 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "eiusmod aliquip aute voluptate officia", "provenance": "adipisicing commodo amet qui tempor" }, { "name": "irure esse est", "provenance": "dolor incididunt tempor" } ], "nodeLocation": { "x": -48393179.00851929, "y": -43914128.262252875 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "exercitation est", "provenance": "sint Lorem" }, { "name": "eu quis dolore deserunt", "provenance": "dolor dolor in Duis ad" } ], "gridCoordinate": { "x": -63525214.47331316, "y": 98060542.4860265 } }, "error_handler": { "name": "childJob", "summary": "Lorem", "description": "nisi esse", "app": "irure eu deserunt veniam", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/R0/RIiAf/Wv" }, { "type": "encryption", "pointer": "/~0/xlq/~0/Kui2Ji./ZOLWv/M/~1/cl/ZM8ijctp" }, { "type": "encryption", "pointer": "/~0/AzodBNQ2/n/U-gj14s6X/T2yW/x/~1/RwU/~0" }, { "type": "encryption", "pointer": "/XYewN/~1" }, { "type": "encryption", "pointer": "/~1/~1/~1/nk2/QISK./s" } ] }, "groups": [ { "name": "esse ipsum irure", "provenance": "in officia proident anim cupidatat" } ], "type": "operation", "nodeLocation": { "x": 80583310.44435239, "y": -90257351.03188728 }, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "ullamco Ut cupidatat", "provenance": "sunt culpa" }, { "name": "commodo sed", "provenance": "reprehenderit labore voluptate do eiusmod" }, { "name": "qui ut", "provenance": "aute nostrud non occaecat eu" }, { "name": "dolore qui do ullamco quis", "provenance": "Ut ea" }, { "name": "occaecat nostrud Ut", "provenance": "ipsum eu" } ], "_id": "b3802e08-31af-dda0-7486-6cd5da4e4f62", "description": "sunt Ut et incididunt dolor", "preAutomationTime": 28540689.105790123, "sla": -68107628.6735737, "errorHandler": { "type": "mollit aliqua sed pariatur", "name": "incididunt" }, "font_size": 12, "created": "1946-10-22T17:27:24.901Z", "created_by": { "username": "eu", "provenance": "anim Lorem est fugiat" }, "createdVersion": "occaecat", "last_updated": "1999-02-22T20:29:25.7Z", "last_updated_by": null, "lastUpdatedVersion": "commodo ex pariatur", "tags": [ { "_id": "dee4C2a70e52E2FccE2b06bb", "name": "laborum", "description": "ipsum aute culpa" }, { "_id": "21b024FfABdAa5C51Ed2a3E8", "name": "Lorem ullamco sunt", "description": "nostrud Excepteur" }, { "_id": "CEB0DfFc5EFEe0aEDAC6b3FF", "name": "elit mollit ex", "description": "minim in" }, { "_id": "a4E5dD111dFDAfFEf83F3bBc", "name": "id dolor anim exercitation", "description": "officia minim ad" } ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/usmf" } ], "migrationVersion": -24276889 } ] }
{ "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": "amet dolore ad", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "proident aliqua consequat commodo qui", "provenance": "eu deserunt labore et nisi" }, { "name": "nostrud", "provenance": "aliqua dolor Excepteur" }, { "name": "enim", "provenance": "in Duis veniam quis" } ], "x": -24962008.68873264, "y": -64600999.72302258 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "in ad", "provenance": "nisi in" }, { "name": "nulla esse elit irure", "provenance": "pariatur velit sint quis commodo" }, { "name": "aute veniam fugiat", "provenance": "cillum adipisicing sunt" } ], "nodeLocation": { "x": -42026358.24858465, "y": 24749260.68113424 } }, "error_handler": { "name": "childJob", "summary": "nulla", "description": "veniam ex ipsum magna adipisicing", "app": "pariatur", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~1/~1/~1/kOQN" }, { "type": "encryption", "pointer": "/~0" } ] }, "groups": [ { "name": "et mollit", "provenance": "nisi ut cupidatat ex" } ], "type": "operation", "nodeLocation": { "x": -53119798.02484341, "y": 71088025.42117822 }, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "magna dolore", "provenance": "cillum ex laboris aliquip" }, { "name": "Lorem quis est", "provenance": "ad exercitation occaecat reprehenderit eu" }, { "name": "magna esse", "provenance": "sit laborum fugiat eiusmod" } ], "_id": "ead37732-395d-022d-98d6-be7f8c7c8ba5", "description": null, "preAutomationTime": -1500194.4690702856, "sla": -34242069.05952682, "errorHandler": { "type": "laboris officia proident sed laborum", "name": "anim reprehenderit dolor aliquip aute" }, "font_size": 12, "created": "1963-09-12T03:53:56.431Z", "created_by": null, "createdVersion": "sunt sed", "last_updated": "1971-03-25T13:11:23.92Z", "last_updated_by": { "username": "elit sunt", "provenance": "nisi ullamco" }, "lastUpdatedVersion": "adipisicing", "tags": [ { "_id": "9b47F2B3a0aC7F5db5c460F5", "name": "adipisicing commodo exercitation elit", "description": "sint ad magna minim dolore" }, { "_id": "bfAbC4bE65521CfB96628CA3", "name": "non adipisicing culpa do", "description": "ex" }, { "_id": "DDDB2B3a3dcA3AfafAc16c0c", "name": "fugiat Duis adipisicing ipsum eu", "description": "incididunt consequat" }, { "_id": "D5b7A2b3BA1c40D65bBF9dCb", "name": "enim dolore", "description": "qui sunt tempor" }, { "_id": "a12Db69901d8EFBe0EF7f4D2", "name": "officia", "description": "cupidatat" } ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/qbX0kDCRD/~0/~1/R3,u2nO/pj/iCbJer2e/DXSlh,OiQ/~0" } ], "migrationVersion": 56951673 }, "created": null, "edit": "mollit in", "success": false }, { "message": "elit dolore anim Duis", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "reprehenderit dolor consequat laborum", "provenance": "laborum dolore veniam Lorem" }, { "name": "ullamco ad", "provenance": "nisi do consequat labore" }, { "name": "irure magna ut culpa tempor", "provenance": "et Excepteur" } ], "x": -89016123.72837819, "y": 20790269.549365714 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "Duis", "provenance": "id ut" }, { "name": "commodo deserunt mollit", "provenance": "nulla" }, { "name": "dolore amet in ut dolor", "provenance": "ullamco pariatur esse enim cupidatat" }, { "name": "proident incididunt minim magna", "provenance": "tempor Duis" } ], "nodeLocation": { "x": -18684559.41790463, "y": 49305828.83723971 } }, "error_handler": { "name": "childJob", "summary": "labore mollit ipsum", "description": "velit culpa", "app": "magna ad in est", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/W3g/ovGr7X/PaTAasZn/f0/~0" } ] }, "groups": [ { "name": "et id exercitation in", "provenance": "aute incididunt magna" }, { "name": "dolore", "provenance": "reprehenderit sed aliqua Excepteur aute" }, { "name": "ex eiusmod proident", "provenance": "veniam quis officia" }, { "name": "et est do ut ipsum", "provenance": "deserunt" }, { "name": "enim aliqua", "provenance": "magna mollit ullamco ea" } ], "type": "operation", "nodeLocation": { "x": -68175902.18469128, "y": -28784649.829267383 }, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "eiusmod amet aliquip", "provenance": "sint nostrud voluptate non ut" }, { "name": "nulla consequat Lorem", "provenance": "esse proident et cupidatat ea" }, { "name": "in cupidatat", "provenance": "Excepteur et dolore" }, { "name": "qui do in in pariatur", "provenance": "do sunt consectetur" }, { "name": "proident do", "provenance": "ipsum sed" } ], "_id": "71e84ca4-9c59-7bf4-79a0-e9201d2b5dae", "description": "tempor", "preAutomationTime": 8645966.323459968, "sla": 88668829.06387389, "errorHandler": null, "font_size": 12, "created": "1966-12-02T18:16:19.946Z", "created_by": null, "createdVersion": "sunt nisi id tempor ipsum", "last_updated": "1990-09-05T19:39:37.196Z", "last_updated_by": { "username": "aute Excepteur laborum", "provenance": "sit sunt Ut in" }, "lastUpdatedVersion": "irure dolor in voluptate dolor", "tags": [ { "_id": "b15bc52521f53f654Afa9c6B", "name": "magna ipsum esse eu", "description": "veniam voluptate aliqua tempor fugiat" }, { "_id": "5dbAFf5b3f7faf8A1fC315fd", "name": "anim mollit labore amet in", "description": "occaecat Duis dolor do eiusmod" }, { "_id": "73933FAaed6aCACcFf4EA3b2", "name": "sint ipsum", "description": "sit" }, { "_id": "e1C204B17fe7EA1d4FFDb9bd", "name": "Excepteur velit", "description": "velit" } ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/YTCZHm4/CuZeN/LZEFDgZjg1/YSbluT/~1" }, { "type": "encryption", "pointer": "/~1/mf,RvBpGT/av2QW+9/~0/D7/MAc33LXh/~0" }, { "type": "encryption", "pointer": "/RyN0q/kTs/~0/goJI+o1jn/ba/~1/z,p/~0/ZBpT+Hd" }, { "type": "encryption", "pointer": "/~0/~0/QkotauBx5DO" } ], "migrationVersion": 82481987 }, "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" ] } } } }