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" }, { "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 nostrud Lorem", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "99b848955469e0c18dc8357d" }, "_id": "61ef2cc3007bffc8495539ea", "lastModifiedBy": "nisi esse labore proident", "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" } ], "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": "mollit", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "8e229abea6ca725fc261e07e" }, "_id": "dfe91247b85d198efd7735f4", "lastModifiedBy": "sit sint velit reprehenderit amet", "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": "Ut sint culpa qui id", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "5d5ba5a937a67c2b24e125ab" }, "_id": "d2831c582f2b25676f6577f2", "lastModifiedBy": "aute dolore in est", "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" } ], "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": "consequat sunt officia", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "3d1ad36eb9ac8f4450b84ead" }, "_id": "b738b1ff72ce2895f9718581", "lastModifiedBy": "pariatur do voluptate", "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": "dolore sit non", "imported": [ { "success": false, "message": "fugiat sit voluptate officia deserunt", "original": { "_id": "a207eea73872100401c25932", "name": "test", "data": { "gbac": { "write": [ "7e25f587897f51f616e539e4", "6e56e3d039b84843f22a00f8", "2a0ec0b6bbda41b942e97155" ], "read": [ "710f89f1735c08935e5a19d5", "65b28a15c70c4c66c0eed935", "15a1d59205cf6b0e1ca457f4", "ba33a7434415d941c88da020" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "ea", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "d096e6d24c0e446466b3ea9c" }, "lastModifiedBy": "est", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" }, "created": { "_id": "4e72cecd91ff26c09041e18a", "name": "test", "data": { "gbac": { "write": [ "4971f1060b59fbe1ed492ce8", "9ad76ac96f7c78eb9efd62be", "a6b628a096d2c800477ff3ba" ], "read": [ "689293abad4bd9046166810b", "39fdd946b8235a31f9cc65e7", "7200a198d5ff111c3df8c63a" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "ex sint reprehenderit laborum", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "ef2467f62c640c6dcadb2b09" }, "lastModifiedBy": "non velit", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" } }, { "success": false, "message": "reprehenderit", "original": { "_id": "c290c32feb698a6074dd3393", "name": "test", "data": { "gbac": { "write": [ "1206aaecf82a5cff2a00f3ae", "2b4d9dda9a2967df8f77b84e", "ba606bc262987252f271db61", "50d61f1e0d28150e15fe708d" ], "read": [ "f1d7b061fa90325ee93036c3", "6e517bd7f4c27ed992b2e902", "79f8e059f93b0c899c98ebd7", "a4f438d1c12c2e5eb372c489", "1cd178d7b6f3241b64df9f59" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "Excepteur esse laboris amet ipsum", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "61a40fc955b5243cfb507f33" }, "lastModifiedBy": "amet", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" }, "created": { "_id": "6a88db248d72b0e6efd115e3", "name": "test", "data": { "gbac": { "write": [ "2dc2ff57792f1e1cb86e7e33", "7d5daa9c35457e3658de4726", "d2a33a3f5d208bcb1cfb4f22", "ed281d747e8345ca97b22605" ], "read": [ "1665680faf987804b1ee060e" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "deserunt consequat est Ut elit", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "29683a47edc26035621788a4" }, "lastModifiedBy": "ea", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" } }, { "success": false, "message": "sit", "original": { "_id": "6017e52176a67812fd62722b", "name": "test", "data": { "gbac": { "write": [ "b456fc7e32cdf1bd10842ccb", "ede64fa32831edcb6ec8f1ae", "a6a7deb68a94234533c3655f", "74d80e5f5563cc705559bd28" ], "read": [ "212001753f53f40054644735" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "non", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "f4e7dc6510b158f75ac802fd" }, "lastModifiedBy": "Excepteur fugiat", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" }, "created": { "_id": "16602c5df9c2f55c7f77cf12", "name": "test", "data": { "gbac": { "write": [ "4165aa7beb17fc16e59c146e", "966631771a15ff854fda5cea", "e09877f8947a9c1f253baa96" ], "read": [ "48eba46e00228eeb0409adfe", "499b85bbf096b2946e83b9a4", "198ef040ed1c3c69c5e55a03", "14fa7a778b964e8e7773a95f" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "ea Lorem", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "7b24faf5562008f0d193eb53" }, "lastModifiedBy": "et ut", "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" } ] } } } } }