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": "minim Duis aute", "provenance": "laborum cillum culpa enim" }, { "name": "reprehenderit commodo enim", "provenance": "ullamco deserunt dolore" }, { "name": "amet", "provenance": "nostrud proident dolore laborum" }, { "name": "aute Duis magna nulla ex", "provenance": "officia cillum et" }, { "name": "esse Ut dolor", "provenance": "aliqua id" } ], "gridCoordinate": { "x": 51092397.60712367, "y": -21973620.59540668 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "nostrud aliquip ullamco", "provenance": "elit" }, { "name": "cillum magna do non eu", "provenance": "velit tempor Duis aliquip" }, { "name": "nulla nostrud et qui eiusmod", "provenance": "veniam aliquip non" } ], "nodeLocation": { "x": -16699177.52171503, "y": 17701824.52969253 } }, "error_handler": { "name": "childJob", "summary": "nisi", "description": "in Lorem quis irure tempor", "app": "consequat", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/t7BLa0F/y/" }, { "type": "encryption", "pointer": "/S0Ea,/rXlM/fISV/PV/~1/~0/~0" }, { "type": "encryption", "pointer": "/~0/~1/~0/~0/K/~0/~0/~0" }, { "type": "encryption", "pointer": "/~1/U2qOz1qb+N/~0/g.fr,tn7//H/tLN2/FAa" } ] }, "groups": [ { "name": "ea proident", "provenance": "deserunt elit" }, { "name": "Lorem Ut consectetur ut irure", "provenance": "consequat cillum" }, { "name": "qui", "provenance": "amet laborum labore mollit" }, { "name": "amet cupidatat deserunt", "provenance": "esse proident anim ut ex" } ], "type": "operation", "nodeLocation": { "x": 65763506.43532908, "y": -54054458.901408784 }, "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "veniam cillum voluptate amet enim", "provenance": "ex in quis et" }, { "name": "ex quis", "provenance": "Excepteur" } ], "_id": "281f45de-d5ad-4304-24b6-a7611ff76345", "namespace": { "type": "project", "name": "mollit amet ut", "accessControl": { "read": [ "adipisicing est id enim ipsum" ], "write": [ "id culpa qui" ], "execute": [ "qui id officia sunt", "amet mollit velit", "nisi" ], "manage": [ "sint dolore aliqua", "sint sunt et consequat" ] } }, "description": null, "preAutomationTime": 29483687.85636437, "sla": -79828945.5480099, "errorHandler": { "type": "proident est", "name": "ut cillum et in Lorem" }, "font_size": 12, "created": "1949-01-05T04:30:41.255Z", "created_by": { "username": "eu deserunt reprehenderit", "provenance": "dolore ut quis ipsum" }, "createdVersion": "exercitation proident dolor", "last_updated": "1980-05-31T17:07:10.378Z", "last_updated_by": { "username": "ex in ad reprehenderit", "provenance": "Excepteur laborum Lorem cupidatat" }, "lastUpdatedVersion": "commodo sed labore deserunt", "tags": [ { "_id": "bF742E5bAAb5eE82ACE210F1", "name": "aute non deserunt tempor nostrud", "description": "ut" }, { "_id": "Be79ae2ED8dcf3a5747E1bF7", "name": "deserunt", "description": "elit dolor" } ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/faYP/V9joY/~0/~1/~1/f8" }, { "type": "encryption", "pointer": "/fd/E5vsn9NGka8/HLIr11nEMh/NK/~1/mZn/BKKxlZzdPy" }, { "type": "encryption", "pointer": "/~1/jZn+k3YG3/~1/FUS2lPBhX/~0/k04fDl3/~1" }, { "type": "encryption", "pointer": "/S/~0/~1/~1/io2j7G/~0/~1/I5JV/epg/~0/R/YNDHTH/yZ" } ], "migrationVersion": 41021368 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "ad anim in", "provenance": "do" }, { "name": "occaecat Ut officia", "provenance": "ut laboris sed magna" }, { "name": "anim nostrud elit labore nulla", "provenance": "ut" }, { "name": "consequat in", "provenance": "Ut ex" }, { "name": "incididunt irure", "provenance": "magna laborum Lorem labore minim" } ], "gridCoordinate": { "x": -74299065.10380927, "y": -4961754.816105351 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "do exercitation velit veniam sed", "provenance": "velit incididunt in labore dolore" }, { "name": "magna laborum", "provenance": "Lorem sit" } ], "nodeLocation": { "x": 13767208.14909853, "y": -53572628.73714643 } }, "error_handler": { "name": "childJob", "summary": "exercitation ut adipisicing qui", "description": "anim amet voluptate", "app": "ut anim", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/c9L-76W/qHXVsaxZ2U" } ] }, "groups": [ { "name": "adipisicing proident in occaecat", "provenance": "non aliqua minim adipisicing ad" }, { "name": "magna commodo fugiat exercitation", "provenance": "dolor Lorem" }, { "name": "adipisicing nisi aute magna", "provenance": "nostrud magna consectetur fugiat" } ], "type": "operation", "nodeLocation": { "x": 43117501.918970674, "y": -84649220.77793826 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "Duis Excepteur tempor", "provenance": "et sunt voluptate" }, { "name": "Lorem enim", "provenance": "aliqua" } ], "_id": "67055b64-518c-3bc3-f71e-039298a0ed93", "namespace": { "type": "project", "name": "commodo incididunt qui sed in", "accessControl": { "read": [ "Ut irure", "incididunt ipsum cillum", "adipisicing", "aliquip fugiat ut magna proident", "consequat sed eiusmod velit" ], "write": [ "amet Lorem cupidatat", "nostrud quis ipsum nisi et", "enim veniam irure in", "voluptate", "Excepteur quis magna" ], "execute": [ "pariatur voluptate", "ipsum dolore dolor consequat dolore", "mollit anim", "ut mollit nisi sint", "commodo" ], "manage": [ "Lorem mollit Ut ea", "cillum Duis commodo" ] } }, "description": null, "preAutomationTime": 89732078.25954953, "sla": 40846169.20861745, "errorHandler": null, "font_size": 12, "created": "1968-12-30T04:42:20.823Z", "created_by": { "username": "sunt irure enim in", "provenance": "proident Lorem fugiat" }, "createdVersion": "quis cupidatat sit voluptate", "last_updated": "1958-12-07T12:23:21.591Z", "last_updated_by": { "username": "fugiat adipisicing dolore laborum nulla", "provenance": "et ad" }, "lastUpdatedVersion": "reprehenderit labore consequat", "tags": [ { "_id": "bB68eDabC96bb18762EB5589", "name": "eiusmod fugiat", "description": "dolor sint eu" }, { "_id": "Dab35972F2FcaC9D1fCfEfBA", "name": "dolore laboris cupidatat", "description": "laboris pariatur ea fugiat dolor" } ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/WfcD/B+J09kVD5/coI13,eaJ/cZF.v,/~0/wZHiYcR0Z3/~1/~1/Ar" }, { "type": "encryption", "pointer": "/PX0/~0/Q/~0/Qm/xZAmQZzz/~0/~1/D80Ma" }, { "type": "encryption", "pointer": "/~0/zUx-AFzB/~0/Fhcb" } ], "migrationVersion": 25102648 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "officia cupidatat culpa", "provenance": "veniam" }, { "name": "et", "provenance": "exercitation incididunt officia pariatur amet" }, { "name": "sit proident Lorem adipisicing officia", "provenance": "in reprehenderit" } ], "gridCoordinate": { "x": -54429102.2473526, "y": 14145159.701687321 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "cupidatat mollit ea", "provenance": "eu" } ], "nodeLocation": { "x": -60330060.318246484, "y": -40405177.458092645 } }, "error_handler": { "name": "childJob", "summary": "esse Lorem adipisicing", "description": "aliquip incididunt ut aliqua", "app": "occaecat laboris in elit dolore", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/oKVO21RRi/nXP/Dc/~0/~1/F4kB.qy/lkM/b1uhrHIY/~1" } ] }, "groups": [ { "name": "nulla non", "provenance": "nostrud veniam pariatur cupidatat ad" }, { "name": "in velit est dolor aliqua", "provenance": "enim ullamco ut consectetur consequat" }, { "name": "Ut Lorem sed", "provenance": "adipisicing id culpa in magna" }, { "name": "laboris fugiat elit ex sunt", "provenance": "quis consectetur dolore nostrud Excepteur" }, { "name": "aliqua non", "provenance": "sint veniam exercitation" } ], "type": "operation", "nodeLocation": { "x": -20018395.598219335, "y": 68970398.7270273 }, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "adipisicing sunt eu", "provenance": "reprehenderit in aliquip labore sunt" }, { "name": "adipisicing irure", "provenance": "ex sunt esse" }, { "name": "elit", "provenance": "dolor sed reprehenderit deserunt adipisicing" }, { "name": "ullamco culpa non dolore cupidatat", "provenance": "qui incididunt dolor" } ], "_id": "ee327098-564d-765b-158d-52a8ea08ab05", "namespace": { "type": "project", "name": "adipisicing voluptate dolor", "accessControl": { "read": [ "aute proident", "exercitation et dolore" ], "write": [ "sit", "voluptate sunt officia", "ad deserunt sit voluptate velit", "in deserunt laboris", "sed laborum commodo Ut" ], "execute": [ "veniam nulla ut sint", "Excepteur minim in", "elit eiusmod aute commodo" ], "manage": [ "incididunt in ipsum dolore", "incididunt pariatur eu officia", "enim labore dolor velit et" ] } }, "description": "velit sunt", "preAutomationTime": 47000541.41031286, "sla": -69814814.56266892, "errorHandler": null, "font_size": 12, "created": "2016-01-13T11:29:11.037Z", "created_by": null, "createdVersion": "laboris officia magna incididunt ad", "last_updated": "1996-02-15T04:19:02.387Z", "last_updated_by": null, "lastUpdatedVersion": "qui in", "tags": [ { "_id": "62ab849adadBafcf6297CE53", "name": "aute deserunt sit elit", "description": "incididunt labore" } ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/j0di/x1A/RUE,dJ/~1/~0/in/fZ/~1" }, { "type": "encryption", "pointer": "/I6zr3f56f/WuaNToqc4/~1/~0/~1/~1/~1/mPaKuwiO-t/~1/ZLJAmY8/DJWX" }, { "type": "encryption", "pointer": "/u/Gqo-Svqb/~1/I-VXwbs/~0/~0/~0/~1" } ], "migrationVersion": 97611014 } ] }
{ "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": "dolore consequat irure dolor adipisicing", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "irure ea", "provenance": "dolore" } ], "gridCoordinate": { "x": 70796304.3446806, "y": -38719671.07285021 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "magna veniam aliquip", "provenance": "amet enim fugiat pariatur" }, { "name": "Duis ipsum aute dolore cupidatat", "provenance": "proident in" }, { "name": "ea et laborum", "provenance": "velit occaecat" }, { "name": "nulla", "provenance": "ex dolor veniam ut" }, { "name": "esse est laboris dolor ad", "provenance": "aliquip tempor" } ], "gridCoordinate": { "x": -42388628.399990715, "y": -75610331.48982102 } }, "error_handler": { "name": "childJob", "summary": "voluptate nisi dolore sunt consequat", "description": "cillum in mollit amet", "app": "enim proident", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/~0/~0/LLv8bfYszO/~0" }, { "type": "encryption", "pointer": "/~1" }, { "type": "encryption", "pointer": "/wuRV.r/gXn/Atwxp/~1/~1/iU/g/~0/~0" }, { "type": "encryption", "pointer": "/Xxm//~1/Gp/.5li/~1" } ] }, "groups": [ { "name": "ad dolore quis ex", "provenance": "irure nisi anim laborum" }, { "name": "et", "provenance": "sit fugiat anim ex nisi" }, { "name": "amet Excepteur", "provenance": "in est" } ], "type": "operation", "gridCoordinate": { "x": 92635132.58347541, "y": 2576877.0701907873 }, "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "minim velit Ut reprehenderit est", "provenance": "quis mollit in aliquip" }, { "name": "minim elit do in incididunt", "provenance": "Ut" }, { "name": "Excepteur", "provenance": "et dolor occaecat" }, { "name": "sint cillum", "provenance": "amet adipisicing Lorem officia cillum" }, { "name": "cillum minim", "provenance": "enim" } ], "_id": "0b8f5bfc-75be-7ffc-4d47-a6b704f8c4de", "namespace": null, "description": null, "preAutomationTime": 21033017.43122974, "sla": 68960954.79158163, "errorHandler": null, "font_size": 12, "created": "1967-11-29T07:48:13.667Z", "created_by": null, "createdVersion": "fugiat in nulla", "last_updated": "1978-07-01T09:47:07.411Z", "last_updated_by": { "username": "culpa", "provenance": "Duis minim" }, "lastUpdatedVersion": "voluptate", "tags": [ { "_id": "941dd02EA0cF18CA44CEfeFE", "name": "aliquip dolore proident ex", "description": "esse" }, { "_id": "ADDDBE9d6241dFFc239eF908", "name": "eu in eiusmod fugiat do", "description": "ipsum aliqua dolore velit" }, { "_id": "a9Ef54a6F6efBe2a97ce20AF", "name": "aliquip ut do adipisicing", "description": "ex incididunt in" }, { "_id": "Edf5A6AbD3FBfA64BAc8CF17", "name": "ex in et aliqua laboris", "description": "culpa et" } ], "canvasVersion": 1, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/DdUVO/Y/C2dq3uhJXaO" }, { "type": "encryption", "pointer": "/euO/~1/mwwoRKj+Fd" }, { "type": "encryption", "pointer": "/tm/~0/~0/Zs,I0Q83L/hUgROwYA.B/~0" }, { "type": "encryption", "pointer": "/~1/FJ7ksH/~1/s,r/H6cpjRD7-P/~1/~0" } ], "migrationVersion": 99104566 }, "created": null, "edit": "sit culpa", "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": "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" ] } } } }