Summary
Import Triggers
Description
Import Triggers.
Route
PUT /operations-manager/triggers
Roles
admin
apiwrite
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
triggers |
array |
yes |
An array of exported Trigger documents. |
options |
object |
yes |
Optional parameters. |
Copied to Clipboard
{
"triggers": [
{
"name": "myCoolDocumentName",
"type": "manual",
"enabled": true,
"actionType": "automations",
"actionId": "2b5d1d615a67b053bb2ee1c9",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"_id": "11b1ea04652fdc4ffd0a5800",
"formId": null,
"description": "Some helpful information about the document",
"lastExecuted": 28212907,
"migrationVersion": -42000854,
"createdBy": null,
"created": "1956-08-09T15:33:31.158Z",
"lastUpdatedBy": null,
"lastUpdated": "2011-04-09T09:24:32.932Z",
"formSchemaHash": null,
"legacyWrapper": true
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"enabled": false,
"actionType": "automations",
"actionId": "15a095a6fd67043c9ba3c99b",
"source": "sint ut cillum quis",
"topic": "adipisicing fugiat dolor",
"_id": "52f25deb1295266b8a4b6a24",
"description": "Some helpful information about the document",
"lastExecuted": 22763816,
"migrationVersion": -52083702,
"legacyWrapper": false,
"createdBy": "aute nisi",
"created": "1951-04-11T17:26:47.308Z",
"lastUpdatedBy": null,
"lastUpdated": "1984-05-30T22:19:44.288Z"
},
{
"name": -75221357,
"type": -22282929.29408613,
"enabled": -27199847,
"actionType": -57715210,
"actionId": "in laboris aliquip Excepteur cupidatat",
"formData": "minim laboris reprehenderit enim",
"firstRunAt": -7467459,
"processMissedRuns": false,
"repeatUnit": -50181904,
"repeatFrequency": "est occaecat aute",
"repeatInterval": 6693445.693433866,
"_id": -41937168,
"formId": -78532535
},
{
"name": "myCoolDocumentName",
"type": "endpoint",
"enabled": false,
"actionType": "automations",
"actionId": "a004090e7f639de01ec9458e",
"verb": "POST",
"routeName": "2OdJGY",
"schema": null,
"_id": "e37ffbb189c188d1cd314a27",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": 56881160,
"migrationVersion": 99817183,
"createdBy": "laborum exercitation pariatur voluptate Excepteur",
"created": "2024-01-11T07:28:13.299Z",
"lastUpdatedBy": null,
"lastUpdated": "2016-07-27T03:55:57.486Z"
}
],
"options": {
"adapterMap": {
"staging": "production"
}
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"triggers": {
"title": "triggers",
"type": "array",
"items": {
"title": "triggers",
"$ref": "trigger-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": [
"triggers",
"options"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
createdTigger |
object |
The result of the import operation. |
Copied to Clipboard
{
"message": "Successfully imported 3 of 4 documents",
"data": [
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "86488f801368ad476ab84661",
"lastExecuted": null,
"migrationVersion": -72263902,
"createdBy": "Pronghorn",
"created": "1986-02-15T13:57:22.633Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1962-05-16T17:11:37.784Z",
"_id": "96404c984f74a05ed42c6b49"
}
}
]
}