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": "KJS2jQA",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "f8b4871e91c291a492507308",
"lastExecuted": null,
"migrationVersion": 25130102,
"createdBy": "Pronghorn",
"created": "1982-01-30T22:20:50.365Z",
"lastUpdatedBy": "a99d6969455c965113f49ce3",
"lastUpdated": "2013-09-13T17:34:06.182Z",
"verb": "POST",
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "proident qui aute",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "a7d249d693121556bf492db6",
"lastExecuted": null,
"migrationVersion": 41071827,
"createdBy": "Pronghorn",
"created": "2025-02-25T10:42:42.739Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1986-10-14T13:28:39.326Z",
"source": "exercitation Duis quis",
"schema": null,
"legacyWrapper": true,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "b82380cdbb1d5faa808eee16",
"lastExecuted": null,
"migrationVersion": -58842731,
"createdBy": "1ed0b5a28d9080ff0877c1d1",
"created": "1959-12-29T10:46:51.881Z",
"lastUpdatedBy": "b1c06d38fdc1f19d6964ef2f",
"lastUpdated": "1975-07-31T14:16:21.218Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"legacyWrapper": true,
"formId": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "123191fed5f1091a4e7ae1bb",
"lastExecuted": 29648360,
"migrationVersion": -65481993,
"createdBy": "44519c4894e1097c028de71a",
"created": "1967-08-08T12:33:44.59Z",
"lastUpdatedBy": "6ca7b78bf992696e0abc7fa3",
"lastUpdated": "2005-11-01T05:45:50.964Z",
"repeatInterval": 30000,
"formId": "56a0c99367abf89f24e21bd0"
}
]
}
Return
DetailsExampleSchema
| Name |
Type |
Description |
| createdTigger |
object |
The result of the create operation. |
Copied to Clipboard
{
"message": "Successfully created the requested item",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "97fffe982311902fc844a9e1",
"lastExecuted": null,
"migrationVersion": -77018984,
"createdBy": "Pronghorn",
"created": "1961-07-29T00:32:51.953Z",
"lastUpdatedBy": "434b7ee651f7a2ef40eb95ad",
"lastUpdated": "2001-04-02T03:10:19.557Z",
"_id": "2e1c18641fdf6db183ff842c"
}
}