Summary
Import Automations
Description
Import Automations.
Route
PUT /operations-manager/automations
Roles
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| automations | array | yes | An array of exported Automation documents. |
| options | object | yes | Optional parameters. |
{ "automations": [ { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "f7373f7af9b0d2929e5570a3", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": "Duis do veniam eiusmod consectetur", "createdBy": "ea esse in et", "created": "1957-09-20T08:27:37.058Z", "lastUpdatedBy": "sit Ut adipisicing mollit", "lastUpdated": "1958-07-02T06:55:42.399Z", "triggers": [ { "name": -82146866, "type": -6805468, "enabled": "tempor", "actionType": false, "actionId": "ut velit", "formData": false, "firstRunAt": -3655835.187852934, "processMissedRuns": 25465977.466480047, "repeatUnit": "proident occaecat tempor", "repeatFrequency": -15293907.764700785, "repeatInterval": true, "_id": "sed fugiat", "formId": -16561987 } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "2e14f25e499ef93323b1bee5", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ] }, "componentName": "labore do ex", "createdBy": "enim", "created": "1946-08-21T05:45:08.864Z", "lastUpdatedBy": "voluptate reprehenderit ullamco sint mollit", "lastUpdated": "1999-02-17T12:10:41.286Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "f8c76d3882ea170dcd40dee4", "source": "mollit nisi in in incididunt", "topic": "reprehenderit amet", "_id": "f40f145b908edcf844857aee", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -29340199, "createdBy": "tempor elit nostrud", "created": "1993-05-31T13:50:29.116Z", "lastUpdatedBy": null, "lastUpdated": "1971-01-27T02:24:28.571Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "7efd215ffce87cd4d58d2cdc", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "54edc2250e172db14e6a6b53", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 87710077, "createdBy": null, "created": "1968-06-25T17:16:20.053Z", "lastUpdatedBy": "eiusmod non sint Lorem ea", "lastUpdated": "1965-02-22T00:13:33.318Z", "formSchemaHash": "aute elit ex in magna" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "6ec0f9c90aee6d93408cbf49", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ] }, "componentName": "fugiat ut laboris et magna", "createdBy": "eu voluptate non nulla labore", "created": "2015-02-02T03:27:26.523Z", "lastUpdatedBy": null, "lastUpdated": "2025-10-08T04:31:19.477Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "34780d32906ffd5022b59d45", "verb": "POST", "routeName": "F", "_id": "1fedc4c8f330a6844c5e1f2d", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -39444956, "createdBy": "velit do", "created": "1991-04-05T05:52:45.332Z", "lastUpdatedBy": null, "lastUpdated": "1987-01-02T07:12:06.458Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "9496128a9924defbe7c665b7", "gbac": { "write": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ] }, "componentName": "amet dolor", "createdBy": "nostrud enim id labore", "created": "1951-05-20T03:46:53.428Z", "lastUpdatedBy": null, "lastUpdated": "2020-12-16T08:20:48.863Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "977338e0e58e9b1271164ee7", "verb": "POST", "routeName": "rNo5JK9ZG", "_id": "a0497337717b0baca57a9269", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 67869682, "createdBy": "Excepteur eu", "created": "2024-03-04T18:11:27.635Z", "lastUpdatedBy": "sit eu incididunt", "lastUpdated": "1994-12-12T00:01:24.542Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "d50b002fec75c978cbfeb3ae", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "679de6f4a9546059a543fb47", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 66331998, "migrationVersion": -32161599, "createdBy": "proident sed ipsum culpa Excepteur", "created": "1953-06-25T17:44:06.125Z", "lastUpdatedBy": "aute sint", "lastUpdated": "1985-09-05T13:17:01.392Z", "formSchemaHash": null } ] } ], "options": { "adapterMap": { "staging": "production" } } }
{ "type": "object", "properties": { "automations": { "title": "automations", "type": "array", "items": { "$ref": "automation-json" } }, "options": { "title": "options", "type": "object", "properties": { "adapterMap": { "type": "object", "description": "A mapping of provenance names to be converted upon import, specified in \"old_name\": \"new_name\" format.", "examples": [ { "staging": "production" }, { "old_name": "new_name" } ] } }, "additionalProperties": false } }, "required": [ "automations", "options" ], "additionalProperties": false }
Return
| Name | Type | Description |
|---|---|---|
| status | object | The result of the import operation. |
{ "message": "Successfully imported 3 of 4 documents", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "ff20f416113c6f033e8ac993", "created": "1947-05-27T23:40:08.339Z", "lastUpdatedBy": "6fdf15c205f26087385731e0", "lastUpdated": "1997-06-09T17:38:51.811Z", "_id": "f9cdd620a0b1ac130023f8d0", "gbac": { "write": [ "340a62f2ff5d3a75106dc2a0", "8cc515a49b7cd6eb16485ed1" ], "read": [ "16efc4bb9df2b37bd45450e9" ] }, "componentId": "24f7B92f-ef0A-AB77-B338-A016ED9bbA2F" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "820c73c93368715b666e6b4c", "created": "2025-05-18T21:26:04.243Z", "lastUpdatedBy": "126db3ea4f2397c700224cc7", "lastUpdated": "1952-03-08T12:20:18.96Z", "_id": "428a935ebae962330a1432cc", "gbac": { "write": [ "2c0f8b3152c2804ebcbfb1de", "42efc27b5c18b9d4b317f164" ], "read": [ "9d127e182e99b8151dc1aef1", "9a160e5de260d42be57bf5cd", "89cd0f80eb8b8c7b324a0988", "9b69c52a0c48aaa101f132c1", "af58ffb6be429542974bf27d" ] }, "componentId": null } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "18f399a602814a50e2391dc2", "created": "2006-08-02T10:10:49.703Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1996-08-20T04:31:59.429Z", "_id": "1d16efece62490c91595e8f7", "gbac": { "write": [ "383df455434e445684219f8d", "0e49f3540a11b8b53155bee0", "2b8a539ee9935b46e6cd378e" ], "read": [ "8ea01337d99aa783cd49b27b", "48659ee241588af088dfa7c1", "fd4015c7092e7caef98e3071" ] }, "componentId": "" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "4645b1741d3cef8574b208f1", "created": "2024-07-26T03:00:28.734Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1975-05-15T14:07:02.696Z", "_id": "1d7c1137f6e957962de6de63", "gbac": { "write": [ "a767e5d0e2bdf987b81232d8", "e0f60a337ec365a3896b3d21" ], "read": [ "26a61b144e0a69592edf4162" ] }, "componentId": "1bb7a0d47a0dd15c6c83a509" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "239da1d585e77244ae841790", "created": "1989-09-13T18:46:32.934Z", "lastUpdatedBy": "21cd4d5429145228a0f50e70", "lastUpdated": "1990-09-15T16:00:38.949Z", "_id": "ae6cca11af7f47d3e5cea187", "gbac": { "write": [ "d377b38b01b592f6c17eae74", "3d9c6715d9e5bd7e27992dc1" ], "read": [ "df9db74c0bd270ad04a84c40", "6922150cc603ea3ffc6c99ed" ] }, "componentId": "" } } ] }
{ "title": "status", "allOf": [ { "$ref": "common-api#/definitions/success-response" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "allOf": [ { "$ref": "automation-common#/definitions/commonFields" }, { "$ref": "common#/definitions/metadataFields" }, { "type": "object", "properties": { "_id": { "$ref": "common#/definitions/ObjectIdLikeString" }, "gbac": { "$ref": "automation-common#/definitions/gbac" }, "componentId": { "$ref": "automation-common#/definitions/componentId" } } } ] } } } } } } ] }