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": false,
"actionType": "automations",
"actionId": "6caf803623c1c05240d5645c",
"lastExecuted": 85856976,
"migrationVersion": 11677261,
"type": "endpoint",
"verb": "POST",
"routeName": "HGT",
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "1abca702b6d3bd20761255b6",
"lastExecuted": null,
"migrationVersion": -11201820,
"type": "eventSystem",
"source": "dolore minim irure",
"topic": "ut commodo quis magna",
"schema": null,
"legacyWrapper": false,
"jst": "3d8ef931183e39c89c0db6d0"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "d649ea1472025d2a72d332bb",
"lastExecuted": 54538038,
"migrationVersion": -73532801,
"type": "manual",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"legacyWrapper": true,
"formId": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "c7f42c6a125cd1bb0a35fc68",
"lastExecuted": 90921362,
"migrationVersion": 28268951,
"repeatInterval": 30000,
"formId": null
}
]
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
The result of the update operation. |
Copied to Clipboard
{
"message": "Successfully imported 3 of 4 documents",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "11a78eee518bbafa48292150",
"lastExecuted": 53281727,
"migrationVersion": 68962130,
"createdBy": "8e12c7e5581abe6b3f66453c",
"created": "1973-11-29T01:30:43.321Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2000-09-13T03:06:19.852Z",
"_id": "dde47d03d651aa44c95d7b6d"
}
}