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" } ], "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": "enim proident", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "bd990388d881bcfc540ee967" }, "_id": "40d52ed8d6dff1850ade3d51", "lastModifiedBy": "ad dolore commodo", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" }, { "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": "do est minim non dolore", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "216b9ab302ea46f293b6d9a8" }, "_id": "a41d9577f5eba8f8926011d2", "lastModifiedBy": "ipsum amet incididunt sed", "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" }, { "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" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "quis officia", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "2bf64735445b7615847bc34f" }, "_id": "04df05d787e3f7decabc6d33", "lastModifiedBy": "consequat veniam", "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" }, { "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": "reprehenderit est consectetur elit esse", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "afe2a25b10300495b188ae51" }, "_id": "03eeee90df2a0f0cdabfc0bb", "lastModifiedBy": "dolor aute non elit", "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" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "velit", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "0b1657310d8a45f227dfc014" }, "_id": "dd8fd438891b78b6b8bb582c", "lastModifiedBy": "veniam nostrud adipisicing non in", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" } ], "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": "mollit voluptate deserunt nisi ex", "imported": [ { "success": true, "message": "deserunt velit Lorem", "original": { "_id": "2f3f89fde3fb47f671f0996c", "name": "test", "data": { "gbac": { "write": [ "7c25188a78c53ad000724baf", "d2f12b84681bfe7a2b671d89" ], "read": [ "7ebe1cec94e55eb5dd4472a5", "579650d9efb69afc7e60fc74" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "aute in consequat amet", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "c6a951c2e6ea11691f8902bc" }, "lastModifiedBy": "ut veniam reprehenderit", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" }, "created": null }, { "success": false, "message": "veniam non minim voluptate", "original": { "_id": "ad13d20e3aeec9a6b7cc159c", "name": "test", "data": { "gbac": { "write": [ "b79d871c458b4bdb87e73d31", "fa65735723f0f6d4173e098c", "17153ca89f41c42e8393ad90", "e392ff6a84ac546f3c1a3574", "247b46abb6ddbac0c37964d0" ], "read": [ "2e4c84fbb6670abf927015d4" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "veniam incididunt", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "0c24d1e46c89af008cf31250" }, "lastModifiedBy": "dolore aliqua sint est aute", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" }, "created": null }, { "success": false, "message": "occaecat pariatur id sed eu", "original": { "_id": "1a291a7338777ef8cc6a1e71", "name": "test", "data": { "gbac": { "write": [ "985800616dfbf29608264250", "78ce463475268ff857899fa8", "e7c53cf4a03dfe6cbac3526f" ], "read": [ "4063593d8400c10014eb5f20", "8ce7099424be4283130b8e0e" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "Duis ipsum dolore", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "12bba9cbac02ff49091e9cba" }, "lastModifiedBy": "Lorem", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" }, "created": { "_id": "b04f2c6f62a5e6ae06b67d44", "name": "test", "data": { "gbac": { "write": [ "b4e5fd29d592082b3582576a", "bb5f63323d3fa888eb16be98" ], "read": [ "ec74194f6781661b07bdf00a", "1984a02d6ff9ee7ecef8b66c", "a179879a8c0c176de60041fc", "cb45e9733304f1216b8ac0f3" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "velit", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "460fbaa9d39abfb2a97a416d" }, "lastModifiedBy": "Lorem minim elit", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" } }, { "success": false, "message": "qui laboris", "original": { "_id": "63e0fe0ac710901d498e3bbc", "name": "test", "data": { "gbac": { "write": [ "3d2af99c1e5a131c81082246" ], "read": [ "27e35836c1fb1c3c65aa51fd", "e4ba7e235bd2be9a441dd136", "027ae44d8c0193ad711c61e0", "c3ddd24d067ec7adaf59a721" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "sit Ut irure culpa sed", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "51ae181802564c4fe00839a3" }, "lastModifiedBy": "in proident eu commodo amet", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" }, "created": { "_id": "e40d818c43f9fea1add8f653", "name": "test", "data": { "gbac": { "write": [ "044ba1fed9f837d0f51b3037", "226377a0589c4baae0f9f931", "0fa449d88196a3fff916288f" ], "read": [ "65068cb23f5bbcf9b69d27b4" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "sunt", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "cf6917820e457948f9be612c" }, "lastModifiedBy": "voluptate", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" } }, { "success": true, "message": "dolore aliquip deserunt Excepteur dolor", "original": { "_id": "1668861d7c6e7a7e5443e118", "name": "test", "data": { "gbac": { "write": [ "114019e8a56b38c13f002ed8" ], "read": [ "44ecd3995df2703fc44a0f33", "29c3c509e121a043761d4cee" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "mollit", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "d4a475f573ae9d733b62e6ad" }, "lastModifiedBy": "in veniam", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" }, "created": { "_id": "cae29d7cb96922fc536ad56e", "name": "test", "data": { "gbac": { "write": [ "62f33d129d1e4e5614a2c5ab" ], "read": [ "2f27b583e195db18f2fe0ad8", "0d7b70f91e3210744053e98f", "491d195a0ccbd9693125e65b", "28576f20b655534a6c71d9d8", "5b6b44faac5efd016e70af17" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "pariatur veniam Lorem Ut enim", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "f0e8a611d039fa863653d82a" }, "lastModifiedBy": "eiusmod dolore", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" } } ] }
{ "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" } ] } } } } }