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" }, { "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": "dolore ex incididunt adipisicing", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "fbb052bedf5cb61ac75507cd" }, "_id": "eff7c31486def23c44da0a55", "lastModifiedBy": "aliqua", "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": "veniam dolore ut elit", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "39b064ef8bfb68dff29315b2" }, "_id": "8a18186ae440a1dd4a7bd45e", "lastModifiedBy": "sed", "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": "fugiat", "imported": [ { "success": true, "message": "magna et dolor quis eiusmod", "original": { "_id": "94954e951db3126d13f40966", "name": "test", "data": { "gbac": { "write": [ "3d03a8755a81b39cd61c6678", "ef88a6ba4f198bfb1fa3298b", "a9e9577c88b1db1523d99a38", "bbd716a118fe7510a6eaa455" ], "read": [ "b7b841a75bcfd27990210fd9", "d87959f97fba5b93c1601512", "bbc0d98b0f0166a01a00817f", "982a70ed7f89491026bcd470" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "aute dolor", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "39e22427c6d2abc5daf11ea5" }, "lastModifiedBy": "sit consectetur reprehenderit non qui", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" }, "created": { "_id": "a81d2de03707b0ef489eda22", "name": "test", "data": { "gbac": { "write": [ "02e0e0c4827e31ad3ea99a36", "ff1a23fec797e5815680121a", "259c9dc00da991c2e9653565" ], "read": [ "64114f28a94df2fb321d1484", "1181bac7318b021c0ca59a19", "a6ff2c918a095bb2032f9e21", "e66a3c96a68ba572a3c47d16" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "Ut dolore do quis ea", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "5bc4052c1b701e96d5f408ef" }, "lastModifiedBy": "ullamco ut dolore officia", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" } } ] }
{ "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" } ] } } } } }