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": "6d7b1de1cf0a7237d3c5b7ba",
"lastExecuted": 77340666,
"migrationVersion": -49065264,
"type": "endpoint",
"verb": "POST",
"routeName": "EM",
"jst": "caacb161d97136d3292f06dd"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "41651e13758736625941d90a",
"lastExecuted": null,
"migrationVersion": 31426396,
"type": "eventSystem",
"source": "qui aliquip dolor officia",
"topic": "Duis mollit",
"legacyWrapper": false,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "ea6ab797ed6198bff7e7803d",
"lastExecuted": null,
"migrationVersion": -77513860,
"type": "manual",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"legacyWrapper": true,
"formId": "910f3ec05b028a48fec2b2b4"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "f28542ff83f28f51e1790262",
"lastExecuted": null,
"migrationVersion": 35438857,
"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": false,
"actionType": "automations",
"actionId": "72beabee971a62665f7a3852",
"lastExecuted": 40463164,
"migrationVersion": -42042342,
"createdBy": "Pronghorn",
"created": "1967-05-25T08:39:45.535Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1997-03-24T23:32:01.24Z",
"_id": "b30e7f3a10d6f4f2b948895d"
}
}