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": "esse sed ad officia ex", "provenance": "quis Lorem" }, { "name": "aute veniam eiusmod commodo eu", "provenance": "do nostrud" }, { "name": "Excepteur", "provenance": "proident deserunt mollit dolor" }, { "name": "quis", "provenance": "ad sunt tempor proident" }, { "name": "amet ut ipsum", "provenance": "ad anim deserunt laborum veniam" } ], "nodeLocation": { "x": -48049795.030404404, "y": 71874991.12403181 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "do nostrud consequat est Duis", "provenance": "labore do ea ullamco aliqua" }, { "name": "nostrud sed eu", "provenance": "dolor non velit dolore" }, { "name": "non ex", "provenance": "cupidatat et" }, { "name": "veniam Lorem", "provenance": "mollit sunt" } ], "gridCoordinate": { "x": 88506175.35089847, "y": -35914877.106574126 } }, "error_handler": { "name": "childJob", "summary": "Ut in ex", "description": "dolor in cupidatat", "app": "fugiat", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/R" }, { "type": "encryption", "pointer": "/~0/V5/QLcjG/~0/~1/~0/o6.knl/zr/O" } ] }, "groups": [ { "name": "nostrud est laborum Lorem", "provenance": "reprehenderit" } ], "type": "operation", "gridCoordinate": { "x": -17001108.638308704, "y": -8931055.00495617 }, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "ipsum consectetur", "provenance": "nisi dolore" }, { "name": "ipsum", "provenance": "ex mollit consectetur incididunt" } ], "_id": "35909c40-b56b-cd17-1e03-7ac10c292c38", "description": null, "preAutomationTime": -33625924.67925665, "sla": 98946262.60669664, "errorHandler": null, "font_size": 12, "created": "1962-09-30T06:27:37.63Z", "created_by": { "username": "ad", "provenance": "ea Excepteur ut" }, "createdVersion": "nulla", "last_updated": "1975-08-27T05:38:51.437Z", "last_updated_by": null, "lastUpdatedVersion": "et enim dolor cillum", "tags": [ { "_id": "BDbdd1DFd2323A24fefC6658", "name": "dolor labore", "description": "ut esse" }, { "_id": "0EdBb9DCB49fb0b715BcCDcb", "name": "elit aute Duis", "description": "sit" }, { "_id": "b79f61A903d68CaB6dDB2cBE", "name": "dolor veniam cupidatat", "description": "ut" } ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/ZX/~1/~1/~1/U3JgZhQIC/~1/~0/~0/~1/~0" }, { "type": "encryption", "pointer": "/Bl/ft/sFD/~0/~1/QZuCCn5/~0/~1/UOlAqQj7xI/AQqB/V3ABdNX/YG0lO0PHS" } ], "migrationVersion": -98801760 } ] }
{ "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": "velit commodo nisi", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "ea proident sit deserunt", "provenance": "qui irure" }, { "name": "ad culpa sed", "provenance": "aliquip pariatur" }, { "name": "irure non ipsum", "provenance": "commodo minim Duis" } ], "nodeLocation": { "x": -7608396.174631998, "y": 75571902.45220324 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "irure eiusmod", "provenance": "est in adipisicing" } ], "x": -80858652.71236888, "y": 85840101.23466256 }, "error_handler": { "name": "childJob", "summary": "anim laboris aute nisi", "description": "ex", "app": "consectetur adipisicing velit", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~1/h1/wV/W7JR0Z+/~1/~0/~1/~1/fdOtjWj,jN/~1" }, { "type": "encryption", "pointer": "/~0/WJLQ9JlzF/wZYZ" }, { "type": "encryption", "pointer": "/g.Li7fxVmx/~0/Wd50DD/Upm/KDHX/s9CUlSe1V/JsogFbfOMrA/mXqk6CMCbg/O-.wDd4" } ] }, "groups": [ { "name": "esse aliquip ea", "provenance": "cupidatat aliquip occaecat" }, { "name": "amet", "provenance": "aute" }, { "name": "aliqua Duis", "provenance": "laboris" } ], "type": "operation", "gridCoordinate": { "x": 55637711.14905146, "y": -63966461.6692357 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "nulla ipsum dolor", "provenance": "sunt labore deserunt voluptate" }, { "name": "Duis dolore quis nulla aliquip", "provenance": "eiusmod id irure velit enim" }, { "name": "irure laborum dolor culpa anim", "provenance": "nisi" }, { "name": "dolor ut laborum", "provenance": "nulla proident dolore" } ], "_id": "8a6ce213-acdd-1454-ed57-777241a1717c", "description": null, "preAutomationTime": -68631566.27855763, "sla": 49626303.06124064, "errorHandler": null, "font_size": 12, "created": "1947-09-28T14:39:48.547Z", "created_by": { "username": "velit ullamco dolore amet reprehenderit", "provenance": "ex mollit" }, "createdVersion": "Ut occaecat proident deserunt tempor", "last_updated": "1953-09-23T23:54:22.793Z", "last_updated_by": { "username": "sunt velit Duis", "provenance": "ut do" }, "lastUpdatedVersion": "sed consequat anim", "tags": [ { "_id": "72E9eDdD14455FdEEa214DcB", "name": "pariatur", "description": "nostrud mollit" }, { "_id": "e8eBf6cf7DeC3eaA25FE9799", "name": "officia nostrud", "description": "dolore amet sit qui" }, { "_id": "f6CfA5993970D91037aBe1ee", "name": "pariatur magna quis", "description": "fugiat Ut voluptate esse quis" } ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/GVMzRe/wdDnr-Z3jte/fxWwy/~0/JW9pRC+mnl./qLlrE/YHWV/~0/Dcfhqo/~1" }, { "type": "encryption", "pointer": "/rVLppub8A/lGU4eW/~1/~1/~1/xIqPhIkha/OahMNw/~1/kE6/~0/~0" } ], "migrationVersion": -76123509 }, "edit": null, "success": true }, { "message": "ad laboris", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "aliqua eu", "provenance": "commodo eiusmod ea sit" } ], "nodeLocation": { "x": 98224897.22795531, "y": 27588695.895958275 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "tempor commodo", "provenance": "ea" } ], "x": -50510333.724627584, "y": -27316327.37768437 }, "error_handler": { "name": "childJob", "summary": "do officia", "description": "voluptate mollit adipisicing", "app": "dolor Ut", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/sz/~0/KtXaO73zTXe/~1/goG+6-G0f-d/~1/~1/~1/I/~0" }, { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/~0/xwKY9to97S/~0/yxrA-/dU28V9T/~0" }, { "type": "encryption", "pointer": "/~1" } ] }, "groups": [ { "name": "aliqua et eu", "provenance": "Excepteur in aliqua dolor" }, { "name": "nisi enim Duis cillum sunt", "provenance": "sint eu reprehenderit Excepteur" }, { "name": "nostrud eiusmod ipsum reprehenderit magna", "provenance": "aute ut ea adipisicing culpa" } ], "type": "operation", "gridCoordinate": { "x": 8239219.951437533, "y": 95801738.2386485 }, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "incididunt nisi minim aliqua", "provenance": "veniam ex laboris" }, { "name": "velit qui ullamco", "provenance": "pariatur proident occaecat do enim" }, { "name": "adipisicing", "provenance": "laborum voluptate" }, { "name": "magna officia Lorem", "provenance": "esse ut dolor nulla elit" } ], "_id": "d46f3a15-b338-5d5b-8ecd-f527edfc2ef7", "description": "incididunt tempor", "preAutomationTime": 7611026.320310816, "sla": -86717593.9014035, "errorHandler": { "type": "dolor commodo dolor reprehenderit ad", "name": "dolor" }, "font_size": 12, "created": "1978-01-15T14:56:12.554Z", "created_by": { "username": "dolor consequat exercitation id", "provenance": "veniam sed in eiusmod et" }, "createdVersion": "sit dolore", "last_updated": "2022-03-27T04:31:23.448Z", "last_updated_by": { "username": "ad Duis in aute mollit", "provenance": "eu ut sunt irure eiusmod" }, "lastUpdatedVersion": "Duis commodo consectetur", "tags": [ { "_id": "157b61d4097d4b71edE59942", "name": "consectetur", "description": "do" }, { "_id": "25ADc0F0389FED2eBa6A6d3c", "name": "irure Ut laboris magna", "description": "qui ipsum" }, { "_id": "fc23dDB826f9AAC0BaF2e5bA", "name": "culpa", "description": "non" } ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/XH/~1/lVm9Fo/IARkbY/qpJ4" }, { "type": "encryption", "pointer": "/OTecrzZXIxV/xXK/Z2zpn5E/~1/xQIMLL+p-0/~0/svt/~0" }, { "type": "encryption", "pointer": "/~1/N-rK/pzV/Mg0Jk5x/~0/~1/~1/SQrgqMANCG/m2f,Q/ZK0/~0/g-" } ], "migrationVersion": -83012679 }, "edit": null, "success": true }, { "message": "labore reprehenderit aliqua in", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "ut et", "provenance": "ad" }, { "name": "tempor", "provenance": "sed reprehenderit non pariatur" }, { "name": "et", "provenance": "nisi ex" }, { "name": "Ut in in", "provenance": "ad ex laborum" }, { "name": "pariatur", "provenance": "mollit ad" } ], "nodeLocation": { "x": -79294910.8855812, "y": 92315400.44317713 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "sed eiusmod et", "provenance": "dolor consectetur dolore mollit elit" }, { "name": "officia deserunt adipisicing", "provenance": "irure" } ], "x": -47225089.5074775, "y": -98242901.14765458 }, "error_handler": { "name": "childJob", "summary": "enim ipsum do", "description": "Ut adipisicing", "app": "non in nulla", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~0/~0/~1/ws5hb3m0n/~1" }, { "type": "encryption", "pointer": "/eORxs/H8cNSwRLU5/Qmt9IN/~1/~0" }, { "type": "encryption", "pointer": "/~1/~0/~1/niH2pNuc/~0/l5,KS0/HzKgd" }, { "type": "encryption", "pointer": "/G,tIEgsZ/t1WEPH/yDfL/o/w0/~0/~1/~0/YYubtN-bF5" } ] }, "groups": [ { "name": "pariatur in ipsum", "provenance": "ad sit mollit" } ], "type": "operation", "gridCoordinate": { "x": -15652525.753062323, "y": -46077605.32379683 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "eu et", "provenance": "magna" }, { "name": "sit sunt", "provenance": "labore cillum enim" }, { "name": "nostrud consectetur", "provenance": "commodo" } ], "_id": "2fd312b0-f176-fcd4-a6d6-cc9de4dd603a", "description": null, "preAutomationTime": 4647100.644722, "sla": -91768642.49263836, "errorHandler": null, "font_size": 12, "created": "1981-11-14T21:07:01.747Z", "created_by": { "username": "elit ex nulla ad aliquip", "provenance": "laboris Lorem non Excepteur ipsum" }, "createdVersion": "dolore ipsum aliqua ad elit", "last_updated": "1959-08-15T11:46:35.463Z", "last_updated_by": null, "lastUpdatedVersion": "velit dolore incididunt nulla anim", "tags": [ { "_id": "4C9C70F5E7e1946584c5b451", "name": "fugiat cupidatat", "description": "minim" }, { "_id": "Ff52d5d1DF2FdCe1EE5782CA", "name": "Lorem eiusmod", "description": "ullamco commodo" }, { "_id": "d780cF27Ac65a05A498C84D4", "name": "elit ipsum consequat pariatur", "description": "laboris pariatur in Duis irure" }, { "_id": "4Fa658Be86f2BA39A4dDBAbE", "name": "ad proident officia", "description": "quis aliqua" } ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/Hm7YQYyFWJb/zl" }, { "type": "encryption", "pointer": "/~1/~1/~0/fAui9C/F5bW/~1/~1" }, { "type": "encryption", "pointer": "/~0" } ], "migrationVersion": -32938385 }, "edit": "Duis", "success": false }, { "message": "anim ipsum ut", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "dolore ullamco in", "provenance": "incididunt adipisicing in velit exercitation" }, { "name": "culpa ipsum", "provenance": "est reprehenderit esse magna" }, { "name": "qui consequat voluptate quis pariatur", "provenance": "dolor Lorem aute" } ], "nodeLocation": { "x": 50504962.33774373, "y": 80744238.03356984 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "irure veniam eu enim labore", "provenance": "in" }, { "name": "nostrud dolore est", "provenance": "sed Lorem tempor nostrud" }, { "name": "reprehenderit ut pariatur voluptate consequat", "provenance": "minim eu veniam ullamco" }, { "name": "veniam ea", "provenance": "voluptate" } ], "x": -81629313.1067396, "y": 97660048.78881201 }, "error_handler": { "name": "childJob", "summary": "magna sit", "description": "incididunt enim amet", "app": "consectetur cillum", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/QXvZn,FW+/~0/~1/so/~0/~1/~1/~0/pdc,cFOqR25" }, { "type": "encryption", "pointer": "/~0/~0/wCzhn5g/h3//~1/~0/~0/d5KQQfnDAv/~1/vvD3/CbNu" } ] }, "groups": [ { "name": "adipisicing", "provenance": "aliquip amet voluptate" }, { "name": "amet exercitation", "provenance": "deserunt dolor velit" }, { "name": "aute commodo ut et deserunt", "provenance": "elit in cupidatat" }, { "name": "irure", "provenance": "voluptate adipisicing in" }, { "name": "ut dolor cillum", "provenance": "cupidatat ut commodo officia" } ], "type": "operation", "gridCoordinate": { "x": -66102367.44956643, "y": -74963822.65147257 }, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "voluptate ut tempor ea", "provenance": "tempor" }, { "name": "qui", "provenance": "exercitation velit ex" }, { "name": "velit commodo", "provenance": "dolor aliqua consequat non mollit" } ], "_id": "f5c755dd-ca63-f01f-1c3f-562972bae7a3", "description": "aliquip sit", "preAutomationTime": -19959091.08415535, "sla": -97771986.40029763, "errorHandler": null, "font_size": 12, "created": "2007-08-09T12:59:40.749Z", "created_by": null, "createdVersion": "cillum dolore et", "last_updated": "1956-03-15T04:47:25.415Z", "last_updated_by": null, "lastUpdatedVersion": "est dolor Duis cillum", "tags": [ { "_id": "c5249944f1aCAedD1ddEE5fA", "name": "Lorem Duis", "description": "incididunt aute velit nisi nulla" }, { "_id": "580e15f38aFEE9A09BE76B40", "name": "dolore sunt proident", "description": "incididunt dolore exercitation" }, { "_id": "6AaF6E9FCa9EE0DC6f0FddE9", "name": "sint aliqua ad", "description": "qui aute minim culpa" }, { "_id": "cB5f645fedDA8af4f628e23D", "name": "Ut dolore elit", "description": "incididunt anim" }, { "_id": "8E2d0Ea19ce1fAcAC320a9B2", "name": "aute amet ut", "description": "nostrud ut eiusmod mollit" } ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/z4UgGd/u/~1/dGA" }, { "type": "encryption", "pointer": "/TQpNk/bLPmVTVtoI/N/dC9IqbhL7/feO" } ], "migrationVersion": -69876870 }, "edit": "sint adipisicing ea Lorem ipsum", "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" ] } } } }