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": "e34579692fc6dc1d685b80ba",
"lastExecuted": null,
"migrationVersion": -5678725,
"type": "endpoint",
"verb": "POST",
"routeName": "zFvsG2",
"jst": "fa42b57b5df352c176e8def2"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "3663b5f776fe7b8dd259df84",
"lastExecuted": 8238899,
"migrationVersion": 15835020,
"type": "eventSystem",
"source": "est",
"topic": "pariatur quis occaecat",
"schema": null,
"legacyWrapper": false,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "638a6e196d1a0dc509cf6f5f",
"lastExecuted": 93901294,
"migrationVersion": -97872244,
"type": "manual",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": null,
"legacyWrapper": false,
"formId": "9406a5de373116112db22f31"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "427caf1cc67e9f41e9e35c68",
"lastExecuted": 64617421,
"migrationVersion": -83897388,
"repeatInterval": 30000,
"formId": "436ee17ca98511ce15facb5c"
}
]
}
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": true,
"actionType": "automations",
"actionId": "d652be7e0f1d79e9b5905487",
"lastExecuted": 30812562,
"migrationVersion": 61275357,
"createdBy": "5e99c7bfbd6b3d3adde2f564",
"created": "1985-07-27T22:28:15.985Z",
"lastUpdatedBy": "c02699f4c285c3aa95981d45",
"lastUpdated": "1967-09-18T11:47:36.904Z",
"_id": "ac68a609a913e0a46c501be2"
}
}