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" } ], "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": "ullamco incididunt officia exercitation", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "0a85f81093a7534fa117015d" }, "_id": "1abf91767d26dd334ecc6ebe", "lastModifiedBy": "id amet in consectetur", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" }, { "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" }, { "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": "adipisicing ipsum ullamco", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "340beaa428d229d08aae4630" }, "_id": "b20baa1068fbdfc77da97f96", "lastModifiedBy": "dolore ea", "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" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "reprehenderit in laboris in ipsum", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "e036c07dc1202c6e3e6262c7" }, "_id": "8d61c02ea27d7a44e299480d", "lastModifiedBy": "veniam sit pariatur", "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": "id eu ad Excepteur", "imported": [ { "success": false, "message": "quis Duis id", "original": { "_id": "39a071176b9c84d43606c075", "name": "test", "data": { "gbac": { "write": [ "0e912868cd4363d3339abd25", "65c5e9bc7dce5dd65972f16d", "17a21e58d354d11c822067cf", "a11fce7eff7d971dc48cccd8" ], "read": [ "ab64a88beaefcab5161013a2", "e7de4c8543af5a9bb3e8b9e9", "5aebc158475509b0029a4208", "e79f461a400c745928ce9114" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "id adipisicing culpa in", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "c011cbdb857e2cef834644d7" }, "lastModifiedBy": "tempor dolore sed amet", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" }, "created": { "_id": "30ea43fa431b1837bb95b5f4", "name": "test", "data": { "gbac": { "write": [ "6dbe65965354492008dc5c78" ], "read": [ "b629a8ca0c82eb91b2c1ccb1", "e64809289082108fd7261041", "210b50c73a9f50e130c62f74" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "enim", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "230251798d4e92549e6b59e1" }, "lastModifiedBy": "laborum anim", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" } }, { "success": false, "message": "pariatur et", "original": { "_id": "83e485f290a5008ee13aafb4", "name": "test", "data": { "gbac": { "write": [ "a9b586e36abb9462aaafeb26", "b4939bb53336a8c37ded44f0", "2982d991a9599a9e9058d499", "6fd157c464909086276d2621", "80e8ced51567ef80db2c208e" ], "read": [ "b02d422fa6e59bce8884a0f0", "d42f3eff9fe41149cea12880", "89c62ab4b3d60f93721ae574", "2f4fa441c1fcce8cacf39ddc", "2590590d3f5a3912288c0c0b" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "eiusmod nisi", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "f21e7f641d7ded0cf2c05bb3" }, "lastModifiedBy": "Duis in pariatur magna ad", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" }, "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" } ] } } } } }