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",
"actionType": "automations",
"actionId": "5cb7b531d06cceb89fd21b1c",
"enabled": true,
"type": "manual",
"_id": "5cb7b531d06cceb89fd21b1c",
"created": "2019-04-16T00:43:22.038Z",
"createdBy": "4321abcdef694aa79dae47ad",
"lastUpdated": "2019-04-16T00:43:22.038Z",
"lastUpdatedBy": "5cb7b531d06cceb89fd21b1c",
"formId": "5cb7b531d06cceb89fd21b1c",
"formData": null
}
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
the updated trigger document |
Copied to Clipboard
{
"name": "My document",
"type": "endpoint",
"enabled": true,
"actionType": "automations",
"actionId": "4321abcdef694aa79dae47ad",
"verb": "POST",
"routeName": "i",
"_id": "4321abcdef694aa79dae47ad",
"created": "2019-04-16T00:43:22.038Z",
"createdBy": "4321abcdef694aa79dae47ad",
"lastUpdated": "2019-04-16T00:43:22.038Z",
"lastUpdatedBy": "4321abcdef694aa79dae47ad",
"jst": "4321abcdef694aa79dae47ad",
"schema": null
}