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": "z2rUgmS",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "befe6f71b8264d9f1029666d",
"lastExecuted": null,
"migrationVersion": -43161314,
"createdBy": "Pronghorn",
"created": "1969-03-26T12:35:38.746Z",
"lastUpdatedBy": "892226e647c7560eeed5fe74",
"lastUpdated": "2022-02-08T19:19:21.674Z",
"verb": "POST",
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "velit ipsum consequat",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "a8dc69629726e1f597361614",
"lastExecuted": 56268724,
"migrationVersion": 5298337,
"createdBy": "Pronghorn",
"created": "1957-10-17T22:00:13.673Z",
"lastUpdatedBy": "68bd4d6295ab0c68765b030e",
"lastUpdated": "2014-08-23T04:34:50.136Z",
"source": "proident",
"schema": null,
"jst": "c6c8471ff48feefa0b50d349"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "4d0475d30ed50881e25ee109",
"lastExecuted": null,
"migrationVersion": 79710696,
"createdBy": "Pronghorn",
"created": "1949-05-09T23:56:35.039Z",
"lastUpdatedBy": "ca2e43e321c0e5cad867d51f",
"lastUpdated": "2024-02-24T03:57:47.86Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": "voluptate ex ut amet",
"formId": "0d37f926746b3444a50ba636"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "d5b033c81036efdc5325b5b5",
"lastExecuted": null,
"migrationVersion": -96147732,
"createdBy": "8d13a3e621c401d148336f6d",
"created": "1976-12-03T21:14:25.625Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2009-04-19T00:49:46.085Z",
"repeatInterval": 30000,
"formId": null
}
]
}
Return
DetailsExampleSchema
| Name |
Type |
Description |
| createdTigger |
object |
The result of the create operation. |
Copied to Clipboard
{
"message": "Successfully imported 3 of 4 documents",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "65d0bd8cf7ce7aecf8a69b73",
"lastExecuted": 59217938,
"migrationVersion": -18234518,
"createdBy": "Pronghorn",
"created": "1980-03-16T10:48:45.592Z",
"lastUpdatedBy": "f400b518a7411132b3db390c",
"lastUpdated": "1973-03-17T16:50:18.682Z",
"_id": "8bbb112b6100062427993f5d"
}
}