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": "Lorem esse proident", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "8fd4236649d3cb546495cdfc" }, "_id": "498f6b64593a1b8e1ed612c7", "lastModifiedBy": "id dolor dolore tempor", "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": "exercitation anim cupidatat", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "8fef861d9d64800e458a1d6b" }, "_id": "9b85a993e649b6c1b68cad25", "lastModifiedBy": "qui dolore sed cillum", "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": "cupidatat nisi exercitation tempor sint", "imported": [ { "success": false, "message": "velit mollit consequat amet eu", "original": { "_id": "a5db9d0d11ae2f248eeb5420", "name": "test", "data": { "gbac": { "write": [ "36bfe62b60ceac7e76116303", "f54d20fa988e74c2853d2a23", "c0813329875e8869c2582f9e", "309343f5d7cd56a8b9a9e019" ], "read": [ "6bcd5f613f701bea8a1231b8", "7e1bdb11a0bf8c2c9e4d16bb", "225d4921438b80a39c26d541", "f056f088728430fb44121a94", "0f27b83d6bfda2afbcc8fcb7" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "minim mollit", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "51252688c4366a7af53bc4bd" }, "lastModifiedBy": "aute dolor", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" }, "created": { "_id": "513e3360bf9854332dc03403", "name": "test", "data": { "gbac": { "write": [ "cc9e41564c9eb8b70e74a24c", "ce6c12bb993bbcf3ec5717f5", "1fafb637e387dc95518aea53", "e5b9019c00e2cd580c6f2eb7" ], "read": [ "430fd5bec13cb044cd715eec", "533f003071cf37132672f282" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "qui commodo occaecat ex ut", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "0626b8a0b40e438735191cce" }, "lastModifiedBy": "tempor id eu minim magna", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" } }, { "success": false, "message": "et ullamco sint", "original": { "_id": "fe3b96a9e168a866a17b7585", "name": "test", "data": { "gbac": { "write": [ "32fc252bb86f036e9f75f56b", "0d5844da79ea909415297ede" ], "read": [ "19f5d85d6568f957125d73d0", "d5daf1655cc39577f8679118", "24f83fd5fb1c82b7d7e01896", "6f29d8322dfe51ac68379c63" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "ut minim in esse ut", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "4340bb9b40ca47e47f9c5215" }, "lastModifiedBy": "deserunt", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" }, "created": null }, { "success": true, "message": "ex sint mollit", "original": { "_id": "aea90edd3d9c37f9c665eec3", "name": "test", "data": { "gbac": { "write": [ "c951571bfb22e883a1f59a47", "0e0c4bd93e003fd2d5bf2a7a" ], "read": [ "3550957abd33b6705b6c2308", "6a20e35889b2e9f7f9590688" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "id sit fugiat", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "7386ade6b6c4258a256eb4b3" }, "lastModifiedBy": "culpa reprehenderit velit in commodo", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" }, "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" } ] } } } } }