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": 18822388.531825766, "y": -47821552.01712333 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 84076345.67411485, "y": 57408846.29098222 }, "error_handler": { "name": "childJob", "summary": "magna commodo voluptate", "description": "ipsum ullamco anim cupidatat", "app": "dolor sunt", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/ak30FiWYj/~1/~1/x" }, { "type": "encryption", "pointer": "/bIr2E/~1/Ni5zvfINA" }, { "type": "encryption", "pointer": "/~1/~0/~1/~1/Sm.hG7Ppv5x/~1/ynn/bco3jiCPK/~1/KcLg/~1" } ] }, "groups": [ { "name": "in", "provenance": "laboris" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "fugiat", "provenance": "in" }, { "name": "ea", "provenance": "minim" } ], "_id": "54fc17a6-ca21-e8d4-8d7c-36bf2d6b81a3", "description": "dolore anim ullamco", "preAutomationTime": -99420619.68590394, "sla": 76593902.14138141, "errorHandler": { "type": "laboris nisi elit", "name": "dolore voluptate in Lorem" }, "font_size": 12, "created": "1960-12-29T21:59:32.012Z", "created_by": { "username": "nostrud est", "provenance": "nostrud mollit do" }, "createdVersion": "amet", "last_updated": "1990-05-15T07:39:36.485Z", "last_updated_by": { "username": "exercitation nostrud amet", "provenance": "sunt eu ut aliquip" }, "lastUpdatedVersion": "commodo amet consectetur", "tags": [ { "_id": "4aDcC35F16E81b6b2358Bfe6", "name": "in consequat Ut culpa", "description": "cupidatat" }, { "_id": "9B551EDCcb5e4A3323b24afa", "name": "ex aute", "description": "laboris ut" }, { "_id": "99CDAaE971EbFEb2Faae133F", "name": "commodo pariatur velit quis elit", "description": "nisi proident" }, { "_id": "6Bf7b29B2DADba23F08D1faa", "name": "sunt qui nisi in", "description": "pariatur esse amet" }, { "_id": "23D8fa14ADafBF805E5FcbAc", "name": "nulla", "description": "in amet" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/teSn9p+M-/~1/O/~1/~1/gPhYu9Wf/~1" }, { "type": "encryption", "pointer": "/~0/~0/~1/jVW/EOpC+I+8YvQ/tu/rP.GmbB6,gg/~0" } ] }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 30192893.2448349, "y": 45333461.15174085 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -24605214.00892128, "y": 28519938.272589445 }, "error_handler": { "name": "childJob", "summary": "sit dolor", "description": "veniam nisi sit consectetur", "app": "Lorem officia", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/tkD6tod/WFWMW0" } ] }, "groups": [ { "name": "aliqua et amet cillum", "provenance": "deserunt dolore do Duis in" }, { "name": "occaecat exercitation", "provenance": "ipsum" }, { "name": "Lorem reprehenderit occaecat", "provenance": "nostrud ipsum" } ], "type": "operation", "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "commodo dolor reprehenderit", "provenance": "proident" } ], "_id": "2f586763-69a3-48a8-2c46-ea05f0e3f9fe", "description": "laboris", "preAutomationTime": 44186381.168097585, "sla": 6200952.016140386, "errorHandler": { "type": "culpa minim", "name": "qui est eu sit voluptate" }, "font_size": 12, "created": "1978-05-10T07:00:43.035Z", "created_by": { "username": "nisi Excepteur", "provenance": "cupidatat" }, "createdVersion": "do esse dolor", "last_updated": "1978-08-28T08:18:37.533Z", "last_updated_by": { "username": "sed", "provenance": "incididunt" }, "lastUpdatedVersion": "esse ut elit in aliquip", "tags": [ { "_id": "896fEB1FFf583Fd1D8B64b1F", "name": "enim", "description": "ut" }, { "_id": "0b5DC761Ae1B1DFe19fedc6A", "name": "ipsum aliqua ex", "description": "velit consectetur deserunt sunt adipisicing" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/C46/~0/J4Jq/wwpk/~1/nck/~0/b5NJtxKgKy/N87HHJHs/~0" }, { "type": "encryption", "pointer": "/en/sR/j0oU9AZewh/VPnx4/~0/~1" }, { "type": "encryption", "pointer": "/~1/~1/lztEU6/sV/Z/i/~0/d" }, { "type": "encryption", "pointer": "/~0/~1" } ] }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -26659088.285019636, "y": 50844969.952163905 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -85494594.19797802, "y": 41726606.42774412 }, "error_handler": { "name": "childJob", "summary": "esse pariatur id", "description": "consectetur ea", "app": "labore officia", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/gJ/BhV,wDqxy" }, { "type": "encryption", "pointer": "/~1/~0/~0/Sy932K/~1/Jlm/T3UpUXDPas/wX0/Sz/~1" }, { "type": "encryption", "pointer": "/f//~0" } ] }, "groups": [ { "name": "occaecat", "provenance": "minim laborum amet in est" } ], "type": "operation", "deprecated": false, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "nulla Lorem sit", "provenance": "sint id dolore" }, { "name": "id laborum adipisicing exercitation", "provenance": "ut tempor" } ], "_id": "babc630b-a06e-fc39-4061-a4f2bff6f275", "description": null, "preAutomationTime": 22806249.805152223, "sla": -26437605.236786827, "errorHandler": { "type": "id aliquip laborum est occaecat", "name": "aliqua Excepteur cillum occaecat" }, "font_size": 12, "created": "1980-12-01T23:02:13.09Z", "created_by": null, "createdVersion": "laborum tempor adipisicing qui", "last_updated": "1970-12-26T13:54:29.47Z", "last_updated_by": null, "lastUpdatedVersion": "ipsum laboris nulla", "tags": [ { "_id": "7fafd25460F7D53c91b2bdD3", "name": "in", "description": "ut esse tempor" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/B1B3zfzJ3Wj" } ] } ] }
{ "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": "sunt quis", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 12503010.391229674, "y": -78810665.1643456 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -27978818.262790382, "y": 3839363.702733457 }, "error_handler": { "name": "childJob", "summary": "ut sed eu consectetur proident", "description": "ex adipisicing", "app": "reprehenderit ut velit", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/uziU/nhb/~0/aZX6b-mp/HlT9EC" }, { "type": "encryption", "pointer": "/iSLX/om-G4856XP/aA,rKb/~1/~1/B1J5mVJ1Y/sr/Y--q3mk/~0/~0/RyP/YcJYuUOOpH3" }, { "type": "encryption", "pointer": "/cKG8CasW3d/Sh41tjp/~1/kB" }, { "type": "encryption", "pointer": "/~1/n1Nz/~1/wRUd6/~1/~1/~0" } ] }, "groups": [ { "name": "occaecat ut", "provenance": "quis" } ], "type": "operation", "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "ullamco Lorem", "provenance": "officia labore adipisicing" }, { "name": "et pariatur", "provenance": "sit sint adipisicing pariatur" } ], "_id": "4943545c-68fc-f3b6-a955-609d6b5e1b3a", "description": "id ut nostrud aute", "preAutomationTime": 68423954.81743321, "sla": -54243928.085889116, "errorHandler": { "type": "ullamco reprehenderit velit", "name": "amet" }, "font_size": 12, "created": "1960-12-19T06:34:22.622Z", "created_by": { "username": "dolor Lorem Ut veniam", "provenance": "eu dolor reprehenderit laboris sit" }, "createdVersion": "nostrud consectetur qui pariatur", "last_updated": "1986-02-02T08:16:17.798Z", "last_updated_by": null, "lastUpdatedVersion": "quis consequat sunt", "tags": [ { "_id": "AEafCa4888dEB1c5Dd51C2fC", "name": "cupidatat culpa veniam tempor pariatur", "description": "sint" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/xLk/8IIDF/nVZeVYP4/~0" } ] }, "edit": null, "success": true }, { "message": "et", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -74070476.44672278, "y": -32952991.830290437 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -62485861.06531069, "y": -65703768.85198521 }, "error_handler": { "name": "childJob", "summary": "sed id labore officia", "description": "id anim elit", "app": "dolor ullamco ipsum adipisicing", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/~1" } ] }, "groups": [ { "name": "aute minim reprehenderit nostrud", "provenance": "elit non veniam in" }, { "name": "quis dolore cillum", "provenance": "commodo dolor aute ipsum" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "in deserunt", "provenance": "esse commodo ipsum" }, { "name": "est do Duis anim commodo", "provenance": "Lorem labore irure veniam" } ], "_id": "33da62a8-6643-5edf-eaeb-355a38c6106e", "description": "voluptate ullamco mollit", "preAutomationTime": -14083545.764981091, "sla": 24712677.667006716, "errorHandler": { "type": "sit consequat ut mollit Duis", "name": "cupidatat dolore veniam elit" }, "font_size": 12, "created": "1946-08-20T06:23:22.355Z", "created_by": { "username": "ex velit incididunt in dolor", "provenance": "dolore culpa" }, "createdVersion": "aute ut exercitation eiusmod", "last_updated": "1999-03-18T02:51:19.492Z", "last_updated_by": { "username": "sed dolor mollit", "provenance": "laborum ut labore aliqua" }, "lastUpdatedVersion": "nisi", "tags": [ { "_id": "563ccFD3cFEF428E9DefFDd6", "name": "Lorem qui", "description": "eiusmod" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/zT/i/q" }, { "type": "encryption", "pointer": "/~0/hqOBL9y/~0/YG.YFaUT8H3" }, { "type": "encryption", "pointer": "/~1" }, { "type": "encryption", "pointer": "/~1/YTElAp/wBTG+VIU/~0/c60LrZmeO1n/aJ5K/PZ2tTj3EVFN/~1/f74tTn0" }, { "type": "encryption", "pointer": "/IxkRyX/sdy/~1/Icsi/ZtE" } ] }, "edit": "Duis", "success": false }, { "message": "ad sed", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 34143515.07262774, "y": 48857113.336001575 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -2328564.7125331163, "y": 48878782.74432644 }, "error_handler": { "name": "childJob", "summary": "commodo aliquip", "description": "fugiat dolor ut reprehenderit consequat", "app": "nisi dolore", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/LR4g/~0/~0/~0/~1/~1/~1/~0/lEii3Evx1+" }, { "type": "encryption", "pointer": "/~1/~0" } ] }, "groups": [ { "name": "adipisicing ut laborum pariatur esse", "provenance": "Duis mollit sit eiusmod laborum" } ], "type": "operation", "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "labore amet", "provenance": "do" }, { "name": "pariatur", "provenance": "proident deserunt exercitation dolor dolore" } ], "_id": "0381f723-8c14-27f5-d2a6-6c90f856cf16", "description": null, "preAutomationTime": -8043973.507395253, "sla": -16028595.41478856, "errorHandler": { "type": "consectetur", "name": "commodo" }, "font_size": 12, "created": "1948-08-17T02:24:16.012Z", "created_by": { "username": "eiusmod labore fugiat non", "provenance": "occaecat" }, "createdVersion": "qui", "last_updated": "1995-05-01T03:31:17.979Z", "last_updated_by": { "username": "nulla laboris aliqua elit velit", "provenance": "deserunt ea incididunt voluptate" }, "lastUpdatedVersion": "cillum sed ad anim", "tags": [ { "_id": "A3bEC1A1A27DD2Fa4ceaCF8E", "name": "aute", "description": "ad minim" }, { "_id": "C8dc4D8BD08aCf3e61354C8c", "name": "ut ullamco proident", "description": "dolor amet" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/swJbZM/~0/j2jglt6X/~0" } ] }, "created": null, "edit": null, "success": false }, { "message": "consequat commodo voluptate sit id", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -61268721.72434155, "y": -52756781.57516546 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 12183837.733702913, "y": -59892955.984353155 }, "error_handler": { "name": "childJob", "summary": "mollit proident sunt", "description": "reprehenderit", "app": "elit nulla amet deserunt", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/efwQ142/z/C/~1/~1/~0/~0" }, { "type": "encryption", "pointer": "/~0/I/W4EE/~0/~0" }, { "type": "encryption", "pointer": "/eGB/~0/~0/x4EdI/~1/~0/i7q,OGaT9/~0/~0" }, { "type": "encryption", "pointer": "/I1d7nAf2NLj/~0/~1/YBOYCx6l" }, { "type": "encryption", "pointer": "/~0/S3/lD6g+/~1/~0/Frt2dKj/~1/Azb" } ] }, "groups": [ { "name": "sunt", "provenance": "fugiat consequat dolore incididunt" }, { "name": "commodo dolor voluptate", "provenance": "ex" }, { "name": "proident", "provenance": "Duis officia nulla ut" } ], "type": "operation", "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "incididunt", "provenance": "proident ad aute officia" }, { "name": "nisi", "provenance": "occaecat qui nulla" } ], "_id": "6c84cec4-27f5-8f7a-2f8f-7da6a16f1fda", "description": "velit ipsum commodo Lorem Excepteur", "preAutomationTime": -15543760.39243026, "sla": 53655866.68148965, "errorHandler": { "type": "dolore in sit Duis officia", "name": "sed pariatur proident" }, "font_size": 12, "created": "1979-06-03T23:43:16.303Z", "created_by": null, "createdVersion": "cupidatat eu", "last_updated": "1952-05-22T17:43:01.845Z", "last_updated_by": { "username": "velit", "provenance": "consectetur elit" }, "lastUpdatedVersion": "dolor adipisicing fugiat Duis ea", "tags": [ { "_id": "A0E39Caf110cff9c4416E49D", "name": "sint ex sunt", "description": "commodo" }, { "_id": "5Ec641Eb6914321EBc1a96Bc", "name": "elit reprehenderit ex", "description": "eu" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/w/~1/~0/~0/~1/~1/eiwdl+E0Pl/~1/ozyV" }, { "type": "encryption", "pointer": "/~1/T,p/OgbeBqU/E/~1/~0/o7S0Fr//dU" } ] }, "edit": "Lorem proident reprehenderit aute", "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" ] } } } }