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": "culpa laborum ipsum consectetur", "provenance": "dolor velit in ad" }, { "name": "laboris aliqua adipisicing ex", "provenance": "minim consequat" }, { "name": "Ut sed quis", "provenance": "cillum proident tempor" }, { "name": "culpa", "provenance": "est aliquip veniam" }, { "name": "occaecat ullamco anim", "provenance": "laborum" } ], "gridCoordinate": { "x": -59575016.43011134, "y": -19020576.428870007 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "sint sed", "provenance": "ut" }, { "name": "qui", "provenance": "velit laborum aliquip" } ], "gridCoordinate": { "x": 75587690.1860801, "y": -61899434.657920115 } }, "error_handler": { "name": "childJob", "summary": "dolor ea", "description": "exercitation magna sed anim", "app": "ut ipsum enim", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/XOYNq2FnC/~1/~1/~1" }, { "type": "encryption", "pointer": "/j,Ih1d/EXB7h/UoNHyOPQwh" } ] }, "groups": [ { "name": "Excepteur id", "provenance": "anim dolor" }, { "name": "incididunt id fugiat", "provenance": "nostrud" }, { "name": "tempor ex sit", "provenance": "proident" }, { "name": "tempor", "provenance": "proident reprehenderit eiusmod aute laboris" }, { "name": "in fugiat", "provenance": "commodo qui occaecat culpa" } ], "type": "operation", "gridCoordinate": { "x": 47690419.51889542, "y": -20579283.683560684 }, "deprecated": false, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "proident elit ex", "provenance": "sunt" }, { "name": "dolore", "provenance": "nostrud veniam ut et tempor" }, { "name": "dolore nulla adipisicing minim", "provenance": "in exercitation in quis incididunt" }, { "name": "qui ullamco", "provenance": "consequat sunt voluptate" }, { "name": "veniam ex aliqua in tempor", "provenance": "eiusmod in consequat dolor velit" } ], "_id": "a9f2eec9-6b06-2d74-2d98-150522bfe51f", "namespace": null, "description": "nostrud ut", "preAutomationTime": -98983533.92667584, "sla": 10496415.35739854, "errorHandler": null, "font_size": 12, "created": "1956-09-13T21:13:24.067Z", "created_by": null, "createdVersion": "qui", "last_updated": "1956-03-06T10:23:42.304Z", "last_updated_by": { "username": "adipisicing reprehenderit ad dolor tempor", "provenance": "sunt commodo nisi" }, "lastUpdatedVersion": "consectetur dolor labore qui culpa", "tags": [ { "_id": "D715344b57cB7E89AA3D2dbB", "name": "pariatur", "description": "in laboris consectetur" }, { "_id": "8CfD4e3732Ce9bEDfD47EfF4", "name": "ipsum consequat esse", "description": "veniam ea nostrud est proident" }, { "_id": "Ee7a6A59c63c3b2bcdC24DB4", "name": "veniam amet magna", "description": "adipisicing id" }, { "_id": "FefB7A0DDBB7C1E790B608d8", "name": "et dolore in sit reprehenderit", "description": "fugiat" } ], "canvasVersion": 3, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/~0/~0" }, { "type": "encryption", "pointer": "/Xmg./qgN+TRAI/KJi.q/~1" }, { "type": "encryption", "pointer": "/H/~1/O76ulZwFcj/~0/luoB/~1/~1/~1/~1/oOXq81kD5" }, { "type": "encryption", "pointer": "/ubWFYeW/UE/~1/Cu.xaFeVz/dq/~0" } ], "migrationVersion": 85587832 } ] }
{ "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": "proident aliquip ullamco nostrud", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ { "name": "adipisicing Excepteur", "provenance": "reprehenderit est commodo occaecat" }, { "name": "reprehenderit ut dolor est incididunt", "provenance": "esse dolore" }, { "name": "consectetur in", "provenance": "veniam Excepteur" } ], "gridCoordinate": { "x": -5072934.061293781, "y": -83695967.57211842 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ { "name": "consequat", "provenance": "ullamco enim" }, { "name": "ut", "provenance": "consectetur non dolor anim occaecat" }, { "name": "id", "provenance": "sed" }, { "name": "ad", "provenance": "Duis ullamco magna ut non" } ], "nodeLocation": { "x": 21627058.605328202, "y": 82489669.33856407 } }, "error_handler": { "name": "childJob", "summary": "ex consectetur aliquip", "description": "aute officia", "app": "quis", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~1/cgU2/rJW,ROCgP/~0/~0" }, { "type": "encryption", "pointer": "/~0/TSE/~0/xob-Y/~0/~1/T" }, { "type": "encryption", "pointer": "/~1/~1/moaoO/8/lgir/Mo/uj7,fp1weD/~1/~1/OAe/hoJHOztI/~0" } ] }, "groups": [ { "name": "voluptate quis ut ex", "provenance": "Ut dolore ad" }, { "name": "dolore amet do reprehenderit", "provenance": "est ex dolor tempor" }, { "name": "aute amet est Lorem", "provenance": "cupidatat et" }, { "name": "ullamco sunt est laboris cillum", "provenance": "amet sint dolor" } ], "type": "operation", "nodeLocation": { "x": 34829372.74855909, "y": -51527022.27842853 }, "deprecated": true, "scheduled": false } }, "transitions": {}, "groups": [ { "name": "anim non magna ut", "provenance": "cillum laboris exercitation" }, { "name": "id incididunt sed ut aliqua", "provenance": "Lorem" }, { "name": "velit sit dolor laborum", "provenance": "Duis esse magna laboris" }, { "name": "qui exercitation voluptate", "provenance": "reprehenderit" } ], "_id": "15cc5a02-1cb8-a79a-a4c9-dfc47176ab67", "namespace": null, "description": "culpa", "preAutomationTime": 17753071.976816684, "sla": 74928844.61932668, "errorHandler": null, "font_size": 12, "created": "2011-07-08T16:34:03.419Z", "created_by": { "username": "incididunt quis Ut", "provenance": "dolore" }, "createdVersion": "minim voluptate", "last_updated": "1957-08-15T03:31:24.544Z", "last_updated_by": null, "lastUpdatedVersion": "laboris sit", "tags": [ { "_id": "e6cA8c847f4de5Cfa788F435", "name": "nulla ut", "description": "velit" }, { "_id": "3CD583eeBbc621e24617D0c1", "name": "sed", "description": "Ut" }, { "_id": "f6f5AceA32a9530DeBB82aCd", "name": "elit ea esse labore dolor", "description": "id in irure dolor" }, { "_id": "Cf6bf4eD7cA5f7E4D10D68aa", "name": "labore ut Excepteur commodo", "description": "et nostrud" } ], "canvasVersion": 1.5, "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/fBdgqN./~0/~0/~0/hjU2/~1/QWqE0Anb1./~1/~1" }, { "type": "encryption", "pointer": "/~0/~1/~1/~1" }, { "type": "encryption", "pointer": "/gb/a7hsF1/~0/~0/zpDMge0./~0/~1/YIAYoXUo/~1" } ], "migrationVersion": 61046857 }, "created": null, "edit": null, "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" ] } } } }