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": "3902076a04773a4646e81f3b",
"lastExecuted": 95898877,
"migrationVersion": -64849557,
"type": "endpoint",
"verb": "POST",
"routeName": "dDUIaTlb-L",
"jst": "56a91ac776e50d1901f49904"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "4c12dd679b7eaf6b73a8f48e",
"lastExecuted": 47301499,
"migrationVersion": 36122169,
"type": "eventSystem",
"source": "sit irure laborum fugiat minim",
"topic": "nostrud quis",
"schema": null,
"jst": "2e0de04ca6cb62dd83448308"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "93552669170531234b3f15d9",
"lastExecuted": null,
"migrationVersion": 89215710,
"type": "manual",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"formId": null
},
{
"repeatUnit": "second",
"repeatFrequency": 99173090,
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "68ec5d19876ee50a82b2f384",
"lastExecuted": 37142664,
"migrationVersion": 85257617,
"repeatInterval": 120000,
"formId": null
}
]
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
The result of the update operation. |
Copied to Clipboard
{
"message": "Successfully created the requested item",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "85402f933cffa39eabe8f063",
"lastExecuted": 39023339,
"migrationVersion": -81244490,
"createdBy": "7333136c10cc69f272858fe4",
"created": "1980-04-02T21:02:25.323Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1953-03-11T05:25:17.939Z",
"_id": "06fc8bc154c9b79c636332ae"
}
}