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": "bAF2u",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "67df72e8c4dfd8d6f81fda55",
"lastExecuted": 96153971,
"migrationVersion": -46180445,
"createdBy": "61a02037fcefb6f1582b46e9",
"created": "1993-03-17T22:21:08.635Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2023-06-13T16:50:29.491Z",
"verb": "POST",
"schema": null,
"jst": "2073d9e4b99fd85b77408557"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "velit anim pariatur qui",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "300f5dcb36cfed47f259f8e9",
"lastExecuted": null,
"migrationVersion": 3181886,
"createdBy": "Pronghorn",
"created": "1971-05-14T23:50:59.071Z",
"lastUpdatedBy": "183c6454bc9d527e58e80081",
"lastUpdated": "1995-12-15T11:47:08.307Z",
"source": "proident officia",
"schema": null,
"legacyWrapper": true,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "bd44be5bf4a91271dfaf1381",
"lastExecuted": 76590855,
"migrationVersion": -54122147,
"createdBy": "683eed6f0814a0291bd22ebe",
"created": "1991-01-20T06:09:49.228Z",
"lastUpdatedBy": "cf71a315cd22ef0c97011bfa",
"lastUpdated": "2021-02-14T08:56:14.086Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": null,
"legacyWrapper": false,
"formId": "314483649f4ce68944391589"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "c0dd8e16715a4aa43ea31989",
"lastExecuted": null,
"migrationVersion": -35775722,
"createdBy": "1053926e9d808242f7891277",
"created": "2016-08-26T09:37:15.154Z",
"lastUpdatedBy": "9429e95b76d334b80039421c",
"lastUpdated": "2021-01-17T22:48:21.331Z",
"repeatInterval": 120000,
"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": "511cf198cbdc2d3c1c5c0d32",
"lastExecuted": 64429256,
"migrationVersion": -55052742,
"createdBy": "841417192d67acaf0be03a23",
"created": "1968-01-31T05:40:30.201Z",
"lastUpdatedBy": "0e1dcbd3b26bfb82c5184db5",
"lastUpdated": "1958-01-01T23:26:08.178Z",
"_id": "8004b9940b39d623c9238512"
}
}