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": "ecbcc0aa544ce33b60d9d013",
"lastExecuted": null,
"migrationVersion": -63289216,
"type": "endpoint",
"verb": "POST",
"routeName": "fXRSUw",
"schema": null,
"jst": "2ca4692e0b694a0e6de43c73"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "2ed7eab32d66e6a67b90502d",
"lastExecuted": null,
"migrationVersion": -34436642,
"type": "eventSystem",
"source": "tempor deserunt pariatur",
"topic": "Excepteur dolor do dolor",
"legacyWrapper": true,
"jst": "0decf021f5ac18230d98e235"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "543ba17074fda65ab1dfe1a9",
"lastExecuted": null,
"migrationVersion": -9147013,
"type": "manual",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": "eu Lorem Excepteur et reprehenderit",
"legacyWrapper": false,
"formId": "f1bfb0e0220f19d0f78d52bc"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "dbc097603fba4b039253adbf",
"lastExecuted": null,
"migrationVersion": -66024175,
"repeatInterval": 10000,
"formId": "3ba23c30927becae73c35c5b"
}
]
}
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": "35007a01c750048460f3ccc4",
"lastExecuted": 55495125,
"migrationVersion": 57816340,
"createdBy": "7e31c266a452df5a12de70a2",
"created": "1978-09-13T00:55:30.325Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1947-12-25T07:13:14.786Z",
"_id": "a73342a8a0bd0d04784f224b"
}
}