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": "endpoint",
"enabled": false,
"actionType": "automations",
"actionId": "4321abcdef694aa79dae47ad",
"verb": "POST",
"routeName": "1uirs",
"_id": "5cb7b531d06cceb89fd21b1c",
"created": "2019-04-16T00:43:22.038Z",
"createdBy": "Pronghorn",
"lastUpdated": "2019-04-16T00:43:22.038Z",
"lastUpdatedBy": "5cb7b531d06cceb89fd21b1c",
"jst": null,
"schema": null
}
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
the updated trigger document |
Copied to Clipboard
{
"name": "My document",
"type": "schedule",
"enabled": false,
"actionType": "automations",
"actionId": "4321abcdef694aa79dae47ad",
"firstRunAt": 19407814,
"processMissedRuns": "none",
"repeatUnit": "second",
"repeatFrequency": null,
"_id": "5cb7b531d06cceb89fd21b1c",
"created": "2019-04-16T00:43:22.038Z",
"createdBy": "Pronghorn",
"lastUpdated": "2019-04-16T00:43:22.038Z",
"lastUpdatedBy": "Pronghorn",
"formId": null,
"lastExecuted": 64161368,
"nextRunAt": 83031090,
"repeatInterval": null,
"waitFlag": false
}