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" }, { "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": "sed aute cupidatat voluptate cillum", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "fb28983d210bb9b4c356de47" }, "_id": "66b01b2e56b7d53ef4ab8be8", "lastModifiedBy": "sint et", "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" }, { "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": "dolor dolor", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "a5e2f714c56fdca98c076cf1" }, "_id": "20b58c347a6190a951c4c72c", "lastModifiedBy": "aliqua incididunt", "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" } ], "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": "culpa commodo elit", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "861dccc59e2d7fe66483b4e0" }, "_id": "2699d98f8cae6faa89fbc88f", "lastModifiedBy": "in amet commodo", "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": "voluptate eiusmod aute nostrud", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "7d3babe0a56eb6e1bff655be" }, "_id": "0c25dc1fa045222532e7d8ba", "lastModifiedBy": "mollit cillum sunt adipisicing", "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" } ], "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": "anim sunt amet dolore", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "f5befba04f703451734ef5de" }, "_id": "d2012f901f02e4a6fbd7b04b", "lastModifiedBy": "esse ullamco tempor", "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": "eiusmod", "imported": [ { "success": false, "message": "aute commodo consequat laboris", "original": { "_id": "6d6ada25106b5f03c4e679fb", "name": "test", "data": { "gbac": { "write": [ "871c86dc561a1680944f78c7", "107524abb2796eba433f1f7c", "e552c4aafbce7c5dd6a1e8b2", "ef71db2a6015f780aa803a39" ], "read": [ "36b95a8453188b857717919b", "aef7ba7848582cc7c6f0bd92" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "sint cupidatat", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "f9450d52a725600a26186986" }, "lastModifiedBy": "eiusmod dolore deserunt fugiat", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" }, "created": null }, { "success": false, "message": "ipsum voluptate in nostrud", "original": { "_id": "f9badcf1ef59de5324c81083", "name": "test", "data": { "gbac": { "write": [ "4fee3f04599eb587e67bdb3d", "8615844464b33ee4d9c4694f", "bc6e8bbc7eadc83329476ba6", "f692e5a0b20bf35b523055a7" ], "read": [ "40f99dcf2c28b4047ba1fa34", "a90a2bcc1d22fa195c2fb14a", "2d9bd864d1daa439f1c5ce0c", "eb95e8bf79cfbfa07edc94c3" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "non mollit", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "f4d99e12126943d69661c95e" }, "lastModifiedBy": "in do elit eu dolor", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" }, "created": null }, { "success": false, "message": "cillum", "original": { "_id": "6ed2461396b6928327c43508", "name": "test", "data": { "gbac": { "write": [ "e578ca4ec7ae65e51cfcc5ba", "2a9a0ed7aa5ac1358a22d6d8", "683e34afbf7a9611c8c1bdd4", "fbb7e66b686da0d9e51f89dd", "3597e71e59afddb2969466ce" ], "read": [ "0eff4ca5a54692be43712a26", "a152a55c1d532a60f547b00e", "aed118424551fda73ed929da", "d4042bbf22b5f9c36f2890da", "d1db9f0a4cb6ce61fee91030" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "amet", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "7d12373f50f357336be0f415" }, "lastModifiedBy": "Lorem proident velit id est", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" }, "created": { "_id": "d46ba971ce7aa2f3c8364d47", "name": "test", "data": { "gbac": { "write": [ "6e77b2b3f8943c0f5787915c", "3f2f3cd1c878f21bc039dc51", "0bbc3f17a05df324bdfc4602", "f9d1e5f9b1183fbd64004695" ], "read": [ "b4890307dc053d16c79fed81" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "in velit", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "a030e2e46c6d30c82c654868" }, "lastModifiedBy": "consequat voluptate sunt aliquip esse", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" } } ] }
{ "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" } ] } } } } }