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": "0pjIIpz7Z",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "163107e003a06a6f094953c9",
"lastExecuted": null,
"migrationVersion": 92862171,
"createdBy": "Pronghorn",
"created": "1950-08-26T12:17:41.921Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1962-12-20T16:32:44.587Z",
"verb": "POST",
"jst": "1d55179b5d09dcb15a9c7983"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "est elit pariatur",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "54a69480fad008d671c6777a",
"lastExecuted": null,
"migrationVersion": -42085908,
"createdBy": "Pronghorn",
"created": "1988-11-15T21:17:27.448Z",
"lastUpdatedBy": "25411430f1b9faf1030ef57d",
"lastUpdated": "1974-08-22T11:07:18.918Z",
"source": "Excepteur",
"legacyWrapper": false,
"jst": "d53b8330dbe7aba87ce51208"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "4bd26b1d75a6280063c3a257",
"lastExecuted": null,
"migrationVersion": 63066603,
"createdBy": "5328a0f0c1fea414576c1b1a",
"created": "1962-09-09T06:47:43.782Z",
"lastUpdatedBy": "5be5010c9bc9a0abd12dd098",
"lastUpdated": "1984-01-25T12:50:34.804Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "nisi occaecat do enim eiusmod",
"legacyWrapper": false,
"formId": null
},
{
"name": "myCoolDocumentName",
"repeatUnit": "second",
"repeatFrequency": 98597120,
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "1c25e5c431c84884167ae70e",
"lastExecuted": null,
"migrationVersion": 56676328,
"createdBy": "Pronghorn",
"created": "1949-04-28T01:14:25.515Z",
"lastUpdatedBy": "da8aa326ee884e1d5655a058",
"lastUpdated": "1964-02-25T15:05:28.455Z",
"repeatInterval": 30000,
"formId": null
}
]
}
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": "cedd8614d0ad9fe1b292e576",
"lastExecuted": 59670526,
"migrationVersion": 49153694,
"createdBy": "Pronghorn",
"created": "2003-01-26T10:18:20.455Z",
"lastUpdatedBy": "fcdde5a5a092e2582819b974",
"lastUpdated": "1949-01-04T18:13:12.035Z",
"_id": "19ea247b6efff2a9e51e7666"
}
}