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": "2913a499753b3a736fbb9308",
"lastExecuted": 77782766,
"migrationVersion": -48614791,
"type": "endpoint",
"verb": "POST",
"routeName": "oIhBgb5",
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "07863dd72a812b3621089f41",
"lastExecuted": null,
"migrationVersion": -56135473,
"type": "eventSystem",
"source": "pariatur dolor",
"topic": "velit officia anim sit",
"legacyWrapper": true,
"jst": "e650babd10939a3003a62b45"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "18ac6bc6856ee23606864d09",
"lastExecuted": null,
"migrationVersion": -59018642,
"type": "manual",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"legacyWrapper": true,
"formId": "da3b57cfbb956b90c0083446"
},
{
"repeatUnit": "second",
"repeatFrequency": 70564900,
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "f881a2a4fe311be7a074de10",
"lastExecuted": 55340210,
"migrationVersion": -26124867,
"repeatInterval": 30000,
"formId": "6d00a033334ab93895f0b4ba"
}
]
}
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": "814de58141ae834b17f7ea8c",
"lastExecuted": 88771004,
"migrationVersion": 52643658,
"createdBy": "cbcdbf4b35bf1663319fff1e",
"created": "1979-04-02T19:11:48.675Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1948-10-17T14:44:40.061Z",
"_id": "df59b87ffe663a2a682dc9b6"
}
}