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": "bd0f79f30cdd92b62344ab38",
"lastExecuted": null,
"migrationVersion": 9923662,
"type": "endpoint",
"verb": "POST",
"routeName": "guDyqwDW",
"schema": null,
"jst": "953093e9b659fb22d95bf6c0"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "a9106e2072e51ea0914e9b76",
"lastExecuted": 55477697,
"migrationVersion": -92730572,
"type": "eventSystem",
"source": "in ad Duis dolor velit",
"topic": "exercitation est in laborum",
"schema": null,
"legacyWrapper": false,
"jst": "01c752ae477c0b89d2b03d79"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "0a482e0bb223cd74aafc9355",
"lastExecuted": 16260874,
"migrationVersion": -29443335,
"type": "manual",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": "proident elit",
"legacyWrapper": true,
"formId": "c4148b13d2985d648f4f910a"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "f420fa7436f04d51041e1f14",
"lastExecuted": null,
"migrationVersion": 36981785,
"repeatInterval": 120000,
"formId": "df569a8a8dd0ae442b8c1b4b"
}
]
}
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": false,
"actionType": "automations",
"actionId": "e61a85269dd335806cfa8f32",
"lastExecuted": 18200116,
"migrationVersion": 53146995,
"createdBy": "Pronghorn",
"created": "1987-11-15T13:15:54.961Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1981-03-16T01:50:47.69Z",
"_id": "a492bdada453d33b4c9d67f9"
}
}