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": "Lorem", "provenance": "ad consectetur" }, { "name": "mollit voluptate reprehenderit nisi laborum", "provenance": "cupidatat in Ut voluptate tempor" }, { "name": "laborum aute", "provenance": "nostrud non sint laboris" }, { "name": "aliqua est aliquip cillum ut", "provenance": "ex Ut" } ], "x": -64177128.81180284, "y": -41901171.394354895 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "eu Excepteur pariatur", "provenance": "exercitation dolore irure" } ], "nodeLocation": { "x": -94546984.98730142, "y": -57359461.81485252 } }, "error_handler": { "name": "childJob", "summary": "eiusmod Excepteur magna fugiat ex", "description": "officia labore ipsum sunt amet", "app": "laborum amet cillum sit", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/SzKRXG/B-XwAl-G7qH" }, { "type": "encryption", "pointer": "/~1/aOnDwFEIvkw/~0/uRGM/~0/cfm5X9iK/obfFXKfXm/~0/IEqbk/b4Hfje/j/~1" }, { "type": "encryption", "pointer": "/WJ9-/oj4YZJb/a3o/JMrugxB/~0/~0/~1/~0" } ] }, "groups": [ { "name": "Duis elit", "provenance": "Ut dolor exercitation nulla" }, { "name": "consequat laborum est ipsum", "provenance": "do eu deserunt Lorem" }, { "name": "labore reprehenderit pariatur", "provenance": "incididunt adipisicing commodo aliquip" }, { "name": "non cillum sed sint", "provenance": "fugiat laboris consectetur aute" } ], "type": "operation", "x": 78723137.00259891, "y": -21060213.81561613, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "magna cillum in minim", "provenance": "cillum magna" }, { "name": "deserunt nulla labore pariatur", "provenance": "qui aute" }, { "name": "aliquip", "provenance": "mollit" }, { "name": "deserunt pariatur veniam officia ea", "provenance": "Duis pariatur ex deserunt" } ], "_id": "1c5ef2f1-34e6-0e60-8f03-66b67c9f5819", "description": "nisi", "preAutomationTime": -15059238.718880773, "sla": -82987138.5199131, "errorHandler": { "type": "fugiat nostrud et sunt aliqua", "name": "veniam in irure culpa Lorem" }, "font_size": 12, "created": "2002-01-01T23:53:11.005Z", "created_by": { "username": "non culpa est enim", "provenance": "dolor" }, "createdVersion": "non sint nisi ut tempor", "last_updated": "2023-03-03T19:07:50.966Z", "last_updated_by": { "username": "culpa laboris do", "provenance": "aute" }, "lastUpdatedVersion": "ullamco", "tags": [ { "_id": "FabCf7A5d51C9EbF7cB7Ca8C", "name": "eiusmod sit occaecat nisi irure", "description": "aute" }, { "_id": "49aA1EceeC16b5c8b1e8bA35", "name": "in cillum", "description": "labore sint" }, { "_id": "cEF03c0C4EDE889C1b1B475F", "name": "aliquip ut", "description": "dolore proident" }, { "_id": "a35020DbADc97cf91b7aFfd5", "name": "eiusmod", "description": "ullamco ipsum" }, { "_id": "bfEB1dc1d83CadB1adC5ABF9", "name": "Ut", "description": "incididunt amet fugiat reprehenderit et" } ], "canvasVersion": 2, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/eQP09MPiX2/~1/~0" } ], "migrationVersion": -7259823 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "adipisicing magna non in", "provenance": "mollit labore Lorem consectetur" }, { "name": "veniam deserunt", "provenance": "adipisicing incididunt fugiat" }, { "name": "ullamco", "provenance": "laboris" }, { "name": "reprehenderit non velit", "provenance": "dolore quis consectetur officia" } ], "x": 36162946.84757605, "y": 61739317.139258385 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "nisi proident in aliqua laboris", "provenance": "proident fugiat nisi ex in" }, { "name": "Excepteur irure ut", "provenance": "velit officia eiusmod voluptate" }, { "name": "deserunt qui ex dolor Ut", "provenance": "sint anim ut" } ], "nodeLocation": { "x": -16302431.201811, "y": 12113203.453295946 } }, "error_handler": { "name": "childJob", "summary": "velit consectetur id irure laboris", "description": "labore", "app": "magna sit dolor", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/mf6iDv/~0/G/VfBOYBu/~1/~1/IBKNVm/~0/FZsbk-5Wcx/~1/us.QIXhDHD0" }, { "type": "encryption", "pointer": "/Rw-35LO3/~1/~1/~0/F9/N/~1/AnsNi1ZsH/x03KCsdK/" }, { "type": "encryption", "pointer": "/DRR4X" }, { "type": "encryption", "pointer": "/w6Dh/~1" } ] }, "groups": [ { "name": "anim consectetur incididunt", "provenance": "elit sed" }, { "name": "do cupidatat laboris dolor adipisicing", "provenance": "culpa" } ], "type": "operation", "x": 41046493.15635082, "y": 84973553.99377796, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "eiusmod id ipsum tempor Duis", "provenance": "consectetur dolore" }, { "name": "Lorem nostrud", "provenance": "id" }, { "name": "exercitation", "provenance": "aliquip" }, { "name": "cupidatat ut", "provenance": "proident id" }, { "name": "consectetur fugiat commodo ipsum veniam", "provenance": "laborum elit Ut ullamco in" } ], "_id": "03610e2f-f276-4901-d77c-84ae607c5c70", "description": null, "preAutomationTime": -53533414.79219362, "sla": -19654937.185973465, "errorHandler": null, "font_size": 12, "created": "1979-03-20T03:38:15.452Z", "created_by": { "username": "ex laboris exercitation Duis", "provenance": "sint aliqua dolore dolore" }, "createdVersion": "esse in occaecat", "last_updated": "1964-05-31T10:49:03.936Z", "last_updated_by": { "username": "irure mollit ut voluptate dolore", "provenance": "dolore irure" }, "lastUpdatedVersion": "qui minim", "tags": [ { "_id": "818F9BBf5AD13e565BEd3CD1", "name": "aute", "description": "sunt non ex Ut in" } ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/VMQ/~1/~0/MGlz/n/~1" }, { "type": "encryption", "pointer": "/UQ.9/djvyrFvrmEB" } ], "migrationVersion": -34089603 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "exercitation in Ut amet", "provenance": "aliquip eu exercitation fugiat" }, { "name": "occaecat", "provenance": "ex et" }, { "name": "incididunt laboris dolor", "provenance": "esse dolor" }, { "name": "sint", "provenance": "elit" }, { "name": "sed laboris nulla ut anim", "provenance": "id cupidatat" } ], "x": 96606071.25515929, "y": 13512478.451062739 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "magna dolore", "provenance": "exercitation eiusmod pariatur veniam amet" }, { "name": "adipisicing minim voluptate Duis", "provenance": "Excepteur adipisicing ex commodo" }, { "name": "do veniam", "provenance": "sit esse eiusmod commodo officia" } ], "nodeLocation": { "x": -25365832.26632239, "y": 6859904.755288422 } }, "error_handler": { "name": "childJob", "summary": "deserunt", "description": "nisi irure", "app": "ipsum reprehenderit irure incididunt ex", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/p/~0/rZyb" }, { "type": "encryption", "pointer": "/~1/~0/~0/D/ufFT/TDKZEV.nM1k" } ] }, "groups": [ { "name": "Lorem laborum", "provenance": "labore esse Lorem ullamco officia" }, { "name": "sed ex minim velit", "provenance": "ad velit eu pariatur" }, { "name": "qui officia", "provenance": "adipisicing est aliquip in" }, { "name": "aliqua ut", "provenance": "laboris officia est laborum in" } ], "type": "operation", "x": -23157641.461199448, "y": 12930550.406127408, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "fugiat sed pariatur", "provenance": "Excepteur exercitation deserunt dolore" }, { "name": "est irure Duis consequat", "provenance": "dolore esse ut" }, { "name": "enim nostrud dolor nisi anim", "provenance": "aliquip" } ], "_id": "ecd360c2-678b-4cb9-e6ac-fbb87fab7884", "description": "reprehenderit eiusmod fugiat sit", "preAutomationTime": -43803351.37822926, "sla": -14724757.321820408, "errorHandler": { "type": "incididunt cupidatat reprehenderit", "name": "dolore Ut adipisicing id voluptate" }, "font_size": 12, "created": "2001-04-14T02:46:33.13Z", "created_by": null, "createdVersion": "Excepteur", "last_updated": "2024-08-19T21:22:42.957Z", "last_updated_by": null, "lastUpdatedVersion": "aute consequat Excepteur", "tags": [ { "_id": "1ea47080f6a42BFC9259AF2a", "name": "sit minim exercitation veniam magna", "description": "et ex adipisicing non amet" }, { "_id": "2E79E3ac8eCeaD44Ef6ffd1A", "name": "reprehenderit commodo", "description": "in sit" }, { "_id": "Da33ef895B097A5cED488CDa", "name": "ullamco", "description": "eiusmod quis" }, { "_id": "3DdeD132a9A4F2A1111D618E", "name": "ipsum ut fugiat", "description": "esse" }, { "_id": "2db7D4d72E15CBaeAd0aeAad", "name": "enim minim in", "description": "adipisicing occaecat labore" } ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/hM/~1/~0/~1/~1/sv0-/F/GJZlz6/~1/~1/~1" }, { "type": "encryption", "pointer": "/~1/~0/TXv/tQP/~0/~0/O/~1" }, { "type": "encryption", "pointer": "/~1/qAX,/~0/~0/XUosqcrgX/~1" } ], "migrationVersion": -66601834 } ] }
{ "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": "nostrud dolore", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "eiusmod in occaecat", "provenance": "consectetur" }, { "name": "cillum", "provenance": "laborum eu dolore commodo" }, { "name": "voluptate ut quis", "provenance": "quis aliquip" } ], "nodeLocation": { "x": 48339571.920674056, "y": -44613083.997836925 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "labore", "provenance": "eiusmod eu consequat ullamco" }, { "name": "et in Duis aute Lorem", "provenance": "dolore ea esse labore ex" } ], "x": -56958816.37750335, "y": -89981513.7568031 }, "error_handler": { "name": "childJob", "summary": "Excepteur in occaecat", "description": "deserunt", "app": "in", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/ViChhmK" }, { "type": "encryption", "pointer": "/q/TISkUo/UoU667qcH/k5fyy/~1" } ] }, "groups": [ { "name": "mollit velit", "provenance": "velit culpa pariatur" }, { "name": "Excepteur fugiat magna dolore", "provenance": "dolore anim consequat eiusmod" } ], "type": "operation", "nodeLocation": { "x": 5258319.347552657, "y": 48653278.61223516 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "in", "provenance": "veniam" } ], "_id": "80ffd248-1d7c-06c8-b07a-e2827dcb5536", "description": "sunt cillum commodo fugiat", "preAutomationTime": -39698478.094299495, "sla": -81546838.72931506, "errorHandler": null, "font_size": 12, "created": "1980-02-23T21:25:22.198Z", "created_by": { "username": "do reprehenderit in eiusmod", "provenance": "Lorem magna sed" }, "createdVersion": "non Ut consequat", "last_updated": "1955-10-14T19:41:37.319Z", "last_updated_by": { "username": "esse irure amet", "provenance": "dolore laboris culpa" }, "lastUpdatedVersion": "ipsum", "tags": [ { "_id": "9f0e34eC7bcF1b80e7bABa03", "name": "culpa", "description": "Ut" }, { "_id": "Bbf257f2da390702E0Fbb20F", "name": "quis deserunt velit esse", "description": "exercitation" } ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/m7L4ox/~0/~0/Xy5+Z,/vYkV0.Q/~1/~1/w8UULAM4atW" } ], "migrationVersion": -14286494 }, "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" ] } } } }