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": "YODN",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "c65dc5f8b145ee63e84990d1",
"lastExecuted": null,
"migrationVersion": 84451123,
"createdBy": "Pronghorn",
"created": "1946-12-16T13:04:44.658Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1959-06-21T16:42:22.149Z",
"verb": "POST",
"schema": null,
"jst": "8da75b4c767cfd2e81a6d027"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "Excepteur enim",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "c8d5f36ea1aa01c5fc20309d",
"lastExecuted": 96326381,
"migrationVersion": 73948817,
"createdBy": "ead2c0194567249165afd411",
"created": "1975-10-15T14:42:36.834Z",
"lastUpdatedBy": "fdfad855e4fc2307d683a35a",
"lastUpdated": "2022-06-24T21:56:27.535Z",
"source": "voluptate ut ex labore ipsum",
"legacyWrapper": true,
"jst": "5a26b6382a90d6e224ba0858"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "0188f145e3a0fc1ca63ec2f4",
"lastExecuted": 93202623,
"migrationVersion": 32896688,
"createdBy": "5b5401e63e14cd6b8f342869",
"created": "1995-06-28T07:09:32.028Z",
"lastUpdatedBy": "5ac8f86d3e760083f9f1b90f",
"lastUpdated": "1981-05-28T06:38:23.732Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "quis laboris culpa",
"legacyWrapper": false,
"formId": null
},
{
"name": "myCoolDocumentName",
"repeatUnit": "minute",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "e748c4628507a98b2254d3c6",
"lastExecuted": null,
"migrationVersion": -59706567,
"createdBy": "4c8272f287cc3f307f734cae",
"created": "1984-12-01T07:24:42.517Z",
"lastUpdatedBy": "babb18154626f7db821fee80",
"lastUpdated": "1947-07-26T09:37:58.809Z",
"repeatInterval": 10000,
"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": false,
"actionType": "automations",
"actionId": "4f568462c224f74f44a5c3fb",
"lastExecuted": null,
"migrationVersion": -65104512,
"createdBy": "Pronghorn",
"created": "2010-03-04T03:12:39.397Z",
"lastUpdatedBy": "d159af5d25337af907422af4",
"lastUpdated": "2022-12-02T13:36:52.079Z",
"_id": "eefc17b0536942e71358d2b5"
}
}