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" }, { "name": "Itential Artifact", "provenance": "Pronghorn", "description": "My short description" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "laborum laboris amet velit", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "13e87418b114d490d1852a19" }, "_id": "9deee86c735572af99eefdf1", "lastModifiedBy": "anim", "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" } ], "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": "id est irure", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "d7074e1351be9cd5cb017313" }, "_id": "9255bcee989efb29d6a9b267", "lastModifiedBy": "irure aute Duis ipsum ex", "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" }, { "name": "Itential Artifact", "provenance": "Pronghorn", "description": "My short description" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "sit sed ea", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "6719972576106c5b12a6f774" }, "_id": "0acf2a92cac5e2d5df4f6f8a", "lastModifiedBy": "sint", "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" }, { "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": "sed Lorem deserunt", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "a561b72319fb03fed7c3f7e1" }, "_id": "b09165154c7a2fff7894230e", "lastModifiedBy": "nulla est Duis dolor", "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" }, { "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" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "sint ad", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "55be968537fb214666181989" }, "_id": "bc777c87280a4941baeffa2b", "lastModifiedBy": "veniam eu dolor velit aute", "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": "elit officia adipisicing", "imported": [ { "success": false, "message": "sit reprehenderit mollit et", "original": { "_id": "a92353a9f7412a5312c15cdd", "name": "test", "data": { "gbac": { "write": [ "526ca77491c2a0049f832d64", "bd894c0ba38b753d11d71f1e", "ec13a2979dbca44265e5df43" ], "read": [ "65e2148b0990c8f22af76e04" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "esse", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "59b44ccc2510e6ac110eabc6" }, "lastModifiedBy": "qui", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" }, "created": { "_id": "83def289ac648c3fe6ab63a6", "name": "test", "data": { "gbac": { "write": [ "d47a43791063998c736dd07c" ], "read": [ "e18bb85004e18ae0fd619a1f", "b9f69da128bfe98a4da5b6e2", "f5c0268f818c14f386435f72", "06faa4d86b2732ac88eed8df", "9f1e1b0561a9753b6e9fda94" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "esse adipisicing minim", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "54e10766cbf0d6697443a029" }, "lastModifiedBy": "magna aute", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" } }, { "success": true, "message": "occaecat Lorem incididunt fugiat in", "original": { "_id": "64aff00e5546b6fa6b36c5f6", "name": "test", "data": { "gbac": { "write": [ "0c7dfdaaa47fc6277c02041d", "529b200f39648eb92521970f", "55ad8c21a8fe0b8495799e4d" ], "read": [ "6c4a10b3437cb46e45ec894d", "7900f47b3a36ca62748cc0f8", "568b88dc2feb33ead5505bad", "99aa49ee2ba2af1abfc42102", "96c4dfc4a3dc38ba53e78efc" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "fugiat dolor et", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "8950af44406301060e71ee0b" }, "lastModifiedBy": "nisi occaecat esse ad", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" }, "created": { "_id": "3be7dfceb72e2bb7f3ea0fde", "name": "test", "data": { "gbac": { "write": [ "5a19eb6d5c59c22a82fecaeb", "d8c9e9fa4dcc9c633aaa66e4", "304c646c54427766457e6251" ], "read": [ "48c00684c3594e1042b22b1c" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "quis Excepteur velit non", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "8c5f4702aa328c2db900f1e4" }, "lastModifiedBy": "aliqua irure officia", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" } }, { "success": false, "message": "culpa", "original": { "_id": "3df3ac7c4b34da3769429741", "name": "test", "data": { "gbac": { "write": [ "3348f4540f21a80316eba741", "ad8df8ed58e2c242cbf3dd12", "e68b8f1295a4b01a6e8289d3" ], "read": [ "13475ec1433c6d45374a102b", "f268dad72ac9e657cdb5dba0", "e833d3ad706ae6fb7c2c7beb", "7739b4ed13a5900fd6ede5e8" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "est consectetur", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "c9055667bdddddecdb323c96" }, "lastModifiedBy": "cillum enim elit", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" }, "created": null }, { "success": false, "message": "exercitation quis anim magna deserunt", "original": { "_id": "ddf947bff48326ce07e5525a", "name": "test", "data": { "gbac": { "write": [ "298e3e088b814a2085a59799", "075f73ef5a390a16a02aa57c" ], "read": [ "7ce3c924edfe820361d506cd", "36f35c5942736544378e41c0", "5fcaf57cd45951e607368866", "78925596dd01c750d14f6b20" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "elit", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "b299bba4f44200542ac16758" }, "lastModifiedBy": "tempor dolore in", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" }, "created": { "_id": "60ce0f19aab526ff80181e93", "name": "test", "data": { "gbac": { "write": [ "962a7ac737e656e9c2309061", "abf760c575ffef405e1e7d58" ], "read": [ "6f4da6ce4b2441f03d7706a5" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "eiusmod velit", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "7f97ef7302d15046cbef6f33" }, "lastModifiedBy": "enim", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" } }, { "success": false, "message": "reprehenderit ullamco in anim", "original": { "_id": "1d0e4bd2402bc26dd9677b6b", "name": "test", "data": { "gbac": { "write": [ "7d0f303ebce5e20f7c125ea5", "c4d22cabc6f765cf5ef7380b", "945c54d42a70f3e2fb38346f", "8a2ac89d905852ab25fb2e48", "99e02dcd585c1f6352703ec0" ], "read": [ "10a2a8a737411de579c9b6f5" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "cupidatat", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "91250c0e8a539fa20d344770" }, "lastModifiedBy": "fugiat exercitation", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" }, "created": { "_id": "41403c63100738e53eebde96", "name": "test", "data": { "gbac": { "write": [ "b2e03931f4b5ba64723516e6", "e8b6f63da7f3b0e1d272e603" ], "read": [ "01765d378976633d95617962", "76a635e7e5b1cf102fc241a6", "99cd0b7a8fce5d92f1a7aa9a" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "dolore", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "05b60573ff46827e8cefd147" }, "lastModifiedBy": "ut incididunt", "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" } ] } } } } }