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": "02abfb25b13d7ea2aa77f604",
"lastExecuted": null,
"migrationVersion": 75141180,
"type": "endpoint",
"verb": "POST",
"routeName": "IIzN7W",
"schema": null,
"jst": "2b9653f69c7c08ca9f5351c0"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "a85c2365c47243aea5ce44df",
"lastExecuted": null,
"migrationVersion": -85325499,
"type": "eventSystem",
"source": "commodo occaecat do",
"topic": "Excepteur esse aliquip commodo incididunt",
"schema": null,
"legacyWrapper": false,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "a742a3421567af820fed0e34",
"lastExecuted": 52867517,
"migrationVersion": -30837801,
"type": "manual",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": "in ut",
"legacyWrapper": true,
"formId": null
},
{
"repeatUnit": "second",
"repeatFrequency": 96652510,
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "95b49595ab4234fd86ba9dc1",
"lastExecuted": 82219079,
"migrationVersion": 70685837,
"repeatInterval": 30000,
"formId": null
}
]
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
The result of the update operation. |
Copied to Clipboard
{
"message": "Successfully imported 3 of 4 documents",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "c2f7aa15edc0280a04c0a836",
"lastExecuted": 28456287,
"migrationVersion": -67892477,
"createdBy": "Pronghorn",
"created": "1973-07-11T08:16:14.034Z",
"lastUpdatedBy": "259dcf6a4f6bd419e634e2e3",
"lastUpdated": "1985-11-16T10:14:08.172Z",
"_id": "171ac172539da077fa4d4d97"
}
}