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": 82271371.40304953, "y": -29753289.407891616 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -37228510.226396374, "y": 9696172.37508756 }, "error_handler": { "name": "childJob", "summary": "ea in", "description": "esse", "app": "ullamco pariatur enim quis magna", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~1/~0/~1/~1/D/P8E6n" }, { "type": "encryption", "pointer": "/~1/Lp,5/~0/~1/tnIVIq.xQC/iieN5D.iGl/I/~1" }, { "type": "encryption", "pointer": "/Eu8aAR./I/~0/~0" } ] }, "groups": [ { "name": "tempor in est incididunt", "provenance": "consequat" }, { "name": "dolor Lorem aliqua nisi laborum", "provenance": "deserunt qui" }, { "name": "nulla cillum id", "provenance": "anim pariatur esse Ut voluptate" } ], "type": "operation", "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "ipsum", "provenance": "ex magna quis dolore Excepteur" }, { "name": "laborum ut quis dolore", "provenance": "id" }, { "name": "velit", "provenance": "nostrud" }, { "name": "pariatur", "provenance": "adipisicing" } ], "_id": "ae5d23a9-cdf3-006e-c4df-57a720e84977", "description": null, "preAutomationTime": 28943394.95713511, "sla": 47666111.674023956, "errorHandler": { "type": "id reprehenderit occaecat irure", "name": "cupidatat in est" }, "font_size": 12, "created": "1992-06-15T20:39:49.094Z", "created_by": null, "createdVersion": "Ut esse", "last_updated": "1973-03-20T04:40:45.344Z", "last_updated_by": null, "lastUpdatedVersion": "irure", "tags": [ { "_id": "3cb50C7Dc35a5DCb7Ed16FA9", "name": "laborum", "description": "adipisicing dolore" }, { "_id": "d3BF1bd50dcCC270Aa7faCbB", "name": "in eiusmod adipisicing", "description": "Excepteur do nisi enim dolor" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/n8eHMK3XI/~1/~1" }, { "type": "encryption", "pointer": "/CUBb/~0/hwj/X0A+p/tt/~0/~0" }, { "type": "encryption", "pointer": "/Vg03gC-B/~1/~0/~0/~0/lWVZdosjN+E/SK6jk/~0/~1/RX" } ], "migrationVersion": -45858269 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 87791307.1534318, "y": -30136779.861811385 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -34111035.454794794, "y": 83736157.68878335 }, "error_handler": { "name": "childJob", "summary": "dolore", "description": "aliqua pariatur tempor", "app": "commodo aliqua adipisicing nostrud", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/UaPU/~0/~0/Jf7QPBWGF2G/~0/b487FopF/~1/~1/~0" }, { "type": "encryption", "pointer": "/f+1I+drQ97" }, { "type": "encryption", "pointer": "/u/bq/GZAH/zp/z9B7YHomru2/CZwgdXv/YjJodremR.v" }, { "type": "encryption", "pointer": "/~1/Ppt/OW7a13/~1/~1/j.R7m2RDR/XygDcfG/CZ5/~1/~0" }, { "type": "encryption", "pointer": "/tU+/~0/~1/Ss/~1/~1/~1/ndjogppkDrK/~1" } ] }, "groups": [ { "name": "esse do dolore ut reprehenderit", "provenance": "in ad officia" }, { "name": "cillum enim sunt irure", "provenance": "sit" }, { "name": "Excepteur in occaecat ea dolor", "provenance": "minim aliqua tempor dolore labore" }, { "name": "nulla", "provenance": "minim cillum consectetur" }, { "name": "aliquip exercitation", "provenance": "est Lorem sed" } ], "type": "operation", "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "proident", "provenance": "dolor occaecat est" }, { "name": "amet", "provenance": "sunt magna officia voluptate in" } ], "_id": "1e4a3e06-ffd9-d88c-9073-a529048ebafb", "description": null, "preAutomationTime": -90702285.84638497, "sla": 6477718.419719204, "errorHandler": null, "font_size": 12, "created": "1962-04-17T08:26:54.853Z", "created_by": { "username": "minim aliquip voluptate Duis", "provenance": "enim adipisicing dolor" }, "createdVersion": "dolor anim cupidatat", "last_updated": "2009-08-09T22:18:58.645Z", "last_updated_by": null, "lastUpdatedVersion": "in eiusmod", "tags": [ { "_id": "df5cAAc3d3Bb6DAff6a9Dfcb", "name": "incididunt et", "description": "sit adipisicing labore" }, { "_id": "C86A58D829A54dA81003FFDf", "name": "labore elit", "description": "labore" }, { "_id": "FC82aebe59f80FbeD91aF35a", "name": "magna in consequat incididunt nulla", "description": "fugiat officia tempor minim" }, { "_id": "ea63FA87D1c3Dc16aCA7aF6c", "name": "labore qui in", "description": "in quis ipsum" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/GfPMPQyVGn2/~0/JzaFXTXkjl/H/~1" } ], "migrationVersion": -46771136 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -87464071.32526448, "y": 10680799.620243236 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 19989825.561925694, "y": 3745890.4965295196 }, "error_handler": { "name": "childJob", "summary": "proident", "description": "veniam", "app": "id", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/u58-/g+.2N/Ayh/h+/dDX02YyAI+/~1/AV1H8e8YoX" } ] }, "groups": [ { "name": "anim", "provenance": "officia eiusmod" }, { "name": "mollit sunt elit sint", "provenance": "irure quis non" }, { "name": "qui voluptate ullamco laborum Duis", "provenance": "mollit" }, { "name": "esse voluptate do", "provenance": "qui cillum id veniam" } ], "type": "operation", "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "velit mollit et", "provenance": "magna dolore proident minim aute" }, { "name": "sit voluptate mollit", "provenance": "enim ad consequat" }, { "name": "do tempor deserunt est officia", "provenance": "consectetur" } ], "_id": "12500d4b-4a30-bbe1-84f4-6fe45d36a0bd", "description": null, "preAutomationTime": 95191468.91809934, "sla": 36154384.61543992, "errorHandler": null, "font_size": 12, "created": "1971-07-18T21:16:47.663Z", "created_by": { "username": "irure esse voluptate", "provenance": "anim labore nulla" }, "createdVersion": "occaecat nulla pariatur", "last_updated": "2010-06-03T21:15:55.731Z", "last_updated_by": { "username": "id", "provenance": "cupidatat amet consectetur aliquip" }, "lastUpdatedVersion": "ullamco commodo", "tags": [ { "_id": "3d1e5BB4bE3a021b67fA5B03", "name": "deserunt pariatur magna", "description": "culpa" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/~1/jeuF/a/U7wtV/~1/~0/~1/~0/lzh" }, { "type": "encryption", "pointer": "/~1/~1/IBlvvje1/~0/M.4wcX3rW/WjW/~0/x5bo/Wz/QF/g8zdT" }, { "type": "encryption", "pointer": "/~0/~0/ron/NM-T+,J/~0/o/hOnObcaKfz" } ], "migrationVersion": 56590736 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 51932298.54464087, "y": -33299749.366011962 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 64545496.544778466, "y": -93635675.51372549 }, "error_handler": { "name": "childJob", "summary": "est ea incididunt consequat", "description": "Duis et commodo sunt magna", "app": "sed labore", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/IaKkMs+/~1/~0/~0/hMRG" }, { "type": "encryption", "pointer": "/~0/bE/uJ3Px" }, { "type": "encryption", "pointer": "/~0/XBk7/R1/~1/IrXkgq4/FZFAfK/GoPfdu4L9/~0/~0/~1/a" }, { "type": "encryption", "pointer": "/~1/~1/~0/X/N3nYspPs9O" }, { "type": "encryption", "pointer": "/~1/q/C,5cbHiksA/uL/~0/~1/~0/A6HHj6r" } ] }, "groups": [ { "name": "ut est", "provenance": "Duis labore sint" } ], "type": "operation", "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "commodo nostrud et", "provenance": "in est dolor consectetur dolore" }, { "name": "proident consectetur reprehenderit in", "provenance": "Duis" }, { "name": "aliquip aliqua pariatur", "provenance": "eiusmod mollit consequat eu in" }, { "name": "pariatur ut", "provenance": "nisi Lorem adipisicing Excepteur anim" } ], "_id": "ed3d8e40-eff0-9166-29bd-27845f7d550f", "description": "Duis Excepteur et ea", "preAutomationTime": 50374758.80285931, "sla": 87350880.15803298, "errorHandler": null, "font_size": 12, "created": "1960-10-07T19:08:41.119Z", "created_by": null, "createdVersion": "nulla", "last_updated": "1976-05-12T22:34:27.909Z", "last_updated_by": null, "lastUpdatedVersion": "ad labore consectetur sunt", "tags": [ { "_id": "e47eb9d1C75A3462EEC6c79B", "name": "irure ea", "description": "aliqua sint esse in" }, { "_id": "CFa1DEF6FbD1fB9C572D501D", "name": "fugiat mollit et ullamco esse", "description": "dolor aliquip" }, { "_id": "eed76698d91C67C4c99A5aBd", "name": "veniam ad", "description": "exercitation amet" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/N/h" }, { "type": "encryption", "pointer": "/~0/~0" }, { "type": "encryption", "pointer": "/~1/ow+pv6/w-KFU-V7hz/~0/rIuqDfqLw/~0/Vgtn.Y3+7/T/~1/fZ./UmVUYvpU" }, { "type": "encryption", "pointer": "/x/xWqH-" } ], "migrationVersion": -82466516 } ] }
{ "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": "proident dolore", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 40001362.1346218, "y": 95260066.91195083 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -44494384.305823244, "y": -84549793.29657823 }, "error_handler": { "name": "childJob", "summary": "officia", "description": "nostrud minim occaecat Excepteur", "app": "proident eu commodo", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/o/hsqr/~0/~0/GLx/~1/~0/~1/~0/wzAs/haE4Ys9E" }, { "type": "encryption", "pointer": "/~0/Ll//VhFYgKqgb/eU/~0/YG/r/I179r6,0Vl/UbZSMUeG" }, { "type": "encryption", "pointer": "/~1" }, { "type": "encryption", "pointer": "/~0/~1/~0/~0/k5SDd7PMh9/~1/pGj4dp3mPK/Y7./Aqf5X" } ] }, "groups": [ { "name": "ut nisi labore occaecat eiusmod", "provenance": "Ut officia sint" }, { "name": "nostrud", "provenance": "irure" }, { "name": "cillum sunt", "provenance": "et Ut labore velit" }, { "name": "fugiat labore dolore ipsum", "provenance": "id nisi" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "nulla anim", "provenance": "officia" } ], "_id": "ec90b21c-270f-f40e-bee3-6e2399150493", "description": null, "preAutomationTime": -68949358.14042032, "sla": -71686406.78679213, "errorHandler": { "type": "mollit", "name": "laborum sunt" }, "font_size": 12, "created": "1991-08-08T14:38:53.685Z", "created_by": null, "createdVersion": "sint et elit consequat", "last_updated": "1976-10-16T19:47:20.748Z", "last_updated_by": null, "lastUpdatedVersion": "commodo in", "tags": [ { "_id": "ee7AF1eB12A1626504feb1eb", "name": "ex incididunt ut Duis aliqua", "description": "quis deserunt" }, { "_id": "18Da159C272b0D7cff9D2DAe", "name": "ad", "description": "do" }, { "_id": "5fDC30B9F227614Edc2D664A", "name": "nulla commodo Excepteur proident", "description": "dolore sed" }, { "_id": "d4adfBBA8F8a1BeF8Aa2F7E3", "name": "anim", "description": "dolore" }, { "_id": "e94b0428E7Aa9ADEd377BF6F", "name": "id", "description": "esse" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~1/~1/~1/Nlx5rCl/~1" }, { "type": "encryption", "pointer": "/jU" }, { "type": "encryption", "pointer": "/~1/wc1U4rV/Z/Xl/~0/~0/~1/~1" }, { "type": "encryption", "pointer": "/wr5/Sa-p/LjaMUqCpV/~0/qtUfE/Tw/tWXN/~0" } ], "migrationVersion": -50734122 }, "edit": null, "success": true }, { "message": "est consectetur et", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -29930995.484370098, "y": 8914543.915988162 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -36874849.299254686, "y": 78187163.9370515 }, "error_handler": { "name": "childJob", "summary": "ipsum", "description": "id ipsum", "app": "Ut consectetur nisi reprehenderit", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/bPiste/~0/~0/Fox," } ] }, "groups": [ { "name": "dolore culpa", "provenance": "dolor Excepteur nulla" }, { "name": "ut sed amet Ut", "provenance": "aliqua" }, { "name": "id", "provenance": "elit dolor" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "sunt incididunt", "provenance": "in magna reprehenderit ex" }, { "name": "fugiat", "provenance": "Ut reprehenderit" }, { "name": "qui amet", "provenance": "Duis velit non aliqua esse" }, { "name": "laborum fugiat eu minim", "provenance": "eu anim aute reprehenderit" }, { "name": "quis in est", "provenance": "adipisicing magna laborum minim" } ], "_id": "5644c738-53e6-f098-414f-eb3d6e7f2e83", "description": "ipsum occaecat elit nostrud", "preAutomationTime": -64596249.06874142, "sla": 60745906.52080715, "errorHandler": { "type": "mollit", "name": "sint aute in aliqua" }, "font_size": 12, "created": "2020-03-16T01:53:47.905Z", "created_by": null, "createdVersion": "Ut et sunt culpa", "last_updated": "1994-01-26T10:23:48.636Z", "last_updated_by": null, "lastUpdatedVersion": "mollit", "tags": [ { "_id": "8B805cd6E8fD89733BBEf7Ff", "name": "amet proident qui", "description": "officia velit" }, { "_id": "E9Ea89F6545e46b76650DFF6", "name": "nisi esse do commodo exercitation", "description": "eu nisi incididunt magna dolor" }, { "_id": "45a339A0e992defA76bdb039", "name": "et ea", "description": "deserunt dolor" }, { "_id": "5A4554f4DB3DEde36A0fCC2e", "name": "sint dolor eiusmod", "description": "quis" }, { "_id": "375a041cAb4ae1163FC26E8e", "name": "nostrud cupidatat ullamco sunt culpa", "description": "sed qui dolor dolor" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~1/~1/tB8a/QS/j.Q-/OIPy/~0/~1/~1" }, { "type": "encryption", "pointer": "/~1/~1/~1/~1/mpO/~0/~0/~1/neP9nWqJm/~1" }, { "type": "encryption", "pointer": "/~0/~1/f7/S/HB/U/a/~1/~0" }, { "type": "encryption", "pointer": "/Z87vSw/~0/~1/~0/bXOaAM/~0/v/Ev5Bm./~1/~1/~0/sSZTNs" }, { "type": "encryption", "pointer": "/~0/MV+IXy00/~1/y/oJnM/39uh/~1/VBWt4rVD/~1/~1/~1" } ], "migrationVersion": 41775569 }, "edit": null, "success": false }, { "message": "elit", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -64140849.556900695, "y": 85604830.87430191 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 85366228.48354694, "y": 52699926.39661342 }, "error_handler": { "name": "childJob", "summary": "cupidatat adipisicing", "description": "ut eiusmod laborum velit", "app": "proident est cupidatat in", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/CJdD/vaNa.y-AiS" }, { "type": "encryption", "pointer": "/dSO4Y-9mh/wjt/~1/mqmi" }, { "type": "encryption", "pointer": "/~1/~0/uAwhFwT/x/~0/~0/kS3mu/tvfVIhv/~1/~0/~1" } ] }, "groups": [ { "name": "ullamco quis fugiat adipisicing", "provenance": "Excepteur" } ], "type": "operation", "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "commodo", "provenance": "irure sint" }, { "name": "deserunt cupidatat magna ullamco", "provenance": "aute ex incididunt" }, { "name": "ex sint", "provenance": "aliqua" }, { "name": "tempor occaecat", "provenance": "proident eu Excepteur velit consequat" }, { "name": "pariatur", "provenance": "aute irure sunt dolore sit" } ], "_id": "48510370-f6da-22fc-6d83-01fd7487e015", "description": null, "preAutomationTime": 35669805.41441542, "sla": 34468344.51050097, "errorHandler": { "type": "labore Ut Lorem ut", "name": "cillum elit consequat sint" }, "font_size": 12, "created": "2022-06-18T20:45:45.349Z", "created_by": { "username": "exercitation quis non est", "provenance": "ex aute in" }, "createdVersion": "velit amet ut laborum qui", "last_updated": "1980-02-25T20:54:26.464Z", "last_updated_by": null, "lastUpdatedVersion": "in proident Duis in eiusmod", "tags": [ { "_id": "4772739B5DC5b1bdfDc8b111", "name": "commodo", "description": "aliqua minim cillum nostrud" }, { "_id": "43Ed82B6876bDE32e597D7fC", "name": "deserunt Duis aliquip quis consectetur", "description": "in reprehenderit ex amet ut" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/iTbH/kxUYFf+dRb/~0/p/~0/KnLQ7o6y/~1/~1/~0/~0/n-1GhB" }, { "type": "encryption", "pointer": "/P/~1/~0/vfTKlWye0P/VoZ.eMnWWLX/~0/U" }, { "type": "encryption", "pointer": "/in4HczSu" }, { "type": "encryption", "pointer": "/r/~1/~0/YIRMa+fS/~1" } ], "migrationVersion": -81541801 }, "created": null, "edit": "id aliquip tempor in", "success": false }, { "message": "Ut adipisicing exercitation", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -33084693.846872516, "y": -6963032.933204532 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 43898586.45323405, "y": 63158265.11147836 }, "error_handler": { "name": "childJob", "summary": "consequat Excepteur aliqua aliquip dolor", "description": "esse occaecat Excepteur", "app": "in dolore laboris occaecat", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/RuoqFXq/~1/~0/z" }, { "type": "encryption", "pointer": "/y7" }, { "type": "encryption", "pointer": "/om-7ie/~0/~0/Ca//x3W9nTm/A" }, { "type": "encryption", "pointer": "/~1/~1/~0/gU/ceQ3Mq/~0/~1/~1/~0/vwZ6QsU8V/~1" } ] }, "groups": [ { "name": "ad aliqua", "provenance": "reprehenderit occaecat ad nisi" }, { "name": "in", "provenance": "officia" } ], "type": "operation", "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "reprehenderit consectetur nulla", "provenance": "officia minim anim" } ], "_id": "62ac23bf-fd2a-3da5-3e78-0fe82776b3c1", "description": "Duis culpa velit magna", "preAutomationTime": 97747145.67786607, "sla": 63425551.422790974, "errorHandler": null, "font_size": 12, "created": "2006-04-30T07:10:58.321Z", "created_by": null, "createdVersion": "ea nulla incididunt", "last_updated": "1955-04-01T11:35:40.616Z", "last_updated_by": { "username": "et reprehenderit officia", "provenance": "culpa exercitation do in tempor" }, "lastUpdatedVersion": "sint", "tags": [ { "_id": "52BAcFE502FddA82D5DFCCf7", "name": "ut cupidatat elit culpa eiusmod", "description": "proident dolore enim dolore" }, { "_id": "a058e332bcA4325aCa9BcBFA", "name": "labore sit", "description": "ipsum eu ad" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/gtEXoj/PJpu/Q/~0/h6bNUuD,L7g/BCYtgKFmc/Zj-/QXh/Xn4NKI/~0" }, { "type": "encryption", "pointer": "/~0/xGCN3Yp3t/jwp.s-2s/~1/~1/~0/~0/~1/~0/M/~0" } ], "migrationVersion": -77214639 }, "created": null, "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" ] } } } }