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": "461730ca220120dbc1aa8142",
"lastExecuted": 57697449,
"migrationVersion": 99549941,
"type": "endpoint",
"verb": "POST",
"routeName": "amTKxXm",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "0eeace2dc3fb076fc37be2a3",
"lastExecuted": 10888506,
"migrationVersion": 13717242,
"type": "eventSystem",
"source": "aliqua laboris",
"topic": "eu in dolore culpa Ut",
"legacyWrapper": false,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "326f0b170b0da7f48decc817",
"lastExecuted": 11871420,
"migrationVersion": -54437408,
"type": "manual",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": "qui",
"legacyWrapper": true,
"formId": "81adac5714929f13e3c69b90"
},
{
"repeatUnit": null,
"repeatFrequency": null,
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "d58b580a80d35e42d4b69560",
"lastExecuted": 13809649,
"migrationVersion": -85451851,
"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": false,
"actionType": "automations",
"actionId": "d8ad6e5d208701f94a7dfdf3",
"lastExecuted": null,
"migrationVersion": -97102878,
"createdBy": "Pronghorn",
"created": "2012-02-29T21:30:23.338Z",
"lastUpdatedBy": "573a2f2e5a7b13ce83620e1c",
"lastUpdated": "1991-05-20T10:23:43.482Z",
"_id": "1a82b12794fe7b3c4e9edf26"
}
}