Summary
Update Trigger
Description
Update a Trigger.
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 details of the Trigger document to update. |
Copied to Clipboard
{
"title": "updates",
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "trigger-update",
"oneOf": [
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "331a5fd9d4bbbf2d714abe7c",
"lastExecuted": 13410932,
"migrationVersion": 64163635,
"type": "endpoint",
"verb": "POST",
"routeName": "XhNY2t",
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "8c0498cc0c66e508a557017c",
"lastExecuted": null,
"migrationVersion": 25890219,
"type": "eventSystem",
"source": "aliqua adipisicing",
"topic": "irure",
"jst": "0fd5d6d9b07d8b115a913429"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "69b08bdc5c10a2e356e14565",
"lastExecuted": 19575727,
"migrationVersion": 17791769,
"type": "manual",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"formId": "825dce9d025645e372d188f5"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "5e79a311c3ec7583b3cdc922",
"lastExecuted": 92801032,
"migrationVersion": 39711144,
"repeatInterval": 10000,
"formId": "5bce9ad274acb87acd3ad245"
}
]
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
The result of the update operation. |
Copied to Clipboard
{
"message": "Successfully retrieved search results",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "a62eddc60a73acdfcaefda60",
"lastExecuted": null,
"migrationVersion": 64906566,
"createdBy": "a2a852c8322c736c7041473b",
"created": "1987-09-10T11:36:53.486Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1991-06-19T21:28:26.455Z",
"_id": "7d65b0a41b2cde9b75d132d9"
}
}