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" } ], "read": [ { "name": "Itential Artifact", "provenance": "Pronghorn", "description": "My short description" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "id", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "b922b8f4187e2f680810a78b" }, "_id": "f1eb8fdf321d04e02e759329", "lastModifiedBy": "ad aliquip nostrud", "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" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "fugiat ullamco", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "8eecab4fb42c2caaeef482c9" }, "_id": "7d794dfc11cbcbf103c7cdba", "lastModifiedBy": "laborum Duis elit non amet", "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" }, { "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": "amet et", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "b88e5c242cf5c15866deef09" }, "_id": "147c9e5cca26b552f5f566cf", "lastModifiedBy": "incididunt eiusmod magna sunt pariatur", "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" } ], "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": "minim eu dolore qui", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "cd23613b3442c7b631320d17" }, "_id": "fabf1f474159e331babf7c14", "lastModifiedBy": "est officia", "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" } ], "read": [ { "name": "Itential Artifact", "provenance": "Pronghorn", "description": "My short description" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "ullamco exercitation veniam voluptate", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "f5f3e9845b7215c61cb326f3" }, "_id": "e024a89a686c148e901647d8", "lastModifiedBy": "minim magna sint quis ea", "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": "laboris sit", "imported": [ { "success": true, "message": "voluptate proident Ut", "original": { "_id": "9687822c80428b88c5cc7e44", "name": "test", "data": { "gbac": { "write": [ "3206b16f951dd59ae1b958c6", "94178eb46e80cfab406cb9f1", "157f791db5f89626e435c6dc", "c76a6e2b2f6e01d124cb5bae" ], "read": [ "bc6b9782c8d3748b1ce71682" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "adipisicing voluptate", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "96819ce1fe40fa13da5bade4" }, "lastModifiedBy": "nostrud ut magna velit laboris", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" }, "created": null }, { "success": true, "message": "velit ea in nisi", "original": { "_id": "4fca92c8572ffd90b5fba799", "name": "test", "data": { "gbac": { "write": [ "58c0d79e9ed3ed979a774571", "a9b6ec7dfad163f6a5f43d91", "a2d3f2eb2bc80feeda599fea", "81d491e3cda76d5a4f28faf8" ], "read": [ "6e16f5a045630bd48f51ffc6", "f4d8fbed8f268e735015b21d", "a60922a6814d990e5cf6ecfa" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "Excepteur nulla consequat irure qui", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "43814ee1471ab9f701b1fdb0" }, "lastModifiedBy": "do elit incididunt", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" }, "created": { "_id": "4683a5185c732383a4377680", "name": "test", "data": { "gbac": { "write": [ "ddb86e921e927f0893adf6a0", "7d5cf9d6ce1da844d8472a18", "4fab6490b66f9b32ac4af127", "97966b68c4f9d036dc68c7a8", "722e7d4c74a9de8683ee3284" ], "read": [ "19afc2857971ffaa6941dcc2", "d6f6962fe810f7e76b896fb0", "d7226ec451ca065b2e0bd8c0", "01bb4948b13912920ec7939b", "bc1ea9151e9a6090ef006f84" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "laborum dolor ex do consequat", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "956fbb3e33e7e7500e65cc09" }, "lastModifiedBy": "et laboris aliquip non cillum", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" } }, { "success": true, "message": "Duis do eu", "original": { "_id": "b25389b71eb917d34437dbb5", "name": "test", "data": { "gbac": { "write": [ "4daf3d27caa9dcfa12ca7d2d", "2bd8871df3505062d3092b34", "a201b67221917931c4779f7e" ], "read": [ "3ea7f6fedd020c90628581c6", "aab2da1ce00acec1c586c71c", "6998eb7ec3844c263e9eb6f0", "721fbaa124c03ac1d6e2d2e7" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "voluptate", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "71b6d021ce3d1795dc89d338" }, "lastModifiedBy": "Excepteur enim laboris dolore officia", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" }, "created": { "_id": "1e2043bd472e11e94040dabe", "name": "test", "data": { "gbac": { "write": [ "c2153a4f3b037a0967660cc4", "d8cc72d55773b7c18df95842", "2903af810623e91a65fc2f97", "5cf88aa226f47b8fd4b04343" ], "read": [ "934a95296551c7e43999ecc8", "e60c6b7e626816f5e6a77a27", "13fb7b8edec7d33558edc10f", "91c4bc0878b19f1cf140fb9e", "163153663dfee671087c42ad" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "dolor aute", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "4eee7cf7e3ca25f9a2c4cfb0" }, "lastModifiedBy": "id Excepteur non anim reprehenderit", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" } } ] }
{ "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" } ] } } } } }