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": "cda3bcfe831a38ee27a5507a",
"lastExecuted": null,
"migrationVersion": 48125954,
"type": "endpoint",
"verb": "POST",
"routeName": "o",
"schema": null,
"jst": "347a56d29197198bab769fbb"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "e357e17ebf8127fdc5814644",
"lastExecuted": null,
"migrationVersion": -14835416,
"type": "eventSystem",
"source": "esse elit qui ea quis",
"topic": "ad nulla Excepteur labore",
"schema": null,
"jst": "363e4dafb1696e5c00b52038"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "64d0aa0aefed94a50f2ee576",
"lastExecuted": null,
"migrationVersion": -15279103,
"type": "manual",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"formId": "f25bc554096f21ed479c32a1"
},
{
"repeatUnit": null,
"repeatFrequency": null,
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "61888d40ba93bdec1b6bcd74",
"lastExecuted": null,
"migrationVersion": 58469281,
"repeatInterval": 10000,
"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": "06da92fd8b1b2ff7bef02000",
"lastExecuted": 2643398,
"migrationVersion": 61625542,
"createdBy": "c60efd5e601e6734fec7ac00",
"created": "2012-08-29T23:14:20.762Z",
"lastUpdatedBy": "9ab5f494c74079dfad27f858",
"lastUpdated": "1998-03-13T07:55:41.128Z",
"_id": "4ef4df4dc95730a0e2ee96e2"
}
}