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": "officia magna", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "ce31a91fa53fe28ee387db5e" }, "_id": "9afd55493a6620a50c7fa3f0", "lastModifiedBy": "dolor Duis do voluptate commodo", "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": "ex", "imported": [ { "success": false, "message": "sunt exercitation Lorem", "original": { "_id": "6ccf6639b643cc2224bf089f", "name": "test", "data": { "gbac": { "write": [ "5826ce32043c48a6d25d2771", "4e34b83e893b0b1e049619fa" ], "read": [ "080aa8f18217b714b8335a25" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "Duis dolor", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "a18d4be625ee18896dabac8d" }, "lastModifiedBy": "ut veniam enim ut", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" }, "created": null }, { "success": true, "message": "Excepteur labore in mollit dolore", "original": { "_id": "f1c93166c2d844caf6d94113", "name": "test", "data": { "gbac": { "write": [ "aeb1c1c96c66959ed21b81d2", "77af70ca21091a720875e0fc", "f2c7a9efeb9a86bec1640df7", "243e4a2a916ae9021298f86d", "6e607a74e31bfd7ba680749a" ], "read": [ "5eb556123ed2861822ed380d", "d6e015f826c1d9ec4affc28e", "20881c5c8c40ef74a0525fb3", "88fc894f218f3e055beb56bb", "f5d274de2e3153e2f178df0e" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "commodo occaecat deserunt", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "15183261293c5e013e19b530" }, "lastModifiedBy": "laboris", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" }, "created": { "_id": "19406c4849c1281f6823494e", "name": "test", "data": { "gbac": { "write": [ "993f6f070da577c8eed57bd5", "8b9beda0fe75ecbe1ea143fc", "d3cb54586c65d09ff689f5ed" ], "read": [ "b86609ee0d836df09bb8808e", "1359a650fd41430155b314d0", "68b07271e84ba9b5b03606ad" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "velit dolore irure exercitation", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "a641533f12c37d72689e15fb" }, "lastModifiedBy": "est", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" } }, { "success": false, "message": "laborum", "original": { "_id": "2b10a839d372f08db4308ca7", "name": "test", "data": { "gbac": { "write": [ "781fce149f467d805d54867c" ], "read": [ "6f60979d6d956e90fc42957a", "c69415024099404176fa4de7", "69d410f84d4bed0dc5e31bba", "94339c6741637e65cdcfb4c6", "d1910e736c6e395bf008bc40" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "ad", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "117f5dc27c6e0b40a5c6b8f6" }, "lastModifiedBy": "Excepteur ut eiusmod occaecat dolor", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" }, "created": null }, { "success": true, "message": "pariatur", "original": { "_id": "a06f057e7c3b614e3fda5355", "name": "test", "data": { "gbac": { "write": [ "3dc21cde71ac2339f74e8036" ], "read": [ "2e320fb7245e1c4be149658e", "4ba85d2dcf41a2986ea38329", "a063e2f5163b0a9a80553442", "27e43b8edd68e6f772add5d3", "ed04e5f0890a3779b96d86d1" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "ut", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "959e81ed2add71f4b25be44c" }, "lastModifiedBy": "sunt aute sed", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" }, "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" } ] } } } } }