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": "083bc135c11c48041e0cbdb7",
"lastExecuted": 44296087,
"migrationVersion": 48782011,
"type": "endpoint",
"verb": "POST",
"routeName": "UE6",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "8298cac916c6ec389ac34c61",
"lastExecuted": 28159111,
"migrationVersion": -37001534,
"type": "eventSystem",
"source": "voluptate",
"topic": "adipisicing in incididunt Ut eiusmod",
"schema": null,
"jst": "fe0a9dce967c1e322f242b6c"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "aa983b4689cb6d7ee817fc8a",
"lastExecuted": null,
"migrationVersion": -41991541,
"type": "manual",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "do adipisicing minim eu",
"formId": "a5b2c15a494c408628d45c50"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "1bd8f558cff936001c76fe40",
"lastExecuted": 88543697,
"migrationVersion": 61060797,
"repeatInterval": 10000,
"formId": null
}
]
}
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": "ada5a7570a1fd04aa5790688",
"lastExecuted": null,
"migrationVersion": -25983684,
"createdBy": "Pronghorn",
"created": "1985-12-26T16:30:21.189Z",
"lastUpdatedBy": "913c6c63450954048f861885",
"lastUpdated": "1969-04-19T21:19:21.216Z",
"_id": "da78697858387844f90d4afe"
}
}