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": -76304326.52049221, "y": -87480507.74212226 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -47378666.78114831, "y": 64016642.36445144 }, "error_handler": { "name": "childJob", "summary": "est nostrud", "description": "adipisicing dolore", "app": "velit reprehenderit in", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~0/~0/~1/oO5O-Cs/~0" }, { "type": "encryption", "pointer": "/~0/OsTD16WRsfh/aK+5/RsUyt/~0/tsvxQZ6bd/s+TW/~1/~0/~0/O/wAGfI" }, { "type": "encryption", "pointer": "/Rq6YH/~1" }, { "type": "encryption", "pointer": "/H+gc3SxWx/lsTyS/h" } ] }, "groups": [ { "name": "mollit irure in", "provenance": "ad do" }, { "name": "nisi consequat anim aliquip esse", "provenance": "consequat amet" }, { "name": "Ut fugiat exercitation mollit laboris", "provenance": "voluptate dolore" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "dolor elit magna", "provenance": "Lorem Ut id commodo minim" }, { "name": "consequat ullamco magna", "provenance": "dolor deserunt Lorem fugiat" } ], "_id": "1b6c253d-a001-335f-b688-6dff5bafe8ee", "description": null, "preAutomationTime": 28261477.129362643, "sla": 19987083.54186523, "errorHandler": null, "font_size": 12, "created": "2009-06-10T22:25:41.808Z", "created_by": { "username": "in quis", "provenance": "in" }, "createdVersion": "aute consectetur ut et pariatur", "last_updated": "1967-07-08T16:14:22.18Z", "last_updated_by": null, "lastUpdatedVersion": "voluptate nulla aute tempor", "tags": [ { "_id": "e5ECCC0B08AD4dAEcE7CF2df", "name": "aute qui", "description": "cupidatat ipsum" }, { "_id": "aBecB91F9f973B7960ae6525", "name": "amet proident dolore Ut Lorem", "description": "do" }, { "_id": "B8781C5aB243D6f20c54Beb5", "name": "aliquip", "description": "dolore" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/i8/syW6zZHXFD7" }, { "type": "encryption", "pointer": "/~1/~0/tgTLG/AaPtykRzYA/~0/~1/ESv,dNjFYOW/~0/MfXrXr9bUYb/O/Y" }, { "type": "encryption", "pointer": "/XZxEtkxN/Zft/S3BiNub/Y/~1/~0/S/~1/r/~1/~1" }, { "type": "encryption", "pointer": "/~1/~1/~1" } ], "migrationVersion": 21911969 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 58961034.45297915, "y": -7738114.071376592 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 90073052.52443275, "y": 58468854.27213967 }, "error_handler": { "name": "childJob", "summary": "ullamco", "description": "reprehenderit et eu", "app": "Ut eiusmod Excepteur", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/ZzgcG" }, { "type": "encryption", "pointer": "/J30IMmTuw/Ccrcd5/KR/FIy3bE4Y/~1/B/BU0JR/~0/mUR6" }, { "type": "encryption", "pointer": "/~0/ZqczWQD4//~1/nD/NoiCdxTIqS" }, { "type": "encryption", "pointer": "/Yk2E7MmJH" }, { "type": "encryption", "pointer": "/~1/gvADw3otZoh/emMe0." } ] }, "groups": [ { "name": "sed adipisicing ullamco", "provenance": "magna veniam" }, { "name": "magna irure esse", "provenance": "Ut" } ], "type": "operation", "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "sint minim ullamco adipisicing", "provenance": "laboris" }, { "name": "dolore proident sit nostrud", "provenance": "ea Ut" }, { "name": "do", "provenance": "irure aliqua culpa ad nostrud" }, { "name": "ipsum elit", "provenance": "nostrud cillum consectetur in" } ], "_id": "2c57e81c-ea33-b315-1420-0f99bea12601", "description": null, "preAutomationTime": 6532913.526024058, "sla": 40375554.43878591, "errorHandler": null, "font_size": 12, "created": "2007-08-15T08:24:11.631Z", "created_by": { "username": "mollit", "provenance": "qui nostrud Lorem consequat" }, "createdVersion": "id magna", "last_updated": "1962-12-03T07:59:24.696Z", "last_updated_by": { "username": "aliquip in ad ipsum", "provenance": "sit adipisicing" }, "lastUpdatedVersion": "pariatur deserunt commodo in", "tags": [ { "_id": "DEBBAF1CD1Cc35360E49BE0A", "name": "aliqua ut veniam ea Duis", "description": "ex proident pariatur" }, { "_id": "9C0fFb49FC9d54BCd2D9E1BB", "name": "consectetur sit", "description": "proident" }, { "_id": "c71C2De89c5533e4AAaC6e89", "name": "laboris mollit velit do Duis", "description": "quis" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/VJ+C5PI1/Nz8ojDya/NmZrn0rGo/UaT+yofHcur/tdHhTZ81,/~0/~0" }, { "type": "encryption", "pointer": "/~0/~1/~1/~0/xNcURsLhWa//tbjiZcpv/~1/Ovbl4/U+vNr,jT" }, { "type": "encryption", "pointer": "/~0/~0/x" }, { "type": "encryption", "pointer": "/Ou88/~0/~1/ENmccrzdE/~1" }, { "type": "encryption", "pointer": "/yjRSaOQh/~1/EU4,Q4ohWPH" } ], "migrationVersion": -13527382 } ] }
{ "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": "consectetur adipisicing sit labore", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 95525858.87307084, "y": 72955517.53839204 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -85003509.43911466, "y": 96476459.00307578 }, "error_handler": { "name": "childJob", "summary": "laboris ut qui", "description": "officia", "app": "culpa est irure in laborum", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~1/~0/~1/o/i/~0/RDvyc/E-Nrn0p," }, { "type": "encryption", "pointer": "/~0/~1/Gm3u-1b" }, { "type": "encryption", "pointer": "/~1/N/~1/k/Okr+WJ22g/jgQw,/XzQQKw2/~0" } ] }, "groups": [ { "name": "velit incididunt culpa ullamco", "provenance": "dolore ad pariatur Lorem culpa" }, { "name": "minim", "provenance": "proident" }, { "name": "exercitation occaecat", "provenance": "reprehenderit" } ], "type": "operation", "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "ut cillum proident", "provenance": "sit" }, { "name": "velit", "provenance": "amet anim" }, { "name": "velit", "provenance": "ullamco dolore laboris dolor Excepteur" } ], "_id": "78af37cc-1c7b-6fe7-428d-46f1d3104176", "description": null, "preAutomationTime": -60912785.676117174, "sla": -36609094.485934526, "errorHandler": null, "font_size": 12, "created": "1944-09-13T11:56:14.647Z", "created_by": { "username": "officia quis velit minim", "provenance": "amet cupidatat ullamco" }, "createdVersion": "irure velit incididunt commodo aliquip", "last_updated": "1993-11-03T00:27:11.198Z", "last_updated_by": null, "lastUpdatedVersion": "enim mollit", "tags": [ { "_id": "deE54e72D86C78fe6c0d41F0", "name": "et enim nisi Ut aliquip", "description": "ex" }, { "_id": "fcD5eEdFE99A943698bD7bDE", "name": "dolore", "description": "amet Duis non" }, { "_id": "1F4F79B36ac29C3a339a060f", "name": "ad aliquip", "description": "laboris ullamco" }, { "_id": "433c142af2dA397aFC29eeFf", "name": "elit magna irure", "description": "est" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/ah1ID8p9/re" }, { "type": "encryption", "pointer": "/ETaBU//CdaSUwo" } ], "migrationVersion": -31508315 }, "created": null, "edit": "do veniam fugiat sint eu", "success": false }, { "message": "est magna", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 7014778.474693403, "y": 82777373.12323722 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -33826078.17295029, "y": 91483792.14080644 }, "error_handler": { "name": "childJob", "summary": "deserunt", "description": "consectetur pariatur", "app": "ullamco ex magna", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/gP2b/9cm-/~0/n/CfmS/AbUI/~0/JGyK-D/l-kZ3/e/~1" }, { "type": "encryption", "pointer": "/cSwhQ/~1/~0/~0/~1/~0/~1/~1" }, { "type": "encryption", "pointer": "/n5f/~0/~0/rl6GLL/~0" }, { "type": "encryption", "pointer": "/oxe7H/K/~0/~1/BW7lE/~0/B/BN/klF/~0/~1/~1/D4AXixigM" } ] }, "groups": [ { "name": "reprehenderit do mollit", "provenance": "occaecat est fugiat" }, { "name": "eu velit sit fugiat", "provenance": "dolor officia culpa cupidatat ad" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "cupidatat occaecat dolor ex fugiat", "provenance": "magna in tempor sit id" }, { "name": "laboris officia", "provenance": "non" }, { "name": "magna cupidatat aliquip", "provenance": "sed dolor laboris" } ], "_id": "009159d3-0789-19ad-424b-0b7b2be8d6b3", "description": "aliquip", "preAutomationTime": -64009294.383055784, "sla": -6912254.3243364245, "errorHandler": null, "font_size": 12, "created": "2003-11-06T19:17:01.13Z", "created_by": null, "createdVersion": "Duis deserunt eu esse", "last_updated": "1942-02-04T17:03:56.6Z", "last_updated_by": { "username": "eiusmod dolore aliqua dolor labore", "provenance": "dolor ea" }, "lastUpdatedVersion": "officia quis sit", "tags": [ { "_id": "fe60ADd75bADd50Eb0DBd35e", "name": "dolor veniam consectetur", "description": "in" }, { "_id": "44a99b31C9dD7Dc9134B7DFe", "name": "in sint ut aliqua dolore", "description": "sunt ut esse id elit" }, { "_id": "b98bbfd2E93c0ffEb4573865", "name": "aliqua veniam cillum", "description": "commodo dolore eu" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~1/~0/~1/Vx1uykK1/~0/o6MOLLx/js8em+SHx/~1/dKI0sOy/~0" }, { "type": "encryption", "pointer": "/z3bG/~0/~1/~1/~0" }, { "type": "encryption", "pointer": "/~1/r/KWVbK2R9jl+/~1/ofIw/~0/~1/U/j6ez/S5M+/~0" }, { "type": "encryption", "pointer": "/~1/dHh7RD.cAm/olH,0,W,vi/Qyfm28n/IfMWgWH7/x,W7IhQKjv/th" } ], "migrationVersion": -30885648 }, "created": null, "edit": null, "success": true }, { "message": "reprehenderit amet laborum sit minim", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -2641751.0912496597, "y": -34503600.31796569 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -21295989.242732286, "y": -11841419.531277493 }, "error_handler": { "name": "childJob", "summary": "pariatur commodo non", "description": "labore id aute pariatur", "app": "est aliquip", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/c+zDlC.g/mZ00F5l/~0/QRB86xFYKx/~0" }, { "type": "encryption", "pointer": "/jYrJ-HICZ/~1/k/~0" }, { "type": "encryption", "pointer": "/~0/~1/~0" } ] }, "groups": [ { "name": "commodo ut qui voluptate eu", "provenance": "id magna sunt" }, { "name": "aliqua minim in incididunt fugiat", "provenance": "Ut sint" }, { "name": "mollit non ea", "provenance": "sint adipisicing Excepteur" }, { "name": "in exercitation amet veniam", "provenance": "commodo irure do" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "dolor mollit reprehenderit est", "provenance": "aute dolor aliquip ullamco ut" }, { "name": "sit", "provenance": "laboris occaecat et ipsum" } ], "_id": "9740ace1-b0bb-071f-ca9b-7f1df2f74d96", "description": null, "preAutomationTime": 13322772.195004612, "sla": -98265690.19803482, "errorHandler": { "type": "veniam anim ea", "name": "Lorem do" }, "font_size": 12, "created": "1965-02-02T00:37:28.735Z", "created_by": { "username": "voluptate sunt sint Ut enim", "provenance": "culpa" }, "createdVersion": "dolor veniam mollit", "last_updated": "2001-05-31T11:04:42.954Z", "last_updated_by": null, "lastUpdatedVersion": "Lorem", "tags": [ { "_id": "59AF6BF1FaCCDCC40C0FFbFD", "name": "amet Lorem", "description": "esse ipsum" }, { "_id": "aC3D354d6eA316a2E5Ffe3c6", "name": "veniam", "description": "proident Excepteur cillum officia" }, { "_id": "b12FfF4bCBfDcaEe9CD0eb47", "name": "amet", "description": "incididunt dolore" }, { "_id": "a2aC941Bc4f5a2215Abb6C8E", "name": "deserunt in", "description": "fugiat" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/~0/W+I2ART/~1/MW" }, { "type": "encryption", "pointer": "/T/zrxoTWuAvo/KE48i4HxEq/i/~0/bXFV4bVKoL3/~0/~1/TMx0dZ/~1" }, { "type": "encryption", "pointer": "/Ss9puXNF" } ], "migrationVersion": -44315967 }, "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.", "type": [ "string", "null" ] } }, "required": [ "status", "message", "original", "created", "edit" ] } } } }