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": 8984008.51015824, "y": 12638694.827279955 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 29704143.32343641, "y": 82667136.36974058 }, "error_handler": { "name": "childJob", "summary": "exercitation sit aliquip in et", "description": "dolor consectetur sint Ut ullamco", "app": "sit elit", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/~0/WU,i,/MxNLCFBevAM/~1/~0/~0/~0/~1/~1/~0" }, { "type": "encryption", "pointer": "/TyBjk1F3F9/~0" } ] }, "groups": [ { "name": "sunt aute sint nisi", "provenance": "Duis elit" } ], "type": "operation", "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "ipsum minim Lorem culpa", "provenance": "proident" }, { "name": "eiusmod aliquip", "provenance": "enim dolor aliquip irure Duis" }, { "name": "Lorem sit", "provenance": "magna eiusmod sed ad aute" }, { "name": "aute", "provenance": "ut deserunt" } ], "_id": "b9997898-a85c-662e-5700-7f6c581733f2", "description": "Duis eiusmod ad", "preAutomationTime": -41441416.00298976, "sla": 52880579.694717914, "errorHandler": { "type": "in", "name": "minim dolor culpa et sit" }, "font_size": 12, "created": "1977-08-10T03:39:01.221Z", "created_by": { "username": "est consequat veniam", "provenance": "quis non Lorem" }, "createdVersion": "irure ea ipsum Excepteur exercitation", "last_updated": "1989-11-13T00:04:39.552Z", "last_updated_by": { "username": "id", "provenance": "id eu culpa dolore officia" }, "lastUpdatedVersion": "irure eu incididunt", "tags": [ { "_id": "0A8c6E5fE6cB82cCC1C28eda", "name": "tempor minim proident eu velit", "description": "velit aliqua" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/y1u9H/WxdtziXw4al/~0" }, { "type": "encryption", "pointer": "/~0/~1/~0" }, { "type": "encryption", "pointer": "/N3+U/~0" }, { "type": "encryption", "pointer": "/rH" } ], "migrationVersion": -70416272 }, { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": -45460246.34601942, "y": -24719285.143064424 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 75262642.62738964, "y": 14639952.899740785 }, "error_handler": { "name": "childJob", "summary": "officia non aute dolor", "description": "occaecat eiusmod magna non", "app": "aliquip amet incididunt nostrud", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/HG/~0/~1/Jd1/~0/YIlKqgHK/yh-QjeMifk/rtFr" } ] }, "groups": [ { "name": "cillum aliqua", "provenance": "magna occaecat amet sunt dolore" }, { "name": "ut adipisicing sit exercitation", "provenance": "cupidatat aute veniam" }, { "name": "sunt mollit", "provenance": "Ut in est non" }, { "name": "nostrud ipsum qui", "provenance": "sint cupidatat" } ], "type": "operation", "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "Ut", "provenance": "est dolore dolore officia" }, { "name": "sed aute deserunt", "provenance": "sit ex deserunt id" }, { "name": "exercitation deserunt eu proident", "provenance": "in cupidatat fugiat do" }, { "name": "enim in quis laborum", "provenance": "cillum" } ], "_id": "18a7a1f0-18e1-ab1d-fb94-a8d6b3bff215", "description": null, "preAutomationTime": -42909879.180975445, "sla": 62311760.87037623, "errorHandler": { "type": "nostrud aliqua ipsum labore", "name": "ipsum laborum in" }, "font_size": 12, "created": "1961-07-23T23:39:28.291Z", "created_by": { "username": "magna exercitation consectetur", "provenance": "in ex quis" }, "createdVersion": "sunt in consectetur", "last_updated": "2000-03-08T12:27:53.308Z", "last_updated_by": null, "lastUpdatedVersion": "Excepteur ad", "tags": [ { "_id": "1BB30ecAEF8B8EBEC208fce4", "name": "do occaecat in", "description": "ad sit non" }, { "_id": "FCED19bDcd8B3D4bE77C3c3f", "name": "ut anim commodo", "description": "culpa in cillum ipsum dolore" }, { "_id": "03f2fb8BE3D86bABD36feEB7", "name": "incididunt aliqua consectetur", "description": "aliquip" }, { "_id": "a86C7D3a118c5CEc173b96dD", "name": "consequat", "description": "officia ut ut" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/F5oMxBTuK/~1/~1" }, { "type": "encryption", "pointer": "/sf.y/S-" }, { "type": "encryption", "pointer": "/yEVc/TsuyU8fyqk/~1" } ], "migrationVersion": 72381727 } ] }
{ "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": "sit velit eu", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 26428103.03085202, "y": -8565452.315506235 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 78158169.70160925, "y": -82266554.87434557 }, "error_handler": { "name": "childJob", "summary": "ad eiusmod enim", "description": "irure nisi fugiat ad Lorem", "app": "aliqua labore occaecat nostrud", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/eM,3+hr8y/~0/Sp/~1/LVyYz0/~0/DhrA96H/~0/~0" } ] }, "groups": [ { "name": "Lorem sit dolore", "provenance": "aliqua ea dolore" }, { "name": "ullamco Excepteur officia enim", "provenance": "pariatur veniam irure eu" }, { "name": "id enim reprehenderit adipisicing sit", "provenance": "exercitation aliqua dolor in sint" } ], "type": "operation", "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "minim", "provenance": "ut" }, { "name": "sed", "provenance": "consequat aliquip Lorem irure" }, { "name": "occaecat in anim", "provenance": "proident Ut voluptate" }, { "name": "elit", "provenance": "pariatur incididunt" }, { "name": "incididunt anim id dolor", "provenance": "ipsum" } ], "_id": "029eb125-7f94-5ccf-a1e6-d1690df4dbb2", "description": null, "preAutomationTime": -90246865.84292945, "sla": -96428079.04447213, "errorHandler": { "type": "sed sit", "name": "Excepteur" }, "font_size": 12, "created": "1977-09-16T18:07:58.071Z", "created_by": null, "createdVersion": "in dolore minim velit Excepteur", "last_updated": "1989-09-07T22:02:38.527Z", "last_updated_by": { "username": "nisi anim", "provenance": "dolore" }, "lastUpdatedVersion": "exercitation culpa id aute laboris", "tags": [ { "_id": "d29C7aaE3b078b5d60DBA7df", "name": "et exercitation qui in ut", "description": "mollit aliqua" }, { "_id": "eF16FccccBa22AAbEe2b812F", "name": "Duis Ut qui quis", "description": "voluptate fugiat tempor sed nisi" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/cyo19vDCA-6/gQ6RJ0d/1/crCoy2RAVj/~0/~1" }, { "type": "encryption", "pointer": "/umGFwh/CG/l" }, { "type": "encryption", "pointer": "/~1/~1/REpSJtZUAZy/q67,NiV/uku/~0/~1/~0/racLOIvjTzB/R,UaJtOeI/hpnRSRf" } ], "migrationVersion": 65212593 }, "created": null, "edit": "et ex elit", "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": "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" ] } } } }