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": "e325477c1a18c717131a7dc8",
"lastExecuted": 10950729,
"migrationVersion": 19117347,
"type": "endpoint",
"verb": "POST",
"routeName": "fCwVwc",
"jst": "e049b9cab7bf57c590e431d8"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "0a58debb48b677739f8772a1",
"lastExecuted": 49603296,
"migrationVersion": 62686702,
"type": "eventSystem",
"source": "deserunt culpa labore",
"topic": "velit culpa non enim deserunt",
"legacyWrapper": false,
"jst": "bef7c878ee9579f77e26a80f"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "17d47eeedd37306227a53436",
"lastExecuted": null,
"migrationVersion": -80298358,
"type": "manual",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"legacyWrapper": true,
"formId": "ff011e771f452648ca11306e"
},
{
"repeatUnit": null,
"repeatFrequency": null,
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "5b6afaa11d33fb1e4973d532",
"lastExecuted": 38116743,
"migrationVersion": 69138976,
"repeatInterval": 30000,
"formId": "e85a43c2748455c982dac0ce"
}
]
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
The result of the update operation. |
Copied to Clipboard
{
"message": "Successfully created the requested item",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "a679a79abd76fc06095e4bf2",
"lastExecuted": 5067527,
"migrationVersion": 78947468,
"createdBy": "e3015440a211446c7f96083f",
"created": "1967-07-02T00:22:02.876Z",
"lastUpdatedBy": "2f9f76405f4f3a785bd2bea2",
"lastUpdated": "1983-10-08T12:22:03.267Z",
"_id": "f7df0162e745e6f629a48e56"
}
}