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": "esse aute", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "6332516e8a18233d8764e69e" }, "_id": "6bda5014f2aa046d03846be3", "lastModifiedBy": "ea ex proident esse magna", "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": "dolor reprehenderit consectetur", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "5910295ee102eff8a7dca61a" }, "_id": "96f66f63cc9ec44b396e25d6", "lastModifiedBy": "culpa Lorem", "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": "laborum", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "7339fd574099937e7834ced1" }, "_id": "d76e67391de4701ead309ca0", "lastModifiedBy": "exercitation", "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" }, { "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": "do aliquip deserunt nisi", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "585f011051f1c12c777e18d7" }, "_id": "c4c25fee01b6c9c71c491742", "lastModifiedBy": "ullamco incididunt", "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": "ullamco sint magna deserunt fugiat", "imported": [ { "success": true, "message": "reprehenderit ut tempor eu", "original": { "_id": "45aa502f0287135bf7be795e", "name": "test", "data": { "gbac": { "write": [ "0ff3f1f9431149bd959a0bd0", "76f03c24d1653dd2aba55b91", "84eef98d563c80e9eb2f617d", "de318d758f9ce31f3fa3b81b" ], "read": [ "867b6fb82a70f5981bfe89c6", "9973d37d0a268460013f07de", "5896fc9edd48e23bd305c93b" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "nulla labore ullamco dolore", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "936049b75bae667f0ca96036" }, "lastModifiedBy": "reprehenderit", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" }, "created": null }, { "success": true, "message": "in magna dolor cupidatat", "original": { "_id": "98e3a1ae5e2fe0d68a1091a1", "name": "test", "data": { "gbac": { "write": [ "76348ed4c8f848530af2c41b", "c5a71278ce9ce714fee9b1cd" ], "read": [ "efe62dd1810de2bca1f3ed55", "1c592e196db4ee9202647e34", "95d39d0d3e4777075f296a1e", "376a12e5eb02bd4d05d568ca" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "in", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "799656b1877582362cb9e11b" }, "lastModifiedBy": "aliqua anim dolor laboris", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" }, "created": null }, { "success": true, "message": "exercitation commodo anim", "original": { "_id": "01dea29445b069cd8409ddf2", "name": "test", "data": { "gbac": { "write": [ "1fa017e290c44548c3a72924", "b06932be2413ca487bbbbfeb", "ba6557e835b67ceb55a97362", "2bf29a11133a7a6f22d6e857" ], "read": [ "0d2e80024d19b404125a17b1", "c75fc02b22700562627da0ee", "41d93d5beaebba10cfe286d2", "6100c67e611035855d8f59b7" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "in", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "beaee7698631b669a2df4e57" }, "lastModifiedBy": "sit Excepteur", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" }, "created": { "_id": "3392c6c6eed1ecdeb706880c", "name": "test", "data": { "gbac": { "write": [ "ea470fd0b45d7e1d80ae3adc" ], "read": [ "ed6dbf8aafb24e84203ec4ca" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "aliquip", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "182b9275179bd84e976cf5eb" }, "lastModifiedBy": "ut ullamco cillum enim", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" } }, { "success": true, "message": "esse aliquip reprehenderit", "original": { "_id": "e7241b1462ad0ab37487df98", "name": "test", "data": { "gbac": { "write": [ "82622c67c39ba4f4480f166b", "daabee5b9f365b3be9ff46d4" ], "read": [ "f31dfa773b38b685f6faf5a1", "09d94dc71ad30028bf4ccec7" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "Excepteur anim sit", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "aa9fa6be33c9ed378de2c453" }, "lastModifiedBy": "Excepteur labore et pariatur", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" }, "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" } ] } } } } }