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": 65919530.86416823, "y": -87188973.93392147 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": -3089521.8922900856, "y": -28081164.967383236 }, "error_handler": { "name": "childJob", "summary": "et dolore fugiat exercitation", "description": "est", "app": "magna minim Lorem", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/fHy/mEtf" } ] }, "groups": [ { "name": "esse cillum qui laboris laborum", "provenance": "fugiat anim irure" }, { "name": "anim ad", "provenance": "dolore in veniam dolor quis" } ], "type": "operation", "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "adipisicing dolor id consequat pariatur", "provenance": "cupidatat nostrud non proident commodo" }, { "name": "eu", "provenance": "sunt dolore reprehenderit exercitation" }, { "name": "occaecat dolore mollit Lorem deserunt", "provenance": "sint dolor deserunt pariatur nisi" }, { "name": "occaecat nulla pariatur et aute", "provenance": "aliquip deserunt Excepteur" }, { "name": "voluptate ullamco enim", "provenance": "ut in" } ], "_id": "a49ccfd9-2b8d-7ad2-abd3-fbcbc9120a17", "description": "aliquip", "preAutomationTime": 45998892.129512966, "sla": 90359889.77409267, "errorHandler": null, "font_size": 12, "created": "1965-03-17T08:37:40.305Z", "created_by": { "username": "anim officia ex ipsum esse", "provenance": "sunt qui amet minim" }, "createdVersion": "est proident dolor dolore cupidatat", "last_updated": "1991-04-25T10:48:01.929Z", "last_updated_by": null, "lastUpdatedVersion": "officia cillum", "tags": [ { "_id": "15975Dc9d84fcDD9a01AAD4b", "name": "in esse in", "description": "proident irure" }, { "_id": "7a1Ac33B1deF2da47Db34c1e", "name": "proident voluptate non aliquip", "description": "laborum Duis dolore" }, { "_id": "F18CBc0c41faF9E51f8f6d5a", "name": "enim", "description": "est" }, { "_id": "0490Bf56d4b22fa6Bc2b5DF1", "name": "sunt non", "description": "aute sunt ea consectetur" }, { "_id": "fD1f97c75f0C4b6f9AB99D30", "name": "dolor ullamco ea tempor adipisicing", "description": "amet adipisicing culpa Lorem" } ], "canvasVersion": 2, "decorators": [ { "type": "encryption", "pointer": "/~0/~0/tVUBWuA/~1/~1" } ], "migrationVersion": 489196 } ] }
{ "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": "mollit elit officia", "original": { "name": "My Workflow", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [], "x": 33397412.72496912, "y": -32660310.764532596 }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [], "x": 90206030.34521332, "y": 71289464.88939446 }, "error_handler": { "name": "childJob", "summary": "id", "description": "laboris veniam in adipisicing cupidatat", "app": "elit eu", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/~0/~1/UmBp/~0/l0Ek/Vtjn/MfcmqXd/~0/iYH,13zUv" } ] }, "groups": [ { "name": "amet eu in", "provenance": "ad occaecat consectetur est commodo" }, { "name": "Lorem tempor ut officia adipisicing", "provenance": "fugiat ea non" }, { "name": "amet dolore Lorem", "provenance": "Ut ex amet commodo" }, { "name": "fugiat nostrud consectetur laboris", "provenance": "laborum" } ], "type": "operation", "deprecated": true, "scheduled": true } }, "transitions": {}, "groups": [ { "name": "in nisi", "provenance": "aliquip veniam eiusmod deserunt" } ], "_id": "e1c3ae71-61ae-864a-bb27-33269717e885", "description": "qui aliquip commodo", "preAutomationTime": -74306141.93649894, "sla": -80817333.22916533, "errorHandler": { "type": "eiusmod anim magna", "name": "officia" }, "font_size": 12, "created": "2007-02-22T02:48:26.987Z", "created_by": { "username": "anim", "provenance": "cupidatat" }, "createdVersion": "irure Duis ut dolore proident", "last_updated": "1949-07-09T23:21:14.331Z", "last_updated_by": null, "lastUpdatedVersion": "in officia non", "tags": [ { "_id": "fecD3593A6175bdE1B96D328", "name": "nulla sint ex adipisicing", "description": "esse" }, { "_id": "Da8e8BC6cD46ec70CCdf7a55", "name": "exercitation ad aute", "description": "Ut in cupidatat aliqua" }, { "_id": "12f7E99cEee056fdDa52B53F", "name": "aliqua Lorem", "description": "tempor dolor est" } ], "canvasVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/ZOHtpvis6s/O/kLQHR8//H+" }, { "type": "encryption", "pointer": "/~0/JfryeoKqZX/eGdgQKKcz/~0/~0/~1/rD418tukdt/~0/ht1-/~0/~0" } ], "migrationVersion": -51300207 }, "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" ] } } } }