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": "6f3160b11926d62bd96a3f9c",
"lastExecuted": 16997942,
"migrationVersion": -23869845,
"type": "endpoint",
"verb": "POST",
"routeName": "O",
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "2c0d6ce07c8d40ec217ffa1a",
"lastExecuted": null,
"migrationVersion": 12381113,
"type": "eventSystem",
"source": "id elit",
"topic": "veniam id occaecat",
"schema": null,
"legacyWrapper": false,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "fd9cbfb1bef12cd1bad37f2f",
"lastExecuted": null,
"migrationVersion": 5745242,
"type": "manual",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": "Excepteur consequat Lorem",
"legacyWrapper": true,
"formId": "b99b3e2600bef02eca3fbdfa"
},
{
"repeatUnit": "day",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "97e0224850f0f98202efb5fc",
"lastExecuted": null,
"migrationVersion": 3669705,
"repeatInterval": 120000,
"formId": "1ee381c3436e0fe12f84a696"
}
]
}
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": "50b064ed2185e723bf69619e",
"lastExecuted": 85086493,
"migrationVersion": 30171777,
"createdBy": "544201d44b41ab7232d668b8",
"created": "2015-01-06T00:18:13.727Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2007-04-11T21:24:29.82Z",
"_id": "5eb53c945f8ba45ec0ce8bea"
}
}