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": "qui anim", "provenance": "non laboris" }, { "name": "laboris", "provenance": "in" } ], "x": -84116784.74246544, "y": -88346151.14809647 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "aliquip", "provenance": "incididunt ullamco officia" }, { "name": "Ut amet esse", "provenance": "deserunt" }, { "name": "tempor", "provenance": "do" }, { "name": "qui labore deserunt id", "provenance": "elit occaecat ipsum" }, { "name": "in", "provenance": "Ut qui tempor" } ], "gridCoordinate": { "x": -2330730.9515755177, "y": 91362353.30172086 } }, "error_handler": { "name": "childJob", "summary": "exercitation sunt amet", "description": "aliquip exercitation ullamco ad", "app": "ullamco aliquip", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~1/BXBDXrboH/d1w5n5/~1/q-/~1/tf/lArtcAZVts" }, { "type": "encryption", "pointer": "/~0/SZzMqTU5/~1/XabQomo/e6r7/XUXqd8drW0O/~1/AM/IMdBiAPi8/Uh79XQ1C" }, { "type": "encryption", "pointer": "/~1/~1/M+.Ala/~0" } ] }, "groups": [ { "name": "nostrud quis", "provenance": "aute eiusmod pariatur ea eu" }, { "name": "Excepteur", "provenance": "non exercitation sunt est" }, { "name": "non", "provenance": "pariatur laborum veniam" }, { "name": "nisi qui", "provenance": "proident dolore tempor cillum dolor" } ], "type": "operation", "nodeLocation": { "x": -89619045.9962384, "y": -56859186.24371733 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "sint sunt nulla reprehenderit", "provenance": "sint dolore nulla consectetur ut" }, { "name": "adipisicing", "provenance": "ad minim non" }, { "name": "et nisi do non sunt", "provenance": "labore" } ], "_id": "d809cdc3-a774-a452-d93b-10a22e139086", "namespace": null, "description": null, "preAutomationTime": 6395086.7291805595, "sla": 84691358.64350554, "errorHandler": { "type": "nostrud ut labore", "name": "nostrud magna exercitation" }, "font_size": 12, "created": "1946-12-14T08:41:41.321Z", "created_by": null, "createdVersion": "qui aliqua", "last_updated": "1960-08-16T00:43:43.362Z", "last_updated_by": null, "lastUpdatedVersion": "quis labore aliqua sit consequat", "tags": [ { "_id": "E6439f0EBC21f5B32d23be12", "name": "est velit laboris", "description": "voluptate Duis consequat deserunt laboris" } ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/eJy-Wo7Y/bBhC4zy/~0/~0/ls" }, { "type": "encryption", "pointer": "/xRoPIOXpa3/~1/B/bm/F/OFPxE5" } ], "migrationVersion": 17718906 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "ullamco mollit labore", "provenance": "dolor" }, { "name": "deserunt", "provenance": "adipisicing ut elit sed reprehenderit" }, { "name": "proident deserunt velit irure", "provenance": "reprehenderit eu ex" } ], "x": 43779312.81918523, "y": -14710096.871541902 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "dolor enim cupidatat in", "provenance": "ipsum laboris labore dolor esse" }, { "name": "eu veniam occaecat", "provenance": "minim deserunt est magna Lorem" }, { "name": "in", "provenance": "reprehenderit anim officia tempor" }, { "name": "consectetur enim quis occaecat laboris", "provenance": "Lorem elit sit et reprehenderit" } ], "gridCoordinate": { "x": -12740153.586215809, "y": -80073440.30507855 } }, "error_handler": { "name": "childJob", "summary": "ea officia id velit", "description": "ad consequat eiusmod in Duis", "app": "fugiat pariatur Ut voluptate sunt", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/cqu2vV0V" }, { "type": "encryption", "pointer": "/zgu/~0/qpeBpi962P" }, { "type": "encryption", "pointer": "/~1/IA.pqt/~0" }, { "type": "encryption", "pointer": "/~1/XD4l3fSUe/~1/eZ1cWn/QiRkDg+3MoZ/Kjx616CYs/~0/HNjqgyQnn/~1" } ] }, "groups": [ { "name": "dolore dolor incididunt", "provenance": "veniam cupidatat esse" }, { "name": "et", "provenance": "officia" }, { "name": "do", "provenance": "exercitation dolor" }, { "name": "Lorem nostrud ipsum", "provenance": "sit" } ], "type": "operation", "nodeLocation": { "x": -15004599.167298809, "y": -30650473.095208094 }, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "minim quis dolore", "provenance": "commodo ullamco" }, { "name": "in aliqua eu", "provenance": "irure" }, { "name": "culpa nostrud", "provenance": "ad" }, { "name": "reprehenderit est non eiusmod", "provenance": "enim Lorem dolor adipisicing ut" } ], "_id": "96a15753-6fe8-9077-be31-314096b8af57", "namespace": { "type": "project", "name": "Ut", "accessControl": { "read": [ "ipsum reprehenderit ex", "laboris officia nostrud ullamco", "Ut" ], "write": [ "ad irure eiusmod" ], "execute": [ "ex eiusmod", "sed qui", "nostrud proident sunt id reprehenderit", "dolor in in" ], "manage": [ "sed Ut dolor aute", "ad", "ullamco amet aliqua ex" ] } }, "description": null, "preAutomationTime": 56414277.00645059, "sla": -65500969.98259689, "errorHandler": null, "font_size": 12, "created": "1974-05-23T07:41:48.684Z", "created_by": null, "createdVersion": "exercitation mollit Ut ullamco do", "last_updated": "1992-08-29T13:01:14.336Z", "last_updated_by": null, "lastUpdatedVersion": "veniam sed eiusmod est officia", "tags": [ { "_id": "1AEf2FB0e1b45Bd531C0a50E", "name": "Lorem consectetur incididunt", "description": "mollit Duis Excepteur" }, { "_id": "8Dd3c2cfebEA4Be1273ba5BE", "name": "nulla officia pariatur ipsum", "description": "deserunt sit" } ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/NnOFc/~0/v+aQI/~0/~0/~0/T1yX" }, { "type": "encryption", "pointer": "/nx0043JMYm-/dkkM.gzxth1/~0/ATvvukAFNx/~1/~0/~1/~0" }, { "type": "encryption", "pointer": "/l03yKG/FuDcq/lVgb/QNZy/~1/n8b/~0/~1/~0/X6NuqLaG/~0/UvHj5PZwj8k" }, { "type": "encryption", "pointer": "/~0/~1/d.+nAm7fe//vkG41PRIV/~0/~1/pKh/AA./KHh9O2CnitN/~1/~0/~1" }, { "type": "encryption", "pointer": "/nlq/GgyiiH/fLCE7,JUob" } ], "migrationVersion": 92103886 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "ipsum cupidatat quis ex", "provenance": "labore est magna voluptate" }, { "name": "anim", "provenance": "ea id est anim exercitation" } ], "x": -24312328.357288137, "y": 41933060.71361861 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "reprehenderit incididunt dolor", "provenance": "mollit ut veniam commodo" }, { "name": "ad id ut labore", "provenance": "ea proident ut consectetur sunt" }, { "name": "officia", "provenance": "cupidatat" } ], "gridCoordinate": { "x": 34248111.60576236, "y": 6691455.389024764 } }, "error_handler": { "name": "childJob", "summary": "consequat nisi voluptate Duis", "description": "incididunt ad aute fugiat dolor", "app": "et laboris do eiusmod ex", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/VXT/bKv/zvb8Yn+CI0/~0/oXB3H0dA/~0" }, { "type": "encryption", "pointer": "/~1/nNrp-KHU/~1/WltpD3RPant/~1/x,MM/k.vR+jIry/~0/~0/W/~0" }, { "type": "encryption", "pointer": "/QNRC6F/~0/ADM/HUmca7KV/~1/Q/gcXtIkdid/~1" }, { "type": "encryption", "pointer": "/JE2FoHH/d5ofMS2/~1/V/glbg/~0/NYcaVFNWBVZ/eF.9Uf6/IveIIGGlQY" } ] }, "groups": [ { "name": "ea aute pariatur", "provenance": "non id cillum dolore" } ], "type": "operation", "nodeLocation": { "x": -17138568.88340786, "y": -9294432.155933797 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "quis ipsum", "provenance": "ea nulla" }, { "name": "magna aliquip aliqua occaecat", "provenance": "culpa" }, { "name": "do sunt ullamco in", "provenance": "Excepteur anim" }, { "name": "occaecat velit voluptate pariatur", "provenance": "Lorem Duis" }, { "name": "Excepteur est sunt", "provenance": "ipsum eiusmod nisi irure" } ], "_id": "b03edce0-6558-eb7d-85c5-8fd13c871cfc", "namespace": null, "description": null, "preAutomationTime": -1680912.2622186542, "sla": -92245447.58667639, "errorHandler": { "type": "occaecat labore sed exercitation et", "name": "voluptate dolore ea exercitation" }, "font_size": 12, "created": "1999-01-16T13:14:00.362Z", "created_by": null, "createdVersion": "proident veniam adipisicing minim", "last_updated": "1965-07-18T09:06:42.198Z", "last_updated_by": { "username": "eiusmod dolor laboris officia", "provenance": "magna adipisicing esse reprehenderit sunt" }, "lastUpdatedVersion": "pariatur veniam", "tags": [ { "_id": "FC5EbD81C7F8cb6C28971C1a", "name": "adipisicing", "description": "ex laboris Ut ad enim" }, { "_id": "C007ddDceeC6EE8D7cCb9544", "name": "ipsum sunt proident veniam ea", "description": "velit cupidatat" }, { "_id": "db8Ec3aBFC92ECfcF5FF6A1f", "name": "dolor incididunt non elit", "description": "do occaecat est laborum" } ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/q5pxxUcN/mk81Swu/~1/~1/uAFGL0UUcz/~0/~0" }, { "type": "encryption", "pointer": "/~1/gq.HIu/~1/g5ufN5SJX" } ], "migrationVersion": 30067753 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "in qui ut ut", "provenance": "laborum ut quis ea eiusmod" }, { "name": "reprehenderit pariatur occaecat deserunt", "provenance": "est non tempor" }, { "name": "voluptate tempor dolore", "provenance": "sunt nulla reprehenderit" } ], "x": 94127527.9526954, "y": 20976625.918442786 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "minim pariatur", "provenance": "in" }, { "name": "eiusmod tempor ex anim id", "provenance": "velit eu sed" }, { "name": "ut ex", "provenance": "cupidatat exercitation qui do" }, { "name": "irure labore", "provenance": "cupidatat exercitation" }, { "name": "sunt proident aute incididunt id", "provenance": "proident" } ], "gridCoordinate": { "x": -20455841.665611014, "y": -83485282.6651037 } }, "error_handler": { "name": "childJob", "summary": "voluptate", "description": "pariatur", "app": "et exercitation occaecat", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/aaFMOvfE/~0/SRkY" } ] }, "groups": [ { "name": "exercitation", "provenance": "qui est adipisicing" } ], "type": "operation", "nodeLocation": { "x": 90311888.07641658, "y": 69643582.36097229 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "elit ullamco minim sunt velit", "provenance": "veniam ipsum exercitation nulla cillum" }, { "name": "aliqua cupidatat", "provenance": "elit nostrud" } ], "_id": "42029f7a-d9fb-ab01-c4ab-0c54c4fe63fb", "namespace": { "type": "project", "name": "reprehenderit Excepteur", "accessControl": { "read": [ "laborum cupidatat sed", "laboris", "dolore nostrud ad labore", "voluptate ut", "sed deserunt esse" ], "write": [ "laborum veniam consectetur", "eiusmod elit dolore labore" ], "execute": [ "elit id in", "amet minim anim", "deserunt voluptate consequat veniam proident", "nisi eu elit Ut aute", "minim officia in in" ], "manage": [ "et", "laborum elit tempor", "Lorem ex sit", "dolore in tempor" ] } }, "description": null, "preAutomationTime": 32852592.832627892, "sla": -36249514.214863375, "errorHandler": null, "font_size": 12, "created": "1964-11-07T00:47:34.805Z", "created_by": null, "createdVersion": "adipisicing consequat aute", "last_updated": "2013-01-17T09:32:04.686Z", "last_updated_by": null, "lastUpdatedVersion": "anim Excepteur cillum", "tags": [ { "_id": "C795d17aCc25FCb7a7d72DeD", "name": "consequat ea", "description": "aliquip" }, { "_id": "56bdfCfC7dEAb316900bf9f3", "name": "ex laboris consectetur", "description": "exercitation dolore" }, { "_id": "5CdA7D6bBB0daCbFC4ec0fE4", "name": "ea dolore sit", "description": "aliqua et" } ], "canvasVersion": 2, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/YDss6JUl/~1/~1/Yfb/~0" }, { "type": "encryption", "pointer": "/~1/qD1/mXQ.bImAbj/Iv,wFrzSoY1" } ], "migrationVersion": 48987017 } ] }
{ "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": "workflowDocumentAll" } } }, "required": [ "automations" ], "additionalProperties": false }
Return
Name | Type | Description |
---|---|---|
response | object | Results from each individual import operation. |
{ "imported": [ { "message": "nulla", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "quis tempor", "provenance": "Ut Lorem" }, { "name": "veniam in deserunt dolor esse", "provenance": "velit in voluptate in" }, { "name": "voluptate Ut incididunt culpa", "provenance": "incididunt veniam nostrud dolore" } ], "x": -24142270.394053698, "y": 70440344.16131532 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "anim esse id", "provenance": "id" }, { "name": "ipsum consequat velit nisi sunt", "provenance": "eu nulla aliquip magna ea" }, { "name": "qui irure cillum ut", "provenance": "ut magna consequat sint Excepteur" } ], "x": -38986075.10135772, "y": 30066570.861588866 }, "error_handler": { "name": "childJob", "summary": "sed ea", "description": "et", "app": "mollit dolor nulla ut occaecat", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/G/Ztab-zv/~0/LR+L-/w/RE+g/~1/cE/~1/lFkoQ8I3Q5/v" }, { "type": "encryption", "pointer": "/TkzCZH/kV4VqUmyu/kJ" }, { "type": "encryption", "pointer": "/m/Y/~0/BO/~1/~0" }, { "type": "encryption", "pointer": "/Vi/Fl/yl+Se/SAi./~0/gOMj/~0/W/~1" }, { "type": "encryption", "pointer": "/mGac5V/iw1nP8swgM/~1/n6Zwn9/jDUV/~0/~1" } ] }, "groups": [ { "name": "consequat ea magna qui minim", "provenance": "quis pariatur dolore ex" }, { "name": "dolor", "provenance": "eiusmod commodo ipsum amet" }, { "name": "aute incididunt", "provenance": "ut commodo quis Lorem" }, { "name": "sit quis aute", "provenance": "do in veniam nulla mollit" }, { "name": "dolor laboris elit est", "provenance": "aliquip in" } ], "type": "operation", "nodeLocation": { "x": -30497606.835533723, "y": 56527308.8678298 }, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "est laboris", "provenance": "voluptate dolor nisi do" } ], "_id": "17e3ae81-8130-e919-aeed-edbb6e283b80", "namespace": { "type": "project", "name": "ipsum mollit sunt esse eiusmod", "accessControl": { "read": [ "ipsum ad laboris consequat", "eu esse dolore officia", "proident do" ], "write": [ "fugiat" ], "execute": [ "aute" ], "manage": [ "dolore aliqua", "ullamco fugiat", "sunt id" ] } }, "description": "nulla Duis", "preAutomationTime": 73173450.92945299, "sla": 76262224.16472363, "errorHandler": { "type": "ut in sint sunt qui", "name": "sit" }, "font_size": 12, "created": "1946-08-18T01:09:59.36Z", "created_by": null, "createdVersion": "officia ex deserunt", "last_updated": "1952-11-18T19:04:36.792Z", "last_updated_by": { "username": "Excepteur deserunt aute", "provenance": "culpa commodo sed" }, "lastUpdatedVersion": "laborum", "tags": [ { "_id": "aC4E2C79638e1Cffc6a780C9", "name": "in in laboris ea", "description": "fugiat Lorem" }, { "_id": "d3fcB8C2F3Aba302E6CDDF6D", "name": "laborum fugiat", "description": "veniam ut" } ], "canvasVersion": 2, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/U+Es.isuvt/~1/OHU" } ], "migrationVersion": 41948679 }, "created": null, "edit": "eiusmod cillum ut adipisicing culpa", "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": "workflowDocumentAll" }, "created": { "description": "The imported workflow as it exists after being imported.", "oneOf": [ { "$ref": "workflowDocument" }, { "type": "null" } ] }, "edit": { "description": "URI to the edit page for the imported workflow.", "oneOf": [ { "type": "string" }, { "type": "null" } ] } }, "required": [ "status", "message", "original", "created", "edit" ] } } } }