Summary
Create Trigger
Description
Create a Trigger document
Route
POST /operations-manager/triggers
Roles
admin
apiwrite
engineering
operations
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
trigger |
object |
yes |
the trigger document to create |
Copied to Clipboard
{
"trigger": {
"name": "My document",
"type": "schedule",
"enabled": true,
"actionType": "automations",
"actionId": "5cb7b531d06cceb89fd21b1c",
"firstRunAt": 43650243,
"processMissedRuns": "last",
"repeatUnit": "minute",
"_id": "4321abcdef694aa79dae47ad",
"created": "2019-04-16T00:43:22.038Z",
"createdBy": "5cb7b531d06cceb89fd21b1c",
"lastUpdated": "2019-04-16T00:43:22.038Z",
"lastUpdatedBy": "Pronghorn",
"formId": "4321abcdef694aa79dae47ad",
"formData": null,
"lastExecuted": null,
"nextRunAt": null,
"repeatInterval": null,
"waitFlag": false,
"repeatEnd": null
}
}
Return
DetailsExampleSchema
Name |
Type |
Description |
createdTigger |
object |
the created trigger document |
Copied to Clipboard
{
"name": "My document",
"type": "schedule",
"enabled": false,
"actionType": "automations",
"actionId": "5cb7b531d06cceb89fd21b1c",
"firstRunAt": 69230729,
"processMissedRuns": "last",
"repeatUnit": "day",
"_id": "4321abcdef694aa79dae47ad",
"created": "2019-04-16T00:43:22.038Z",
"createdBy": "Pronghorn",
"lastUpdated": "2019-04-16T00:43:22.038Z",
"lastUpdatedBy": "Pronghorn",
"formId": "4321abcdef694aa79dae47ad",
"formData": null,
"lastExecuted": 23891310,
"nextRunAt": 41570602,
"repeatInterval": 57960447,
"waitFlag": true,
"repeatEnd": {
"endAfter": 84080000,
"restartAfter": null,
"removeAfterEnd": false
}
}