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" }, { "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" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "laboris anim", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "be6dd4175db631428a9445aa" }, "_id": "57f53f97e8dce024d6cc4d10", "lastModifiedBy": "ex sit occaecat sint laborum", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" } ], "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": "dolore sunt velit", "imported": [ { "success": false, "message": "dolore dolore laborum pariatur", "original": { "_id": "a34d163f2d5d4d08c89a707d", "name": "test", "data": { "gbac": { "write": [ "c4307cb2d213f2e1e63335d2", "dcbf4c2addd2866a1905dc53" ], "read": [ "023d7f8660903704ba175992", "1e39946a88dfec412b207230", "20cbd958a731b5a2c87ae19b", "c6ddf7dcf164553cbcb1472f", "836cef295b8e62047b909af2" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "officia ex ullamco occaecat", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "8c5a0b4fc6ded089e332c98c" }, "lastModifiedBy": "est sit ut dolor laboris", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" }, "created": { "_id": "5a988cea0115d525726b1b1a", "name": "test", "data": { "gbac": { "write": [ "ec988c6eb354c2976c1e172c", "fe2b162f8abf82c83f0fe8da", "2fd3cc1ad8b0c00f4db22562", "48c8e4d91a9d195b04cc7c8f", "7f7d0d2ebc4788e811bcfac6" ], "read": [ "80718638f4aeb87b666c0454", "ef8797bacc3e9e8b77cf8247", "d19109c7a20c1860e0c61026", "57dfcb845f29acf69c169ed0" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "esse", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "dc1a3a2488aa12da812b62de" }, "lastModifiedBy": "Ut voluptate", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" } }, { "success": false, "message": "esse sed laboris et elit", "original": { "_id": "4bc250c411247c03c376b283", "name": "test", "data": { "gbac": { "write": [ "f55ed4ac3401eb4337882029", "50a2f9abd096303032eed3df", "bb2ce9b6aead4bc17ac26932", "007f52ca5a0b4a5810ece086" ], "read": [ "ee026ade87a8670721ab7061", "30fc1d0712221d1bba0273cd", "1bcaeebe4ace5a88952ae7b1", "9bb9eae2df9b4f5eef136f4b" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "fugiat mollit cupidatat", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "5dbdaba8cb7e827d180a8cb1" }, "lastModifiedBy": "anim commodo cillum pariatur occaecat", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" }, "created": null }, { "success": true, "message": "Lorem dolor minim", "original": { "_id": "65377be77448e4c62183e710", "name": "test", "data": { "gbac": { "write": [ "aa717adb86c93c2792111814", "6c20eac6eb0489ed7afce008", "e95eb0bf44a28a6316a8bc79", "950134756c3133d9725e055b" ], "read": [ "45f1a8e07b34d06db0606e8a", "1006469f292d9b2e064ab627" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "occaecat labore", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "a63a27d0fe1955beb0f98f28" }, "lastModifiedBy": "exercitation nulla ullamco", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" }, "created": null } ] }
{ "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" } ] } } } } }