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" }, { "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": "voluptate commodo deserunt", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "66902c9eb7767a1b96504d0f" }, "_id": "c4d5b977e2edbf1069cd002e", "lastModifiedBy": "ullamco", "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": "anim aute eu aliquip", "imported": [ { "success": true, "message": "tempor id amet sint ut", "original": { "_id": "7a87621cf252f7c345376294", "name": "test", "data": { "gbac": { "write": [ "de312fd8b3c04a03ded278aa", "00366185dc3d655a8d5992ad", "cb02d3dc455cac65bf19359c" ], "read": [ "1ed930ed3bb69fe7c979e7fd" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "fugiat dolor", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "efe4efd1a1b8b84ea2ff3245" }, "lastModifiedBy": "dolore anim officia", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" }, "created": null }, { "success": true, "message": "proident", "original": { "_id": "46ca12654dfa2a300bba074a", "name": "test", "data": { "gbac": { "write": [ "37f735247d6b1db2deba3939", "44b4af36526bb79482ffe9bb", "ecbc99bc40bebc574b53307a", "a238d961ac9b3bf98f86054a", "eb84bf5c9bc704954961f48c" ], "read": [ "8cc55c2b5466de25292ac085", "34bfcd89617c2f04fb34dfb4" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "et officia proident", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "a6b804b4eab1dcd073cd164c" }, "lastModifiedBy": "ipsum est", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" }, "created": null }, { "success": true, "message": "aliqua ullamco Ut anim", "original": { "_id": "cf8b82ca3b8bc00d23543e3e", "name": "test", "data": { "gbac": { "write": [ "b28a90d878c745044080487e" ], "read": [ "46cb967be7c23fd4d551d23e", "c65143afbc6cd59afbeac908", "99deef99282e7e96a2f91928", "004b5d36d11a107140693d32" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "quis", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "ea01d47b3563293c1ef26410" }, "lastModifiedBy": "elit", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" }, "created": { "_id": "36534c05e72b078c9b0561c8", "name": "test", "data": { "gbac": { "write": [ "eb481d3cfa12dcc46345343f", "88a338cb32bcf24779e990cd" ], "read": [ "c5f28f71b79f6c91afdf9315" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "fugiat sint qui", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "587dd1ae55fb8895192723ec" }, "lastModifiedBy": "reprehenderit Excepteur fugiat Lorem nulla", "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" } ] } } } } }