Summary
Update Trigger
Description
Update the properties of a Trigger document
Route
PATCH /operations-manager/triggers/:id
Roles
admin
apiwrite
engineering
operations
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
id |
string |
yes |
the id of the trigger to update |
updates |
object |
yes |
The properties to update in the existing Trigger document |
Copied to Clipboard
{
"updates": {
"name": "My document",
"type": "schedule",
"enabled": false,
"actionType": "automations",
"actionId": "4321abcdef694aa79dae47ad",
"firstRunAt": 24570135,
"processMissedRuns": "none",
"repeatUnit": "second",
"repeatFrequency": 39302290,
"_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": null,
"nextRunAt": null,
"repeatInterval": null,
"waitFlag": false,
"repeatEnd": {
"endAfter": 93550000,
"restartAfter": 94830000,
"removeAfterEnd": null
}
}
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
the updated trigger document |
Copied to Clipboard
{
"result": true
}