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" } ], "read": [ { "name": "Itential Artifact", "provenance": "Pronghorn", "description": "My short description" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "reprehenderit tempor et", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "d46a9053c06f892ce59b2eeb" }, "_id": "ccf5cf361c768e5fc67b4d8e", "lastModifiedBy": "ea minim labore", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" }, { "name": "test", "data": { "gbac": { "write": [ { "provenance": "Local AAA", "name": "my admin group", "description": "My short description" } ], "read": [ { "name": "Itential Artifact", "provenance": "Pronghorn", "description": "My short description" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "laborum enim", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "63d8650b65369d688ff81bf6" }, "_id": "b52be95a7de1e10e623ac8da", "lastModifiedBy": "reprehenderit aliquip", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" }, { "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" }, { "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": "incididunt commodo in", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "97f7d4841da206b3c52d8f24" }, "_id": "4b999e75a5a2ec8f980af918", "lastModifiedBy": "veniam ullamco consectetur irure dolor", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" }, { "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" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "ea nulla anim", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "0913a85b54517444be06b29c" }, "_id": "4709a375fe9a78f91cb4b543", "lastModifiedBy": "consequat occaecat laborum nostrud culpa", "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": "esse", "imported": [ { "success": true, "message": "ullamco commodo Ut Excepteur aliquip", "original": { "_id": "6193ce78b1eebec58155ebc3", "name": "test", "data": { "gbac": { "write": [ "925b12547bbbbc5ee982f4c2", "5dec03fea16c8185fe4adcc7" ], "read": [ "81c488de7b0601e53e7f74f3", "e1433695bdafdda52d86394d", "6c37b464927ed292790c42e8", "626a8cb1356b5ceae525ad82", "36632e8e38c30afbadf57e18" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "anim", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "dc2e1943ef6743cb9d48b7c3" }, "lastModifiedBy": "veniam nisi Lorem", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" }, "created": { "_id": "bfba8cfdd9724883e12de200", "name": "test", "data": { "gbac": { "write": [ "cd098445e3e6cb6496b80f76", "5a9f28018a7803b1070ebd49", "582e3428c642c967c0691b8d", "b609c294db55a0b368c47ea2", "3f1dbd0e4b15e2bb5fdc71c8" ], "read": [ "da6f77af6f96a87abc675e7b", "6f41cc17ace57ae75d2a7020", "0a6787f8522c7ee0eedbe785", "645f9079eac81b40ff429ba3" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "dolore eiusmod", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "16be15190b301a3019af041a" }, "lastModifiedBy": "ut sit ex non", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" } }, { "success": true, "message": "ad Duis esse proident", "original": { "_id": "d3e7df119bdf7514c4d2a1f4", "name": "test", "data": { "gbac": { "write": [ "19520e8780521720fbedd423", "101978bd2b0b31a8cad331a9", "73f7f59c88406fdd4233926b", "b8c6ef6cd69996e959c34302" ], "read": [ "16e0ffe4afff9b4d04ea2fab" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "Lorem fugiat nisi", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "d8c68897a8d212e0b0d01a0b" }, "lastModifiedBy": "exercitation ex", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" }, "created": null }, { "success": false, "message": "nisi Duis labore", "original": { "_id": "9d9310101cfda3ee17bc7dfc", "name": "test", "data": { "gbac": { "write": [ "ef9a3f5fb2fe616788cdf300", "c5e68117ba1017f8aa51c0b6", "c803c332e55db22e5dfd09a9", "7c9403134a523971207eca24" ], "read": [ "2ef418ed323fbfcebad95f25" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "fugiat", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "90ec3ea08a471d3fe986000f" }, "lastModifiedBy": "labore in", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" }, "created": { "_id": "b68c5e1d158fbba9467c8fce", "name": "test", "data": { "gbac": { "write": [ "aa787a5ffdd58c7b3aa90289", "cb75b0523598280cd61e9b12", "e33035c28f081ab523ef0008", "129814cd3d75eb2dbe6ca686", "6117c1335ddd526ab3326574" ], "read": [ "ad5f79f6594cdc6244853e6c", "b2b438f8525516dad6c4a785" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "cillum ut", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "04f9db9ee1cccee53da0b6ff" }, "lastModifiedBy": "culpa occaecat ut", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" } } ] }
{ "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" } ] } } } } }