Summary
Create Trigger
Description
Create a new Trigger.
Route
POST /operations-manager/triggers
Roles
admin
apiwrite
engineering
operations
Parameters
DetailsExampleSchema
| Name |
Type |
Required |
Description |
| trigger |
object |
yes |
The details of the Trigger document to be created. |
Copied to Clipboard
{
"title": "trigger",
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "trigger-create",
"oneOf": [
{
"name": "myCoolDocumentName",
"type": "endpoint",
"routeName": "xGaT",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "dd18f95120524a27c1ef698e",
"lastExecuted": 38353355,
"migrationVersion": -19751785,
"createdBy": "Pronghorn",
"created": "1983-04-23T16:21:25.162Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2024-06-21T10:40:49.97Z",
"verb": "POST",
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "ex ea aute consequat",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "ab2f7c9af69a8a034da3e8aa",
"lastExecuted": 74318820,
"migrationVersion": 94186644,
"createdBy": "7d32aa9047d04f900ef84c74",
"created": "2021-04-07T22:16:32.941Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1962-01-24T14:03:44.201Z",
"source": "qui laborum velit non",
"schema": null,
"legacyWrapper": true,
"jst": "865e316d791c151fabe50d24"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "9d25eca5b72ef2e6a25e8d2e",
"lastExecuted": null,
"migrationVersion": 8242654,
"createdBy": "Pronghorn",
"created": "2017-02-14T06:50:47.832Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1975-11-10T19:12:41.562Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": "proident minim Lorem",
"legacyWrapper": true,
"formId": "4c99c68ed12538e48f41a183"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "8bfdba6567f234a080b382e8",
"lastExecuted": 23225281,
"migrationVersion": -47574305,
"createdBy": "f4c0dde412eb6f97132722e6",
"created": "1990-11-02T02:57:38.445Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1983-08-31T11:11:21.438Z",
"repeatInterval": 10000,
"formId": null
}
]
}
Return
DetailsExampleSchema
| Name |
Type |
Description |
| createdTigger |
object |
The result of the create operation. |
Copied to Clipboard
{
"message": "Successfully retrieved search results",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "a8ac1bd19418c1a4acf0f6eb",
"lastExecuted": null,
"migrationVersion": 33262604,
"createdBy": "Pronghorn",
"created": "1989-10-11T22:50:13.717Z",
"lastUpdatedBy": "b542c072998b3adfff20e3d1",
"lastUpdated": "1946-03-05T12:37:17.708Z",
"_id": "eaaef01f8da4d7769d9df0b0"
}
}