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": "ex in", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "ca35704837b524bbe7b7c647" }, "_id": "d7370c3d5cf24e3e868f6a07", "lastModifiedBy": "dolor", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" }, { "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" } ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "sit Duis sed consequat", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "68de054224d0c17d90b84fec" }, "_id": "1616134c4b5a699b9f5a375f", "lastModifiedBy": "elit", "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" } ], "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": "Excepteur ut", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "a63ed19ee868afa029a6d4bc" }, "_id": "c71351c6e14e333efa3358aa", "lastModifiedBy": "minim esse commodo in", "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" } ], "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": "ipsum ea Lorem quis magna", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "5db5bc781142d1020dcb7569" }, "_id": "bca73a9ea511e3600cd143d5", "lastModifiedBy": "consectetur reprehenderit cupidatat incididunt proident", "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": "eiusmod tempor in aliquip", "imported": [ { "success": false, "message": "deserunt laborum et", "original": { "_id": "c0feed55343b55dcc9d68c97", "name": "test", "data": { "gbac": { "write": [ "e90cabf87f1fe82317d7a902", "9f6e97648da35e7bc9238f79" ], "read": [ "9a5023553e60e75f1a1e888a", "3a508c1cc29c8d5b8eec8bd1", "2b06dc00d71c6299ea396d79", "e563b996586ed6441ae3619f" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "occaecat laboris", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "6d31897512e861e718266765" }, "lastModifiedBy": "sunt occaecat", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "2 months" }, "created": { "_id": "38f662e3487464790e410aa8", "name": "test", "data": { "gbac": { "write": [ "4c67094f29abc6d3ff0acae5", "efed931d2db6eefcf8297dd1", "89c1f523a24492c2ed89b6e7" ], "read": [ "7088a3ed6feac7f1c2ba14c4", "18df5bb83d33affbb99963dd", "388f030551d5b0c453c96fcb" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "deserunt", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "7e38e8b2a878ec5af6bb504f" }, "lastModifiedBy": "sunt", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 day" } }, { "success": false, "message": "cupidatat", "original": { "_id": "f7ce65b383eed58d931247e3", "name": "test", "data": { "gbac": { "write": [ "ed122aedb4ca6294d33843fa" ], "read": [ "7031dfccc91f48df52962b30", "fb7fb524b2a635de338ffcf7" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "Lorem magna enim fugiat dolore", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "54e4a151b535503fe4ea31cb" }, "lastModifiedBy": "aliqua commodo eiusmod", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "3 weeks" }, "created": { "_id": "c79aaea975c0ed08dec42559", "name": "test", "data": { "gbac": { "write": [ "a26652c23ecc389fc1df885d", "cbc9a1f21fb90033742635b5", "42c6278e841e22946d4262b9", "2149066883f460b36e3b452e" ], "read": [ "7b6274f6ac2498f08c037ca2", "83ad66220aa746d1b7a6d688", "a28d2cf116a07765e2e79756" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "qui incididunt ea commodo", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "fbb2125067df908bb09fc5ae" }, "lastModifiedBy": "labore", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" } }, { "success": true, "message": "adipisicing deserunt commodo occaecat", "original": { "_id": "75c38e6aa9a7b3d4b701b63d", "name": "test", "data": { "gbac": { "write": [ "a81703b80219d95cd27416f6", "9eac1ed6160dc7b2f60f7d67", "a9a4c87a9469a6c8b6c8d36b", "04773c69a122a93d7cc72a20" ], "read": [ "ed67f93873b47d02766f3b0d", "8bad2869a6e18d0452a797a4" ] }, "lastUpdated": "2019-11-25T22:51:39.201Z", "description": "consectetur ea Excepteur sunt laborum", "workflowId": "8e3695fe-c5bf-4286-ae83-186b3fea1c1a", "formId": "a0d7395b219cccf9359db62f" }, "lastModifiedBy": "est non in qui elit", "lastRunAt": "2019-11-25T22:51:39.201Z", "nextRunAt": "2019-11-25T22:51:39.201Z", "repeatInterval": "1 hour" }, "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" } ] } } } } }