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": -87668299.83469263, "y": 71834024.2994242 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 92329590.8759366, "y": 91161349.51016468 }, "error_handler": { "name": "childJob", "summary": "nostrud", "description": "in sit", "app": "et sint aliqua anim in", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/ZX-ajxwI/~0/~0" }, { "type": "encryption", "pointer": "/~0/ub.KmQ61V6+" }, { "type": "encryption", "pointer": "/~1/~0/Mo/ne/nqaD/~0/Lq/xaiGW/IGXn/fkKr//Q/~0" }, { "type": "encryption", "pointer": "/~1/~1/~0/~0/~1/ds.gQqD.A" }, { "type": "encryption", "pointer": "/hedO6g-/CDPAe/NX/~1" } ] }, "groups": [ { "name": "Ut", "provenance": "sed quis fugiat in" }, { "name": "ut ad commodo irure", "provenance": "eu anim mollit elit et" }, { "name": "in voluptate", "provenance": "pariatur aliquip ut tempor" }, { "name": "irure fugiat Lorem", "provenance": "Lorem sit nisi et ut" }, { "name": "aliquip", "provenance": "sit eu" } ], "type": "operation", "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "ipsum velit ullamco enim", "provenance": "veniam" } ], "_id": "cef01c0c-358a-adaa-5278-f6045d68187b", "description": "adipisicing aliquip consequat qui eu", "preAutomationTime": 40320501.301433474, "sla": 20327567.210504323, "errorHandler": null, "font_size": 12, "created": "1998-06-01T04:31:42.615Z", "created_by": { "username": "ut quis", "provenance": "ut incididunt" }, "createdVersion": "deserunt officia esse dolore", "last_updated": "1943-03-01T09:47:55.517Z", "last_updated_by": { "username": "sit laboris cupidatat fugiat qui", "provenance": "nisi sit elit" }, "lastUpdatedVersion": "in cillum do fugiat minim", "tags": [ { "_id": "6d4415aDf0314734CdBc5Ab3", "name": "exercitation occaecat", "description": "ad est do occaecat" }, { "_id": "cF17Ba82F35d137Fcd6BeEcc", "name": "esse culpa sunt", "description": "cillum nostrud ipsum" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/hT1SQJ.LLpL/~0/~1/~0/~0" }, { "type": "encryption", "pointer": "/B8OJvhD+/~1/DyBZ/QD/~0/oLwwjWm/lIWjzew9xG/~0/~0/xkx21r/~0" } ] }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -68471134.7660765, "y": -81476094.18136752 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 72178736.36587897, "y": 84496434.50243735 }, "error_handler": { "name": "childJob", "summary": "laborum pariatur", "description": "nisi irure magna", "app": "Lorem nostrud eiusmod aute occaecat", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/C4gG/vO5Yb4R0c" } ] }, "groups": [ { "name": "labore dolore eu", "provenance": "anim" }, { "name": "deserunt", "provenance": "ad sunt proident" }, { "name": "dolor nisi culpa", "provenance": "veniam nostrud labore magna eiusmod" }, { "name": "pariatur", "provenance": "anim in" } ], "type": "operation", "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "sed", "provenance": "nostrud" }, { "name": "voluptate anim consequat ea", "provenance": "incididunt dolore" }, { "name": "laborum Lorem qui elit adipisicing", "provenance": "enim anim in veniam" } ], "_id": "4bbdcfc5-fd20-9654-6439-964f7c0e4a6a", "description": null, "preAutomationTime": -13883474.14913112, "sla": 93626202.39938271, "errorHandler": null, "font_size": 12, "created": "1994-06-26T18:04:41.464Z", "created_by": null, "createdVersion": "officia ut", "last_updated": "2003-04-15T01:28:27.884Z", "last_updated_by": { "username": "nisi non est labore", "provenance": "occaecat" }, "lastUpdatedVersion": "non nulla", "tags": [ { "_id": "a3b9c96BdcBa6cfbbadD2A26", "name": "ea in et fugiat", "description": "do in" }, { "_id": "FEe193406CBE8f7e55F00ADD", "name": "exercitation mollit do", "description": "proident" }, { "_id": "b2bdfCfdAdD4f0315c8ba538", "name": "aliqua nostrud enim esse laborum", "description": "do laborum non" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/~1/~1/G0/~0/oi/~1/HNqO/~1/~0" } ] }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -99254423.17059541, "y": -50007193.14897144 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 56339230.66180566, "y": -41724376.15162274 }, "error_handler": { "name": "childJob", "summary": "aliquip ut incididunt nulla velit", "description": "sint qui", "app": "veniam", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~0/~0/y/~0" }, { "type": "encryption", "pointer": "/~0/vjuWkiE/~0/XPlq/qs4,D/VDvQVE6/Sr..oY8oSpw/C/qp3xUnjl" }, { "type": "encryption", "pointer": "/HX4beYNAXkG/e3m/~1/~0/B" }, { "type": "encryption", "pointer": "/b6v/DOA/VCDAq6w" }, { "type": "encryption", "pointer": "/~0/~0/~1" } ] }, "groups": [ { "name": "id", "provenance": "ea occaecat" }, { "name": "in qui nulla sed aute", "provenance": "enim reprehenderit" }, { "name": "nisi exercitation in laboris nostrud", "provenance": "in labore dolore Ut" }, { "name": "laboris Ut eu", "provenance": "ad ullamco consectetur et" }, { "name": "cillum do proident aute sunt", "provenance": "sunt ullamco sit ea labore" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "ex ullamco sunt ut Ut", "provenance": "ipsum anim" }, { "name": "in nostrud", "provenance": "nulla eu ipsum eiusmod" } ], "_id": "52444256-448c-d4ab-4650-44b8ab969684", "description": null, "preAutomationTime": -99719389.89276263, "sla": -82755951.15133259, "errorHandler": { "type": "dolore nulla consectetur nostrud mollit", "name": "nulla" }, "font_size": 12, "created": "1978-10-08T08:21:07.412Z", "created_by": null, "createdVersion": "quis reprehenderit", "last_updated": "1996-10-25T23:56:06.831Z", "last_updated_by": null, "lastUpdatedVersion": "et in do", "tags": [ { "_id": "7c4EE42307dC2c35dbFcac4D", "name": "non et esse est sunt", "description": "enim sunt Excepteur" }, { "_id": "7FDC9538B8E37dAB9C9116AC", "name": "culpa", "description": "Excepteur ullamco officia do" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/~1/sLknP/~1/M/lkVa/~0/n/~1/~1/~1/LmsHDBa/~0" }, { "type": "encryption", "pointer": "/~1/~0/~1/~1/~1/~0/daaQuJtU/~1/rOd-G/~1" } ] }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -63441765.35360151, "y": 44069474.67848155 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -97015875.63237925, "y": 49105792.347608626 }, "error_handler": { "name": "childJob", "summary": "ad do irure", "description": "adipisicing consectetur consequat dolor dolore", "app": "aute", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/CO/A.jGP-87Sgt/kLsKk/~0/~1/~0/~0/Bj78" }, { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/~0/dUIn-KjwF/CKYp+YyHshR/vp.msC/MaStwjvF/~1/Oup/cfUi/4U/rmYB7l/f" }, { "type": "encryption", "pointer": "/k2TSGT/~0/~1/~1/f7Q.cHpzgv/dA2Mi/Q1elhW/E4qR20a/pldY" } ] }, "groups": [ { "name": "incididunt", "provenance": "et tempor proident sint" }, { "name": "anim consequat", "provenance": "mollit labore eiusmod cillum esse" }, { "name": "commodo in labore", "provenance": "ut nostrud" } ], "type": "operation", "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "do in non cillum anim", "provenance": "ipsum minim non in laborum" }, { "name": "sed deserunt", "provenance": "voluptate sint id dolor" }, { "name": "qui tempor aliqua laborum consectetur", "provenance": "occaecat irure" } ], "_id": "37537f91-3d6f-373b-dfd0-2f53d509a6fb", "description": "laboris eu elit sed aute", "preAutomationTime": 72633232.26267588, "sla": 19168644.6804868, "errorHandler": { "type": "cillum incididunt labore", "name": "tempor in in" }, "font_size": 12, "created": "2014-10-16T23:39:10.841Z", "created_by": null, "createdVersion": "quis cillum culpa", "last_updated": "2008-08-30T12:22:03.614Z", "last_updated_by": null, "lastUpdatedVersion": "Duis minim veniam qui velit", "tags": [ { "_id": "c3e8FA0ef47336A4ed14f9CE", "name": "fugiat ea pariatur Excepteur exercitation", "description": "reprehenderit et eiusmod" }, { "_id": "9de7a877479A2Be3B9Ff59E7", "name": "laborum", "description": "ipsum velit exercitation" }, { "_id": "99D46BD0fB68ba372Ee4200d", "name": "do", "description": "anim" }, { "_id": "FA013A6dF3E21C5C1aa1eBaA", "name": "culpa veniam irure quis incididunt", "description": "aute qui" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/gNdjCF/~0/Ts3m9Yd6j/QNHeXV/Q--uIItL/Rtwsk3oG/nX/~1/~0/d" } ] }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 12300213.015031636, "y": 26860939.468582764 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -96664281.88696297, "y": -25568145.534699485 }, "error_handler": { "name": "childJob", "summary": "elit dolor", "description": "aliquip et", "app": "commodo fugiat in", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/URIL/~1/~1/IBwxJ9b/qyNjp9CVN" }, { "type": "encryption", "pointer": "/OC5SJVWU/~0/~1/G5klb8dhDu/K3H/F" } ] }, "groups": [ { "name": "dolor dolor qui", "provenance": "dolore in non incididunt" }, { "name": "sit et deserunt", "provenance": "do cupidatat sed commodo non" }, { "name": "anim dolor id nostrud ea", "provenance": "sed tempor" }, { "name": "eiusmod sint culpa veniam", "provenance": "elit Duis commodo" }, { "name": "fugiat sit", "provenance": "id mollit in" } ], "type": "operation", "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "Duis dolor commodo", "provenance": "nostrud commodo tempor" }, { "name": "labore pariatur officia exercitation culpa", "provenance": "ut ea dolore nisi elit" } ], "_id": "2ae00e01-c3cf-e206-a259-2373fb606e63", "description": "consequat nisi", "preAutomationTime": 73737522.28952691, "sla": -48810399.76478818, "errorHandler": null, "font_size": 12, "created": "1973-05-28T19:52:04.083Z", "created_by": null, "createdVersion": "exercitation ea fugiat sed", "last_updated": "1968-08-23T05:48:37.66Z", "last_updated_by": null, "lastUpdatedVersion": "mollit tempor Lorem", "tags": [ { "_id": "70A5c5bb5dCEF9fFea48DAd1", "name": "culpa", "description": "aute quis culpa" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/~1/r-k8eyCR/~1/ARkD/~0/fLkRd" }, { "type": "encryption", "pointer": "/EPy+DRdOvd/~0/VVAsAAn5/~0/~0/~0/PKTfFKm/UzvoE.8" } ] } ] }
{ "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": "cillum", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 29482236.00611697, "y": -50771602.040182985 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 89759737.62050465, "y": -97618428.30353573 }, "error_handler": { "name": "childJob", "summary": "sint pariatur", "description": "ut dolore reprehenderit eiusmod ipsum", "app": "eu ipsum adipisicing", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/pZj4CDWjQ/Ggy+xdnY2E/~1/BNVrQ/~0/gdHiWSrt/g/n2i3" } ] }, "groups": [ { "name": "tempor velit esse", "provenance": "ipsum minim aute nisi Excepteur" }, { "name": "aute esse et veniam", "provenance": "eiusmod" } ], "type": "operation", "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "culpa est", "provenance": "deserunt Excepteur labore" } ], "_id": "78111c6b-b583-0e48-9909-42b33ab46eb4", "description": "irure pariatur reprehenderit", "preAutomationTime": -8757583.063132524, "sla": 63087010.33226326, "errorHandler": { "type": "id elit sunt occaecat dolor", "name": "ea aliqua" }, "font_size": 12, "created": "2015-03-23T23:29:11.496Z", "created_by": null, "createdVersion": "elit deserunt magna esse proident", "last_updated": "1998-01-09T04:48:40.367Z", "last_updated_by": null, "lastUpdatedVersion": "ex ullamco velit irure", "tags": [ { "_id": "C38ABF5859651AB2D10b3d65", "name": "tempor dolore Ut proident", "description": "laborum dolore" }, { "_id": "70eB5AA525a74c384FD08FaA", "name": "pariatur", "description": "ullamco eiusmod Ut reprehenderit" }, { "_id": "51c55E3B58cE8Ab7dA6e8fAd", "name": "sed aliquip non incididunt", "description": "ex minim ad Lorem" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/~1/Gigr/PI,MKC/qrzUS/~1/~0" }, { "type": "encryption", "pointer": "/aUJ" }, { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/~1/~0/~1/~0/~0/~1/~1/~1/tKEQInp5" } ] }, "edit": "sit consectetur", "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" ] } } } }