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": "xV2VYFvLs",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "03a66b5dfb0a7495326868ae",
"lastExecuted": 59118657,
"migrationVersion": -69643745,
"createdBy": "Pronghorn",
"created": "1988-01-30T20:34:40.156Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1963-09-24T00:25:58.656Z",
"verb": "POST",
"schema": null,
"jst": "491b506e2cac18594e7183c9"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "anim aliqua adipisicing consequat",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "740fd73f81090f0277b9e92f",
"lastExecuted": null,
"migrationVersion": -47858342,
"createdBy": "8f7d6d81de716da7ccab2f36",
"created": "1955-07-16T07:25:06.295Z",
"lastUpdatedBy": "232def3e5518580d5044dc3d",
"lastUpdated": "1951-01-27T12:43:10.129Z",
"source": "amet commodo eu",
"legacyWrapper": true,
"jst": "523bb2b1c8e76e8d7cb6afa3"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "749cdf3b895d8ff26ee6a984",
"lastExecuted": 72714564,
"migrationVersion": -91450979,
"createdBy": "Pronghorn",
"created": "1958-10-12T02:53:47.211Z",
"lastUpdatedBy": "3d2a98b3f79b31b24f5321a7",
"lastUpdated": "1947-05-09T08:00:38.475Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "in nostrud culpa amet minim",
"legacyWrapper": false,
"formId": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "a3a47344c81e7240567b8403",
"lastExecuted": null,
"migrationVersion": 44347311,
"createdBy": "5373d13ce2cde7d6396e6817",
"created": "2001-09-29T21:23:14.485Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1946-02-16T18:44:16.744Z",
"repeatInterval": 120000,
"formId": "a29142abb7a389e6c2350a78"
}
]
}
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": true,
"actionType": "automations",
"actionId": "99d36076cbd4cefb2a38967a",
"lastExecuted": 93703907,
"migrationVersion": 45825559,
"createdBy": "Pronghorn",
"created": "1952-07-02T18:02:37.328Z",
"lastUpdatedBy": "827700c2c7115b35084275ae",
"lastUpdated": "1987-11-12T09:26:41.502Z",
"_id": "8412df6fa34e5b38a5148ea8"
}
}