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" }, { "name": "Itential Artifact", "provenance": "Pronghorn", "description": "My short description" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "officia et elit", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "2310a940cc9a5cacce4babfb" }, "_id": "1d9ab1c88d4521a6a4852f85", "lastModifiedBy": "magna Excepteur", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" }, { "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" }, { "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": "consectetur sed in ullamco", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "07b48cccd50bfa953b9a8c28" }, "_id": "f5ac76e043d315145369260c", "lastModifiedBy": "elit dolore", "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" }, { "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": "cupidatat", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "21c320e011dc8f1e3d412ddc" }, "_id": "a9333b7ed69c6d5e0e8b6e04", "lastModifiedBy": "dolor", "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": "pariatur in eiusmod", "imported": [ { "success": false, "message": "quis culpa", "original": { "_id": "5874028d0545b8191833aad4", "name": "test", "data": { "gbac": { "write": [ "3a7d3cc0bdd9f3b81e8da54d", "0a1fa9843bf8780c8821ef9d", "491fa99fb426b3f6096ba80c", "50e9215647d5c32ba297630e" ], "read": [ "bb67b1c8e7758ba28f9a1d8e" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "occaecat", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "591e7bc1c562eec238a6433a" }, "lastModifiedBy": "anim minim", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour", "migratedToOM": false, "correspondingOMAutomationId": "8f34873839d3ec9e38311035" }, "created": { "_id": "e3dcc44098bdb2adc52c77d4", "name": "test", "data": { "gbac": { "write": [ "ed0f74bafe369275ff731388", "64aa2436a11ef430d540e73f", "75f28a705ef3da4adfb4b6d7", "443b4902129d9aa2535ace97", "d7c1f0e7645bc36320299cb0" ], "read": [ "9f73a19c3fd3080cca9e6b82", "f2c169f2f59abc85bbbac40b", "7974b3a903910783d704c6cc", "bc77af4c3fcec63338d58e90", "d782c78dd9fd7e1257c66306" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "minim sunt Lorem", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "038860863d54b0f9211e9521" }, "lastModifiedBy": "Ut laborum", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour", "migratedToOM": true, "correspondingOMAutomationId": "803bd197f3b65a6f8f140be0" } }, { "success": false, "message": "velit minim Duis occaecat ipsum", "original": { "_id": "d6489aeda1b85a8498da689f", "name": "test", "data": { "gbac": { "write": [ "c302bc38198ccb4d71692207", "c8aa4319fe63d801e55769e0", "df4bf8f7bf2c9bbf6a87341f", "6e42e45001eba382c4ebadd8" ], "read": [ "fb653a6c141e958202e468b8", "35a4f7c7b2c29beebb23a0bc", "de5bca0cf27688a80439114f", "fcf64c38a627611206c18522", "ef9b72230834615ebf239f72" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "ullamco aute est cupidatat", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "6500c9ecce80080b3465f99d" }, "lastModifiedBy": "veniam", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour", "migratedToOM": true, "correspondingOMAutomationId": "b8165a8d9d84450d49648dd0" }, "created": { "_id": "5fafae8c61cfa1a9a9c06b5c", "name": "test", "data": { "gbac": { "write": [ "03145d285482cc358a0c193c", "ee50e0dceba5dade2234cce2" ], "read": [ "10aa373133aa624080bbfe67", "c1871693ac9161ed641fd411", "e79ed105f2e888e5c8ce86fa" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "irure", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "57cbd27d690d6c422cba5a22" }, "lastModifiedBy": "amet nostrud occaecat dolore Excepteur", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months", "migratedToOM": true, "correspondingOMAutomationId": "679f6688743d2f27f9d08f60" } }, { "success": false, "message": "sit ut", "original": { "_id": "efe91d3046b761a94fdfb36f", "name": "test", "data": { "gbac": { "write": [ "f2a22e220cd16274347f271e", "b5bdb1fe2b73dbeaac0f8fd9", "bd2de51663b728c96ce317a1", "0e4148707cb061dd7d7d7529", "1b330b9a7167b22d935f79b1" ], "read": [ "c56c1737e995175f2ad10847" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "sit elit", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "9a4320fd3f4daf9f52b4ceb4" }, "lastModifiedBy": "cupidatat magna", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks", "migratedToOM": true, "correspondingOMAutomationId": "a80a2c9cd3be3fcc435e661f" }, "created": { "_id": "cd26569125e48b0da7ae017a", "name": "test", "data": { "gbac": { "write": [ "8ef9d691d30dfb444f1d5485", "a7536a94902a7beb570d32bb", "5abc9dc8b1d3649dcafa2da7", "763413cdbc66610bf150ec67" ], "read": [ "736c6297046b030f7c412d8d", "0e2e4da907cc7b31a5fe6dd9", "cf222508271b0ab8a1e10c82" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "culpa", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "c73bbebdb522f4154bd8f5f8" }, "lastModifiedBy": "laborum pariatur", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months", "migratedToOM": true, "correspondingOMAutomationId": "dcd761f7cf8a8d2257d023af" } }, { "success": true, "message": "ut Ut aute", "original": { "_id": "0c3d7b9bf40571782ff35b4c", "name": "test", "data": { "gbac": { "write": [ "c560a414fd2bdf2204b8e3a4", "ae10109bd5112110d4b0a25b", "e1854dfd71fb5b97dd5860de" ], "read": [ "11ea4594cd635d5811d04ab9", "6a2e3ceb97a470645ab51bf7", "8b261513df648107e7fba99c", "84fec8f8b56f36aae39dc9ac" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "amet id dolore", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "3ae281a7e200b4398f43c5a9" }, "lastModifiedBy": "magna in fugiat ex pariatur", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day", "migratedToOM": false, "correspondingOMAutomationId": "1e23db0277851e3d5bd3b74b" }, "created": null }, { "success": false, "message": "sed sunt", "original": { "_id": "5caa1c2c2a98bc310a9567bb", "name": "test", "data": { "gbac": { "write": [ "2b00bef61115ad39a7d66147", "f0641106451f67f2a92d9e5e", "f9293ff40c382f9d33cc7dcb" ], "read": [ "3d3faf58f1d5f552760b4be1", "ca7a417d6efccf1f11158f77", "9d3aba1373a004fe263a3613", "8b49f7bc3555bd5fc890c4d0" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "occaecat dolore in", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "7720036c6a371d9a29765a6c" }, "lastModifiedBy": "dolore quis enim esse", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months", "migratedToOM": false, "correspondingOMAutomationId": "43104e97535fae6e5a6a3dc9" }, "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" } ] } } } } }