Summary
Import automation documents
Description
Insert automation documents into the automation collection from a user supplied JSON document.
Route
POST /automation_catalog/automations/import
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
automations | array | yes | Array of automations |
options | object | yes | optional parameters |
{ "automations": [ { "name": "test", "data": { "gbac": { "write": [ { "provenance": "Local AAA", "name": "my admin group", "description": "My short description" }, { "provenance": "Local AAA", "name": "my admin group", "description": "My short description" }, { "provenance": "Local AAA", "name": "my admin group", "description": "My short description" }, { "provenance": "Local AAA", "name": "my admin group", "description": "My short description" } ], "read": [ { "name": "Itential Artifact", "provenance": "Pronghorn", "description": "My short description" }, { "name": "Itential Artifact", "provenance": "Pronghorn", "description": "My short description" }, { "name": "Itential Artifact", "provenance": "Pronghorn", "description": "My short description" }, { "name": "Itential Artifact", "provenance": "Pronghorn", "description": "My short description" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "proident consequat dolor", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "912bbed49945b4a0f27ea642" }, "_id": "941a12715fe46cc580824478", "lastModifiedBy": "exercitation", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" } ], "options": {} }
{ "type": "object", "properties": { "automations": { "title": "automations", "type": "array", "items": { "$ref": "exportedAutomation" } }, "options": { "title": "options", "type": "object", "properties": { "adapterMap": { "type": "object" } }, "additionalProperties": false } }, "required": [ "automations", "options" ], "additionalProperties": false }
Return
Name | Type | Description |
---|---|---|
status | object | Status of automation import operation |
{ "status": "success", "message": "laborum nisi eu sit in", "imported": [ { "success": false, "message": "sed est Lorem do nulla", "original": { "_id": "2493b3fe9956fa65320aa586", "name": "test", "data": { "gbac": { "write": [ "3244c7cb6ecd03b848750783" ], "read": [ "cfb86d8fe7bf54c56d28a290", "296ceabfd16d2cf6e77c69aa" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "ea dolor Ut irure", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "d68926a6f5b324a147026e09" }, "lastModifiedBy": "laboris non", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" }, "created": null }, { "success": false, "message": "proident", "original": { "_id": "e4b1d4cb9f3002c1366ba8a6", "name": "test", "data": { "gbac": { "write": [ "6a0c1139e522e8179d1c5c5e", "5bb1bb1522df6a1332b2acf7", "32de613fe99ce8b3a1a09b48", "25e0e80ca6765d7bca1275fd" ], "read": [ "33611c36cae6c16c2d69c901", "cf0f52896bdf25c450d1e16e", "7034f93c2d9a748bb48bf8d9" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "aliquip in", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "fceb1d8f1549a9fac1741897" }, "lastModifiedBy": "dolore non sit id", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" }, "created": { "_id": "77e96df5213cf7f248d905f5", "name": "test", "data": { "gbac": { "write": [ "75b4594092d5948adb6e562f", "479dfa61b9eefd10198a1adf" ], "read": [ "88c3791cf5c372670b687f45", "ad9902c1c8b49988567669dd", "9c49fcae5a46233a6a3baf4b", "6843b205c20bde8f320d0357", "e2aec3392ee40185906ebe8f" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "eu dolore laboris", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "858c61d52dfd91b554bace28" }, "lastModifiedBy": "quis sint ut adipisicing cillum", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" } }, { "success": true, "message": "aliquip do", "original": { "_id": "d278d634c8283c60b1aad671", "name": "test", "data": { "gbac": { "write": [ "ebdfd5600518e3fdccab0951", "21bc05f53917f944567bc0ef", "f366dbe9a7f0c74567e0b6ed" ], "read": [ "2b3fde4b145705d65c7bed01", "703b38802b1caa2020b5f266", "88ec412f8520bb94ca2be24c" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "in pariatur exercitation aliquip velit", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "e8f5834ede53ea9ddc9e918d" }, "lastModifiedBy": "aliquip Ut", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" }, "created": { "_id": "343223ba2a34d46f33e8c204", "name": "test", "data": { "gbac": { "write": [ "f64c803f874825712de07334", "025666f085e8567fc4f5d993", "b01e7773b09d6fe3f8cc66bf", "09325c707e706c2581fef91c", "3ff8e887e377b2a831e791d4" ], "read": [ "e83d6dec5c9988817d486dde", "4f0b3d0665111c0b7e4b483d", "a98cc812e0d826d356f9e349", "464ef883d86763a76b26d6da", "a782aeb501f5ae64038aa6cb" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "dolor aliquip", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "c9f0e59d2a6121fb2c5cb486" }, "lastModifiedBy": "irure magna", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" } } ] }
{ "title": "status", "type": "object", "properties": { "status": { "type": "string", "const": "success" }, "message": { "type": "string", "example": "2 automations imported successfully" }, "imported": { "type": "array", "items": { "success": { "type": "boolean" }, "message": { "type": "string" }, "original": { "$ref": "automationDocument" }, "created": { "oneOf": [ { "type": "null" }, { "$ref": "automationDocument" } ] } } } } }