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": "d780879c402d534eff170c67",
"lastExecuted": 99536695,
"migrationVersion": -21307466,
"type": "endpoint",
"verb": "POST",
"routeName": "sQr2uiYtv",
"schema": null,
"jst": "b2c7c3309095874b3d82d2ad"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "d404cd9f506956c67c2deb61",
"lastExecuted": 55329137,
"migrationVersion": 56093093,
"type": "eventSystem",
"source": "consectetur sunt",
"topic": "ullamco",
"legacyWrapper": false,
"jst": "8c4f4cd438f84f01aea4ed79"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "0db3b68995aabb416f7d08c6",
"lastExecuted": 27003368,
"migrationVersion": 28581494,
"type": "manual",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"legacyWrapper": false,
"formId": "16a9ea11a766ff8c1f3b1ea7"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "b4345be29989ba7990685231",
"lastExecuted": null,
"migrationVersion": -88706291,
"repeatInterval": 120000,
"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": true,
"actionType": "automations",
"actionId": "732f899c277c46b6a080595c",
"lastExecuted": null,
"migrationVersion": 14997920,
"createdBy": "Pronghorn",
"created": "2010-01-11T10:17:57.377Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1952-09-17T08:15:51.438Z",
"_id": "ed11fe6290d3dcd682ec9fb6"
}
}