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": "65c1e164a37cd932ea534afb",
"lastExecuted": 48157117,
"migrationVersion": -44061944,
"type": "endpoint",
"verb": "POST",
"routeName": "6D",
"schema": null,
"jst": "73c05406a35c1b674d12c739"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "e2d1599803038d9e68f23639",
"lastExecuted": null,
"migrationVersion": 14579000,
"type": "eventSystem",
"source": "adipisicing veniam reprehenderit",
"topic": "consequat",
"jst": "846c3dbe5d368a2ddaa8b6ce"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "46e709d519d29742c2e4dbda",
"lastExecuted": null,
"migrationVersion": 96561408,
"type": "manual",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": "aliquip laboris velit consequat",
"formId": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "527ba35332c9d1107ad463f4",
"lastExecuted": 20919659,
"migrationVersion": -68695729,
"repeatInterval": 30000,
"formId": null
}
]
}
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": true,
"actionType": "automations",
"actionId": "0fc08d337ac04cfdf5f05d44",
"lastExecuted": 49740174,
"migrationVersion": -15743509,
"createdBy": "ad54aca4326456e6cbac0da6",
"created": "2004-06-14T01:42:15.185Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1948-03-22T01:34:40.246Z",
"_id": "1e1444ee261d46d13b412c85"
}
}