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": 8611812.688409999, "y": -66105535.19926277 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -36899423.10829912, "y": -76650168.82693982 }, "error_handler": { "name": "childJob", "summary": "adipisicing ullamco eiusmod in", "description": "dolore ipsum", "app": "velit", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/SsqToyr2KQa/~0/~0/KJmuAG1+RDQ/zb/Fai+t8Mk/~1/FArTWpfQm9u/~0" } ] }, "groups": [ { "name": "deserunt", "provenance": "in ut adipisicing nisi officia" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "exercitation laboris in", "provenance": "nulla ad voluptate commodo" } ], "_id": "224dc98d-d52e-62a8-83a7-0edefd90a524", "description": "ut Excepteur", "preAutomationTime": -64532096.375725076, "sla": -93609650.57952254, "errorHandler": null, "font_size": 12, "created": "2015-12-14T22:45:05.514Z", "created_by": { "username": "aute esse cillum", "provenance": "nostrud et nulla" }, "createdVersion": "aliqua irure non cillum", "last_updated": "1973-02-07T10:57:23.015Z", "last_updated_by": null, "lastUpdatedVersion": "ea", "tags": [ { "_id": "bCa48C1Cc51cC955471a4AB5", "name": "officia Duis elit mollit do", "description": "eiusmod sit anim mollit" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/HlrsfjP3oM/~1/~0" }, { "type": "encryption", "pointer": "/pZwWtTUM" }, { "type": "encryption", "pointer": "/LUFpdT/~0/a/~1/zAQJ/~1/SGSSOmgXp/wGu/~1/~1" } ], "migrationVersion": 29012369 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -19088657.308780774, "y": -77545844.52101368 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -13137316.342653185, "y": -97567301.20102884 }, "error_handler": { "name": "childJob", "summary": "id pariatur ipsum voluptate esse", "description": "consequat minim reprehenderit fugiat", "app": "in aliqua deserunt ea consequat", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/Kg4/~0/cpN6CQDI4/ADJQg" }, { "type": "encryption", "pointer": "/guFlE/~1/~1/HC7JfCE0xc+/IHI.mQ9vH7y/igg1qsH--+/p/~1/H/pdWbyhx7" } ] }, "groups": [ { "name": "deserunt fugiat ipsum mollit nisi", "provenance": "culpa aliquip officia magna" }, { "name": "sit", "provenance": "in voluptate consectetur eiusmod anim" }, { "name": "do", "provenance": "sint aliquip elit" }, { "name": "pariatur dolore", "provenance": "et cillum" } ], "type": "operation", "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "voluptate tempor sed velit", "provenance": "amet consequat in mollit minim" }, { "name": "qui", "provenance": "pariatur" }, { "name": "ut in pariatur", "provenance": "veniam laborum" } ], "_id": "b921e25b-8574-3f2d-e3ea-7e2e1eaffd52", "description": null, "preAutomationTime": 67637433.7360858, "sla": -9854483.248982012, "errorHandler": { "type": "in nisi magna Excepteur", "name": "voluptate velit sunt" }, "font_size": 12, "created": "2013-01-13T00:32:31.397Z", "created_by": null, "createdVersion": "tempor adipisicing labore deserunt sint", "last_updated": "1951-07-20T06:13:23.77Z", "last_updated_by": { "username": "laboris consequat voluptate ad", "provenance": "magna do" }, "lastUpdatedVersion": "ut sit reprehenderit", "tags": [ { "_id": "721Eb5eF7C976fEEacd17bf6", "name": "dolore est qui voluptate nisi", "description": "consequat eu" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/dtQVO/~1/OC8xoP5V/BO/~1/~0/chNC14IeW,w/HcT6G/~0" }, { "type": "encryption", "pointer": "/~1/~0/tvg5MVoK" }, { "type": "encryption", "pointer": "/BD-++UylD/PSP0-oW34C/~0/~0/~0/~0/H4/~0/~0" }, { "type": "encryption", "pointer": "/Fh1+6RW/qfeBB6DL/~0/~1/appBRsE/F/O" }, { "type": "encryption", "pointer": "/WWCRUqy5/~0/R8Y/~0/DXZG47UyZ/ie/~0/idsfub" } ], "migrationVersion": 40079556 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 27139332.784431145, "y": 3456873.184934795 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -21660571.87001562, "y": 16404281.271822408 }, "error_handler": { "name": "childJob", "summary": "enim cillum incididunt in", "description": "Ut", "app": "labore irure", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/KSE6iYS/~1/~1/~0/~1" } ] }, "groups": [ { "name": "officia reprehenderit ut", "provenance": "esse exercitation et" } ], "type": "operation", "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "aute proident", "provenance": "Lorem laboris" }, { "name": "dolor dolore aliqua", "provenance": "anim" }, { "name": "consequat exercitation et cupidatat", "provenance": "nisi ex non laborum" } ], "_id": "419fd338-6156-aa29-e0a1-7e2ca107d59e", "description": null, "preAutomationTime": 79526882.96361595, "sla": 77777838.32162234, "errorHandler": null, "font_size": 12, "created": "1970-01-02T01:49:06.944Z", "created_by": { "username": "ex dolore proident magna", "provenance": "voluptate fugiat minim consectetur" }, "createdVersion": "ea sunt exercitation", "last_updated": "1992-03-27T21:27:19.428Z", "last_updated_by": { "username": "nostrud quis reprehenderit", "provenance": "in quis ut sunt nostrud" }, "lastUpdatedVersion": "nulla non in anim id", "tags": [ { "_id": "9bCA3DfF56F48E14b6D0EB4c", "name": "sed eiusmod", "description": "non id" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/a615amL/~1/~1/~0/~1/~1" } ], "migrationVersion": 20473490 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -15095606.363181964, "y": -96908040.21790154 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 46164775.178163886, "y": 79505847.74371809 }, "error_handler": { "name": "childJob", "summary": "in mollit eu ut", "description": "in aliqua tempor voluptate", "app": "nisi", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/GwOh/8lVWS/~1/zcPhjV5arYl/JYzga4/niWbN7Vg/VDo/bHgg69fy/Txu1C/Q2,/inst2/btNKkojit/~1" }, { "type": "encryption", "pointer": "/~0/rg" }, { "type": "encryption", "pointer": "/f83/HivJGk.1/PlemS/na1qzzQaFTs/~0/JzRu/~0/~1" }, { "type": "encryption", "pointer": "/D+6l//EfN7ta/~1/~0/~1" }, { "type": "encryption", "pointer": "/EoAp1PPH362/Hx5tv/X8TLX" } ] }, "groups": [ { "name": "ad ipsum officia", "provenance": "amet Ut" }, { "name": "esse dolor sunt", "provenance": "pariatur ex" } ], "type": "operation", "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "officia", "provenance": "qui est aliquip" }, { "name": "Lorem ea commodo magna", "provenance": "elit" }, { "name": "veniam eiusmod laborum laboris", "provenance": "consectetur commodo sed reprehenderit elit" }, { "name": "tempor fugiat laborum", "provenance": "velit sunt" } ], "_id": "ce214b0a-cfe5-9f34-ef2e-7507a2c61d8e", "description": "nostrud pariatur", "preAutomationTime": 82121503.69132408, "sla": 75608190.44855896, "errorHandler": null, "font_size": 12, "created": "1950-11-30T06:37:26.624Z", "created_by": { "username": "occaecat", "provenance": "incididunt ut tempor deserunt magna" }, "createdVersion": "sunt mollit", "last_updated": "1960-03-09T11:38:11.006Z", "last_updated_by": null, "lastUpdatedVersion": "eiusmod ut", "tags": [ { "_id": "85EB3F59EC34c2c4DBf08f93", "name": "ad officia culpa", "description": "deserunt" }, { "_id": "3C962C931d373152591D64B7", "name": "sunt in", "description": "do cillum" }, { "_id": "eFDe3Dd2c3F79cfa15E1D869", "name": "Duis", "description": "proident sunt labore" }, { "_id": "CAddF78Ac46129Be6F6Ef9EE", "name": "ex aute", "description": "pariatur" }, { "_id": "cBaD47c2A1c19D839476Ecb5", "name": "dolor dolore", "description": "dolor in magna" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/~1/V-4s/VPpp" }, { "type": "encryption", "pointer": "/~0/~0/HkQda/~1/SJs.CqcW/~0/D.6phDo" }, { "type": "encryption", "pointer": "/~1/~1/U/~0/oRFWYL/N9ETEs" } ], "migrationVersion": 82737878 } ] }
{ "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": "ex esse consequat ad Ut", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 67252871.39758661, "y": 18713912.526224077 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 64481401.07688424, "y": 45950053.20474264 }, "error_handler": { "name": "childJob", "summary": "mollit", "description": "veniam ex", "app": "fugiat ullamco", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/m7x7Fxgx/jQA/~0/~0/~1/Y22EeuaKwMn/D4647/S8B1ZfcbkY" }, { "type": "encryption", "pointer": "/wivXSYHixKY/~1/SRWBm/Txoc/~0/~0/p3WV9DrvoXe/cIlw-ze3z/~0/pS7.OFozA6R/~0" }, { "type": "encryption", "pointer": "/JE/~0/~0/wM" }, { "type": "encryption", "pointer": "/XX+y8G/jKrq/Rr/Bv14VX,/~1/bDfzTm/~1/txnqblgK" }, { "type": "encryption", "pointer": "/~0/~0/~1/a0YoSI6D4Xz/l/hs-d3+NUVdI/~0" } ] }, "groups": [ { "name": "ut consequat proident elit ullamco", "provenance": "laborum aliquip consequat culpa" }, { "name": "aliqua", "provenance": "laborum exercitation labore" } ], "type": "operation", "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "Excepteur", "provenance": "officia dolor tempor" }, { "name": "labore Excepteur", "provenance": "sunt amet voluptate" }, { "name": "sint do occaecat veniam", "provenance": "do eiusmod eu" }, { "name": "ipsum veniam aliqua sint laboris", "provenance": "officia aliquip exercitation magna tempor" }, { "name": "qui dolor dolor reprehenderit ex", "provenance": "sed tempor" } ], "_id": "6a3eaf42-10cf-89d2-6fa6-83e548b16c7f", "description": null, "preAutomationTime": 4881973.006971389, "sla": 98443229.27744034, "errorHandler": { "type": "adipisicing non sit fugiat dolor", "name": "reprehenderit" }, "font_size": 12, "created": "1992-06-30T14:03:56.087Z", "created_by": null, "createdVersion": "nostrud mollit", "last_updated": "1978-09-30T07:51:34.623Z", "last_updated_by": { "username": "et", "provenance": "dolor in ullamco magna non" }, "lastUpdatedVersion": "ut cillum", "tags": [ { "_id": "6DB6BddD8Fd3C1Ed60aFa36b", "name": "incididunt ullamco tempor", "description": "ex nostrud culpa magna" }, { "_id": "B77d29b4D64D3F2a5A5C43c1", "name": "ut", "description": "occaecat tempor" }, { "_id": "17eBBF9013eAb9EdfF321515", "name": "nulla sed", "description": "laboris cillum ea" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/Uq/Ai--XQ2RryO/~1/dpEI/~0/~0/OGEHnGOVTN/UYz25OhOo/~1/~1" }, { "type": "encryption", "pointer": "/~1/~1/xYEe0F/k,8m" } ], "migrationVersion": -83188424 }, "created": null, "edit": "ad", "success": true }, { "message": "enim ut magna nostrud eiusmod", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -36738974.59574871, "y": 57942724.82264683 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -16020911.516734809, "y": 40647237.63324463 }, "error_handler": { "name": "childJob", "summary": "Ut et ullamco in", "description": "qui pariatur id ea", "app": "Duis esse commodo eiusmod ut", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~1/~0/xyf6" } ] }, "groups": [ { "name": "magna fugiat esse sint sit", "provenance": "deserunt in do ipsum ea" }, { "name": "non minim adipisicing", "provenance": "sint ipsum" }, { "name": "laboris Duis", "provenance": "laborum fugiat esse occaecat" }, { "name": "ea dolore Lorem officia nostrud", "provenance": "tempor ex irure" } ], "type": "operation", "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "quis minim esse est deserunt", "provenance": "dolore aliqua consectetur qui esse" }, { "name": "labore dolor irure anim", "provenance": "ipsum irure nostrud" }, { "name": "commodo aliquip", "provenance": "do" }, { "name": "proident in ex exercitation", "provenance": "esse" }, { "name": "officia", "provenance": "minim cillum officia dolore Lorem" } ], "_id": "8629889d-5ba4-eae4-5744-703296cd25b6", "description": null, "preAutomationTime": 75839537.46066189, "sla": 31280039.546778142, "errorHandler": { "type": "culpa Lorem in", "name": "in" }, "font_size": 12, "created": "1964-03-14T23:22:48.707Z", "created_by": null, "createdVersion": "proident occaecat", "last_updated": "1964-04-30T06:42:17.531Z", "last_updated_by": null, "lastUpdatedVersion": "nisi et consequat", "tags": [ { "_id": "cEe2fCFfFfaF9C9804B7fcEC", "name": "sit dolore qui amet", "description": "nulla" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/J4/fxcdQ/~0/~0/~1" }, { "type": "encryption", "pointer": "/~0/~1/~1/~0/~1/z-YwA-hKA5/~1" }, { "type": "encryption", "pointer": "/at/ztbKGAKWQ/~1/~0" } ], "migrationVersion": -85816892 }, "edit": null, "success": false }, { "message": "labore dolore tempor proident reprehenderit", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 81030430.63592848, "y": 85201685.74445793 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 85079912.58976126, "y": -21418423.10451114 }, "error_handler": { "name": "childJob", "summary": "ut ullamco culpa", "description": "nostrud ad tempor in commodo", "app": "reprehenderit", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/gWe53UFS" }, { "type": "encryption", "pointer": "/~0/sMA5+GvQT/cEOAtid//~1/~1/FII61./~1/PE/~0/~1" }, { "type": "encryption", "pointer": "/~1/KybvRt69TlJ/~0/Hm/~0/~0/~0/VERyVm7WfN/~1" } ] }, "groups": [ { "name": "sint nulla aliqua nisi reprehenderit", "provenance": "labore culpa" } ], "type": "operation", "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "in nostrud", "provenance": "eiusmod amet aliqua" }, { "name": "ipsum quis sunt reprehenderit", "provenance": "Excepteur est" }, { "name": "Lorem in minim culpa", "provenance": "reprehenderit ut" }, { "name": "dolor Duis eu commodo ut", "provenance": "ea officia ut" } ], "_id": "c53a6769-e727-26ba-41fd-5242bc76ba03", "description": "quis cupidatat", "preAutomationTime": 57781563.909611344, "sla": 57439200.625224054, "errorHandler": null, "font_size": 12, "created": "1993-06-15T19:21:43.674Z", "created_by": null, "createdVersion": "dolore nulla", "last_updated": "2022-05-31T17:08:32.778Z", "last_updated_by": { "username": "Duis dolor", "provenance": "dolor" }, "lastUpdatedVersion": "irure Excepteur est esse dolore", "tags": [ { "_id": "Bbc3fCfd2d8D5Ccc6379BEb2", "name": "ut ea aliqua officia", "description": "in dolore reprehenderit" }, { "_id": "411dAfAC0064dD77b9C2d1e9", "name": "deserunt enim sunt velit", "description": "aliquip sed amet" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/FGB44I2ctVL" }, { "type": "encryption", "pointer": "/py1-iU" }, { "type": "encryption", "pointer": "/UwoYsewA6Uv/~0/HvxafJyX7/sEkVpU/~1/~0/m2tB4,5/lGWJUac0s8" }, { "type": "encryption", "pointer": "/SU9ppJ" }, { "type": "encryption", "pointer": "/oEo/y/CwzR/~0" } ], "migrationVersion": 81058731 }, "edit": "cupidatat ad", "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" ] } } } }