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": "aliquip laborum ut incididunt", "provenance": "aliqua elit voluptate anim" }, { "name": "culpa", "provenance": "nisi" } ], "gridCoordinate": { "x": -55084849.85306366, "y": -89527850.30160029 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "cupidatat sit deserunt laborum proident", "provenance": "dolor ea deserunt ullamco" }, { "name": "labore in pariatur", "provenance": "esse dolor" }, { "name": "veniam ut qui Excepteur", "provenance": "ex cillum non adipisicing magna" }, { "name": "Excepteur ut pariatur incididunt", "provenance": "sint aliqua ex sed" }, { "name": "magna sint ipsum", "provenance": "cupidatat qui" } ], "gridCoordinate": { "x": -75459560.74256459, "y": -28345441.39936605 } }, "error_handler": { "name": "childJob", "summary": "enim in qui", "description": "esse id", "app": "reprehenderit labore", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/TH0JIY4z6/~1/jPTfGaAp/B/~0/~0" } ] }, "groups": [ { "name": "voluptate do ipsum nulla", "provenance": "reprehenderit pariatur consequat" }, { "name": "officia ut proident esse", "provenance": "Lorem ad ipsum" } ], "type": "operation", "nodeLocation": { "x": 78218152.90059665, "y": -35551134.57264252 }, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "non eiusmod eu Ut", "provenance": "magna enim officia" } ], "_id": "2a743f35-7e4c-26fc-1b25-720165b4e997", "description": null, "preAutomationTime": -14904924.294119626, "sla": 28722999.130139694, "errorHandler": { "type": "incididunt ullamco elit", "name": "in eu proident" }, "font_size": 12, "created": "2018-01-04T04:46:32.13Z", "created_by": null, "createdVersion": "Excepteur irure", "last_updated": "2000-04-13T09:06:54.98Z", "last_updated_by": null, "lastUpdatedVersion": "cupidatat reprehenderit laboris et", "tags": [ { "_id": "2DdCD9AA7cF0ad3a9A764929", "name": "ad Lorem sed ex quis", "description": "eu" }, { "_id": "b5b29EB3BBbe73a9DeAB7bDf", "name": "culpa in occaecat elit", "description": "do nisi Ut in" }, { "_id": "53EF0D0Bd2bEC55df9B8c82C", "name": "reprehenderit", "description": "tempor est" }, { "_id": "4DdbDfBB67fFbb34eCf6eAEc", "name": "officia proident aliquip", "description": "nostrud nulla" }, { "_id": "Fa2a7dAFE4053aC2320206ca", "name": "irure", "description": "Lorem ea velit qui aute" } ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/Prj1k/~0/VPDsW+Xn/RMfyF9Yj2/~0/S/~0/aCa6" }, { "type": "encryption", "pointer": "/rjRy0Ev4S/~1/~0/~1" } ], "migrationVersion": -49296402 } ] }
{ "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": "aliqua cillum ipsum veniam non", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "dolor consequat dolore", "provenance": "ut" }, { "name": "reprehenderit ad sed", "provenance": "cillum aute laborum" }, { "name": "cillum eu pariatur Ut", "provenance": "exercitation voluptate amet minim elit" } ], "gridCoordinate": { "x": -32735276.00142266, "y": 41345702.07156631 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "elit sunt et nostrud incididunt", "provenance": "eiusmod et veniam" }, { "name": "anim dolore mollit", "provenance": "Excepteur sunt" }, { "name": "eiusmod sint cillum ea sed", "provenance": "ullamco consequat commodo" } ], "nodeLocation": { "x": -84556529.01831567, "y": 89726623.9198784 } }, "error_handler": { "name": "childJob", "summary": "laborum ipsum in cillum officia", "description": "cupidatat", "app": "aliquip Duis dolore", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~1/~0/~0/~0/~0/~0/~1/~0" } ] }, "groups": [ { "name": "qui minim occaecat do", "provenance": "veniam" }, { "name": "nulla ut", "provenance": "ut exercitation labore est irure" }, { "name": "cupidatat proident aute deserunt eiusmod", "provenance": "pariatur officia" } ], "type": "operation", "x": -28016299.552296832, "y": -50010343.36822752, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "velit ipsum", "provenance": "laborum velit officia" }, { "name": "aliqua sed amet", "provenance": "ut et" }, { "name": "velit quis eu proident dolore", "provenance": "laboris tempor id reprehenderit" } ], "_id": "7f4642b3-41d0-a8dc-9141-05d90d911c2d", "description": "ea nisi laboris", "preAutomationTime": -31591235.11848682, "sla": -31641802.455796197, "errorHandler": { "type": "est fugiat incididunt non commodo", "name": "Duis adipisicing irure" }, "font_size": 12, "created": "1954-01-30T01:55:28.155Z", "created_by": null, "createdVersion": "amet", "last_updated": "2008-02-02T23:11:04.848Z", "last_updated_by": { "username": "ad", "provenance": "sed minim cupidatat" }, "lastUpdatedVersion": "in culpa", "tags": [ { "_id": "5F3B01B01Fa3ADdaE4198e10", "name": "do quis sed laborum", "description": "consequat ea nisi et ullamco" }, { "_id": "81ecD1e87D2f0f5e2FBFc9cc", "name": "quis magna sunt aute", "description": "id amet enim" }, { "_id": "cE56CAAacf4fF033EfDcFB47", "name": "cupidatat", "description": "sed amet" }, { "_id": "Fc832E5CAB87DdF9D49Bac60", "name": "ea", "description": "tempor" } ], "canvasVersion": 2, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/d5RNOYD" }, { "type": "encryption", "pointer": "/~1" }, { "type": "encryption", "pointer": "/isYFGtW/~1" }, { "type": "encryption", "pointer": "/~1/~1/~0/NrJxCoVg3+/lU39a1,k/TQkCQgA2j/BsY/~1/m-vR5mb8/~0" } ], "migrationVersion": -6195950 }, "edit": null, "success": true }, { "message": "ut veniam incididunt qui", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "dolore sed ea eiusmod officia", "provenance": "Duis laboris exercitation ut Lorem" }, { "name": "culpa mollit", "provenance": "aliquip Excepteur ut" }, { "name": "anim pariatur fugiat", "provenance": "sit aliqua ex incididunt" } ], "gridCoordinate": { "x": 68820662.10495007, "y": -71212600.240698 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "occaecat adipisicing ipsum anim", "provenance": "veniam elit fugiat eu" }, { "name": "fugiat Lorem", "provenance": "velit anim minim nisi" }, { "name": "officia pariatur", "provenance": "anim" } ], "nodeLocation": { "x": -45316531.603158385, "y": 366517.8151860684 } }, "error_handler": { "name": "childJob", "summary": "do commodo", "description": "dolore", "app": "anim sed adipisicing", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/J-gc+knA9+K/~0/~0/b,7n/~1/TqQ+uO/C3/v7GsLhQS/RNwZ/~1/~0" } ] }, "groups": [ { "name": "qui", "provenance": "occaecat ut adipisicing elit Excepteur" }, { "name": "Excepteur aute reprehenderit cupidatat elit", "provenance": "reprehenderit" }, { "name": "ad qui cillum eiusmod", "provenance": "nisi aute commodo" }, { "name": "tempor sint ipsum Duis incididunt", "provenance": "sit pariatur" }, { "name": "minim officia Lorem", "provenance": "officia anim sint dolore cupidatat" } ], "type": "operation", "x": -58719348.29419479, "y": 24432055.972020894, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "sint", "provenance": "dolor sed deserunt nisi dolor" } ], "_id": "b201d7b4-9dd7-1933-6d3b-7739e1cd6f07", "description": null, "preAutomationTime": 94570295.59630841, "sla": 34586.662961140275, "errorHandler": null, "font_size": 12, "created": "1947-03-10T20:02:35.917Z", "created_by": null, "createdVersion": "nostrud reprehenderit fugiat", "last_updated": "2019-10-26T16:31:59.226Z", "last_updated_by": null, "lastUpdatedVersion": "aliqua anim Ut adipisicing mollit", "tags": [ { "_id": "C90a9f57EB8da4bedE4b9Cb1", "name": "ut amet sint", "description": "commodo magna ex" } ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/~1/~1/fvqZAQJBOMB/~1/bONT9//Yl,QOeS8Uc3/~0" } ], "migrationVersion": -27624340 }, "created": null, "edit": "Lorem dolore ad", "success": true }, { "message": "ut ipsum reprehenderit", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "cupidatat Excepteur id quis sit", "provenance": "amet sed incididunt qui labore" }, { "name": "pariatur in dolor", "provenance": "est" }, { "name": "est ipsum fugiat", "provenance": "nostrud Excepteur commodo" } ], "gridCoordinate": { "x": 65505519.484681726, "y": -35406904.11520733 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "labore eiusmod incididunt sed sit", "provenance": "non esse nulla sed consectetur" }, { "name": "ut quis commodo", "provenance": "Duis cillum eu dolor" } ], "nodeLocation": { "x": -28951197.67987162, "y": 67997983.36760741 } }, "error_handler": { "name": "childJob", "summary": "cillum quis", "description": "veniam eiusmod est minim", "app": "dolor", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/G/~1/u/j/~1/~1/~0/~1/NT-bK.WM/~1/~0/~0" }, { "type": "encryption", "pointer": "/iaErJg/iTN,bRHMAv" }, { "type": "encryption", "pointer": "/~0/P9msYm95i/~0/IwfSLeS/CC6N/MuMit+NL/UtU0v" }, { "type": "encryption", "pointer": "/D/Zvmw9.j9NvH/~1/~1/Co+/oM3" } ] }, "groups": [ { "name": "adipisicing id nulla esse", "provenance": "aliqua" }, { "name": "consectetur dolore elit", "provenance": "nulla ut fugiat" } ], "type": "operation", "x": -81196918.6806147, "y": -71944898.40522258, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "non pariatur sit quis", "provenance": "sed eu" }, { "name": "incididunt anim id ut magna", "provenance": "adipisicing sint" } ], "_id": "1d1e4ac4-86fe-3ac4-abad-7539124ca769", "description": null, "preAutomationTime": 82085951.82420954, "sla": -7329861.730721369, "errorHandler": { "type": "quis esse", "name": "id ut" }, "font_size": 12, "created": "2012-03-12T22:58:48.844Z", "created_by": { "username": "velit ut Lorem", "provenance": "aute pariatur ad magna esse" }, "createdVersion": "ipsum culpa sunt", "last_updated": "1960-02-28T20:07:40.239Z", "last_updated_by": null, "lastUpdatedVersion": "qui Lorem", "tags": [ { "_id": "D7dD304dC2f0AfaF93cEb55b", "name": "ad eiusmod commodo enim dolore", "description": "Duis commodo" }, { "_id": "dC5e5D4CA1a6719Bca9f01c9", "name": "adipisicing", "description": "voluptate pariatur qui tempor" } ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/L5/znhkf/Sj0X8J/HLL/pIa/QR/a2qmHGe" } ], "migrationVersion": 75812560 }, "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.", "oneOf": [ { "type": "string" }, { "type": "null" } ] } }, "required": [ "status", "message", "original", "created", "edit" ] } } } }