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": "gaI-sLk",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "f78dbb3c541e873826640e5f",
"lastExecuted": null,
"migrationVersion": 92152952,
"createdBy": "3167eb2e6f41b5ad7e49645e",
"created": "2010-12-13T15:22:06.638Z",
"lastUpdatedBy": "36b36b80a3c9303c16061cb0",
"lastUpdated": "1969-09-18T12:40:00.413Z",
"verb": "POST",
"schema": null,
"jst": "1a034392546f2e616c03e6b6"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "veniam culpa amet ut",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "4650313e9521facd1a7c4ef9",
"lastExecuted": null,
"migrationVersion": 24938345,
"createdBy": "Pronghorn",
"created": "2022-12-16T02:42:05.629Z",
"lastUpdatedBy": "afd073ebbc3dc0ebc914a7d8",
"lastUpdated": "1954-01-24T04:49:09.607Z",
"source": "adipisicing Duis aliquip",
"schema": null,
"legacyWrapper": true,
"jst": "9e5b1541a207288f510af30e"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "90f2f764d261cb6f1d162779",
"lastExecuted": 57058562,
"migrationVersion": 14667537,
"createdBy": "Pronghorn",
"created": "2019-03-17T15:57:51.998Z",
"lastUpdatedBy": "a17864d8bd6efde07fb109d7",
"lastUpdated": "1949-04-16T20:35:21.607Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": null,
"legacyWrapper": true,
"formId": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "87d7ed3aa7ca734887f8e174",
"lastExecuted": 34102754,
"migrationVersion": -96533917,
"createdBy": "Pronghorn",
"created": "2001-03-27T08:46:42.407Z",
"lastUpdatedBy": "1f04b85e35f2d3c40fc5bfc0",
"lastUpdated": "2005-06-20T18:53:48.608Z",
"repeatInterval": 10000,
"formId": "4521ca0fdff3489ca4ada833"
}
]
}
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": "d493494fb585046218769d46",
"lastExecuted": null,
"migrationVersion": -60238388,
"createdBy": "d1a1ca90d991e57e218e3bc0",
"created": "2009-01-11T11:50:45.906Z",
"lastUpdatedBy": "12a271d256a4a0aa00d10888",
"lastUpdated": "2022-12-20T22:32:45.065Z",
"_id": "f865f888f9cfc233e43282ef"
}
}