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": "occaecat", "provenance": "ut aliquip Ut minim" } ], "nodeLocation": { "x": 31121921.304087862, "y": -6039872.64043577 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "elit", "provenance": "anim" }, { "name": "ad eiusmod incididunt enim", "provenance": "dolor" }, { "name": "tempor minim", "provenance": "est officia deserunt" }, { "name": "adipisicing incididunt consequat exercitation ad", "provenance": "labore consequat proident Duis nostrud" }, { "name": "ex id dolor Ut commodo", "provenance": "consectetur laborum sed sunt" } ], "gridCoordinate": { "x": 96266324.50536436, "y": -89265441.87602934 } }, "error_handler": { "name": "childJob", "summary": "in", "description": "commodo", "app": "est ex", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/XZev/~1" }, { "type": "encryption", "pointer": "/~0/~0/~0/Sl1aOL2q5g/MqKrlBHjg/~0/~1/~1/~1" }, { "type": "encryption", "pointer": "/ekwB2HLC/~1/~0/R+/Q/x1bPZeDl8Hs/TBoITgA663M/tvfky5.0wqh/~1" }, { "type": "encryption", "pointer": "/~0/~1/~0/sVgBTGplt/~1/wKaRn4/iFSm-jO445" } ] }, "groups": [ { "name": "officia pariatur ex", "provenance": "sint" }, { "name": "ea consequat pariatur", "provenance": "nulla ipsum Duis exercitation commodo" }, { "name": "ut", "provenance": "do cupidatat" }, { "name": "dolore ea ullamco", "provenance": "consectetur sed" } ], "type": "operation", "gridCoordinate": { "x": 20402741.08454536, "y": 43454832.9156895 }, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "deserunt sint qui est", "provenance": "quis eiusmod Lorem esse" }, { "name": "pariatur dolore", "provenance": "magna labore Duis" } ], "_id": "b53611ef-dee6-d8d7-1c8f-8b45811db469", "description": "minim sint", "preAutomationTime": -83172022.74327853, "sla": -52859366.721028686, "errorHandler": { "type": "eiusmod", "name": "proident in eiusmod Lorem" }, "font_size": 12, "created": "2001-12-30T12:01:32.46Z", "created_by": null, "createdVersion": "ea nostrud dolor ad", "last_updated": "1952-09-10T00:39:57.703Z", "last_updated_by": { "username": "minim amet ex magna et", "provenance": "veniam in" }, "lastUpdatedVersion": "laborum nulla occaecat amet", "tags": [ { "_id": "DF4726CfD472DD2fFeD9BFDd", "name": "dolor in ipsum", "description": "aliquip" }, { "_id": "c68ebAa5cbC84BF41c64B2C6", "name": "consequat tempor magna", "description": "reprehenderit voluptate magna proident ad" }, { "_id": "2dFBccC89ED6BBabcCC80d0b", "name": "reprehenderit sint laborum", "description": "dolor non officia magna reprehenderit" } ], "canvasVersion": 2, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/mti-TBeA/AsRvye/~0" }, { "type": "encryption", "pointer": "/~1/Eo/~1/~1/~1" } ], "migrationVersion": 7626044 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "proident dolore commodo dolor eiusmod", "provenance": "ea nisi et minim aliqua" } ], "nodeLocation": { "x": -50964885.529194824, "y": -68264073.94934973 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "sit", "provenance": "nulla aliqua sint incididunt" }, { "name": "Lorem sed ipsum ullamco", "provenance": "dolore est nulla" }, { "name": "enim dolor pariatur minim", "provenance": "esse aute cillum" }, { "name": "proident irure id labore sunt", "provenance": "commodo dolore ut magna adipisicing" } ], "gridCoordinate": { "x": 31171426.984869346, "y": 79825080.4629426 } }, "error_handler": { "name": "childJob", "summary": "magna", "description": "officia aliquip eu anim magna", "app": "velit occaecat dolore deserunt", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/pt0fnNLb4n/~0/~0/~0/jt-GV/~0/kC5V9/Gi,LC" }, { "type": "encryption", "pointer": "/~0/~0/KfZYSqT9/~1/~0/xoU2+Qh/~0/~1/~0" }, { "type": "encryption", "pointer": "/~0/e/GoxS/~0/t.sFyv.cRo/b08dnTBxHLh/G/N2Xil,na" }, { "type": "encryption", "pointer": "/b/~1/~0/UmSDb84TyQ/~1/O-axIe40/Bpf9/~1/~1/b/jy+pJZ" }, { "type": "encryption", "pointer": "/~1/Eke/LSJbV/~0" } ] }, "groups": [ { "name": "non Lorem esse", "provenance": "aute deserunt velit fugiat" }, { "name": "et dolor dolore veniam", "provenance": "non est laborum" }, { "name": "incididunt", "provenance": "Lorem" } ], "type": "operation", "gridCoordinate": { "x": 67980184.41911244, "y": 70435295.1146836 }, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "aute anim", "provenance": "do ea culpa esse nostrud" }, { "name": "ea exercitation in", "provenance": "sed sint cillum est" }, { "name": "adipisicing", "provenance": "mollit eu id magna" } ], "_id": "dfccba65-5684-37ad-ae11-dd34af61ed48", "description": null, "preAutomationTime": 42984955.030044615, "sla": 66599053.07808906, "errorHandler": null, "font_size": 12, "created": "1948-04-10T17:32:45.612Z", "created_by": { "username": "non pariatur", "provenance": "deserunt proident" }, "createdVersion": "reprehenderit", "last_updated": "1980-02-25T03:01:21.931Z", "last_updated_by": null, "lastUpdatedVersion": "ut nostrud in", "tags": [ { "_id": "5ce92DbCc5eB5C55c4CC2cAe", "name": "id commodo adipisicing enim", "description": "Duis aliqua" }, { "_id": "1CF7cf183dB75AEab0EdF9b9", "name": "non in do in", "description": "culpa mollit" }, { "_id": "176EdC51C8dEFaef1C7fFADb", "name": "ut ut incididunt Ut voluptate", "description": "ut officia non" } ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/~0/WZ06z/wP3BnowIKIj/~0/pNe9iy6Vue" }, { "type": "encryption", "pointer": "/~1" }, { "type": "encryption", "pointer": "/fYU/Q4S/~1/~0/~0/CNOprX/pc51zQ+" }, { "type": "encryption", "pointer": "/ttKvxVusg/~1/Bg-ty/OJQLTn79Q/BM7c7pTgAV" }, { "type": "encryption", "pointer": "/lAxJ/fp9Eh+/~0/Bs/o/EY/hHC+fd3/bpI1/~0" } ], "migrationVersion": -87890537 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "velit", "provenance": "commodo Duis dolor consequat" } ], "nodeLocation": { "x": 60905594.41009033, "y": 52998811.85484198 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "et ut", "provenance": "in" }, { "name": "velit ipsum", "provenance": "deserunt incididunt" }, { "name": "aute culpa officia ipsum", "provenance": "laborum reprehenderit" } ], "gridCoordinate": { "x": -37761118.69618637, "y": -44838745.38687855 } }, "error_handler": { "name": "childJob", "summary": "in", "description": "qui aute aliquip", "app": "tempor", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/EjTSNv+Fxqe/~0/~1/~1/K/qKgm/~1/~0/~1/~1/GIdnkB8Vc-" }, { "type": "encryption", "pointer": "/b/e9c/p7VhSA/Ytk/jfDmFcITq9e/~1/EdYZ05/~1" }, { "type": "encryption", "pointer": "/~0/g0/sn/UrXk/~0/cC3n/gMAvpxY/mRn3K/MJN3" }, { "type": "encryption", "pointer": "/~0/~0/~0/~1/hDQJwSe-5dD/~0" }, { "type": "encryption", "pointer": "/~1/NrwfC/k/e/~1/I8.,/fHjcegn5Eo/~0/~1/~0" } ] }, "groups": [ { "name": "Excepteur aliqua sint velit dolor", "provenance": "eu enim occaecat" }, { "name": "mollit", "provenance": "ipsum" }, { "name": "adipisicing", "provenance": "amet elit" }, { "name": "sunt nisi incididunt", "provenance": "labore Excepteur esse" } ], "type": "operation", "gridCoordinate": { "x": 40154045.785211205, "y": -22054444.45318024 }, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "cillum Excepteur mollit esse", "provenance": "dolore" }, { "name": "commodo esse sunt quis dolore", "provenance": "officia quis tempor aliqua" } ], "_id": "86faed5f-69b2-6b4f-43ab-2394e6e84bb3", "description": null, "preAutomationTime": -81869352.20955136, "sla": -95466370.65158783, "errorHandler": null, "font_size": 12, "created": "2009-06-01T08:07:15.068Z", "created_by": null, "createdVersion": "quis consectetur", "last_updated": "1989-02-12T11:13:12.626Z", "last_updated_by": null, "lastUpdatedVersion": "elit velit occaecat aute voluptate", "tags": [ { "_id": "103B8ae4ccC7727EB0fe432a", "name": "Lorem", "description": "culpa dolor dolor" }, { "_id": "89Dfb07CaE32a5eCC0FfaD69", "name": "quis sunt", "description": "occaecat magna consectetur tempor" }, { "_id": "feFaadaCD46E2a8EffBb2e74", "name": "quis ad ea culpa est", "description": "dolore labore aliqua consequat" }, { "_id": "daCFa2a01a3Af3f5FFA49b4B", "name": "eiusmod proident commodo dolore esse", "description": "consequat aliquip nostrud fugiat ex" } ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~1/~1/PJ0e/~0/~1/QZqVSAS" }, { "type": "encryption", "pointer": "/Oi+thxI/EB/~0/~1/~1" } ], "migrationVersion": 11985933 } ] }
{ "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": "occaecat ad in eu", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "dolor", "provenance": "ea qui" }, { "name": "deserunt exercitation fugiat nulla", "provenance": "cupidatat aute sed nulla" } ], "nodeLocation": { "x": -72721348.00246462, "y": -28235123.559899166 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "occaecat ut", "provenance": "ut" }, { "name": "non quis sed", "provenance": "aliqua ea dolore ut dolore" }, { "name": "sunt tempor nisi amet", "provenance": "dolor" }, { "name": "id non commodo tempor", "provenance": "in deserunt Duis nulla" } ], "nodeLocation": { "x": 23160148.706069753, "y": 58473388.28744304 } }, "error_handler": { "name": "childJob", "summary": "est non", "description": "fugiat in", "app": "eu", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/aO07.+/~1/P/Zyjjeoqg7/U,T3lg/~0/~1/~0/cBC6gW/Nkkb" }, { "type": "encryption", "pointer": "/~0/q/~0/acf2P" }, { "type": "encryption", "pointer": "/Hm0/~0/t/~0/~1/~1/eDJ4mYbG/~0/~1" }, { "type": "encryption", "pointer": "/~0/QS+SKbz3M7/h2zPz048C/aPq9InxsxHJ/sf1l/~0/O+0Ky1IvTOg/~1" } ] }, "groups": [ { "name": "ex occaecat", "provenance": "laborum nisi elit do" }, { "name": "ipsum reprehenderit eu mollit", "provenance": "cupidatat fugiat consectetur ipsum" }, { "name": "culpa exercitation qui Ut ipsum", "provenance": "elit" } ], "type": "operation", "gridCoordinate": { "x": -67441053.63397655, "y": -44330902.10984942 }, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "minim dolor", "provenance": "aliquip ipsum adipisicing" }, { "name": "sunt labore id consectetur", "provenance": "Ut culpa nulla fugiat" } ], "_id": "090e02ea-7b18-c2ee-8454-ef89f297ed0d", "description": null, "preAutomationTime": -38837397.07939853, "sla": -83734249.47436118, "errorHandler": null, "font_size": 12, "created": "2022-07-21T05:21:28.332Z", "created_by": null, "createdVersion": "ex occaecat cupidatat elit", "last_updated": "1994-05-27T07:23:25.944Z", "last_updated_by": { "username": "proident", "provenance": "dolore" }, "lastUpdatedVersion": "fugiat pariatur adipisicing tempor deserunt", "tags": [ { "_id": "Ddc4B512feBDC2c9F1EF6cf4", "name": "veniam do cupidatat", "description": "est esse anim exercitation ut" }, { "_id": "e82ae9c3Ae15AEe1ffC0c8C4", "name": "minim esse Ut cillum", "description": "fugiat et" }, { "_id": "8FfeD242feC6A9923eaf7a55", "name": "quis", "description": "culpa in ut" }, { "_id": "dbA5f1a1A7ADF00AA4CeD2DE", "name": "eiusmod mollit", "description": "ea" }, { "_id": "c68B5fAcf2592C9d0affb8eA", "name": "Duis ipsum velit dolore consectetur", "description": "ut" } ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/Ml44/IwhhT3eDN8g/~1/q/~0/~0/~0/~1/~0" }, { "type": "encryption", "pointer": "/xKNuB7nL5/~0/~1/ry5T" }, { "type": "encryption", "pointer": "/A5/Eled/nigrgVV-jP/ab3l/utqZGJf/~0/eRsr/C/0P1Ia/GKqDo+WEBH/~0" } ], "migrationVersion": -72189295 }, "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" ] } } } }