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": "6e25419f2af54fa178b6ed45",
"lastExecuted": null,
"migrationVersion": -46672710,
"type": "endpoint",
"verb": "POST",
"routeName": "_Nfr9Z8UZ",
"jst": "cafcec772154e3ae938fdd26"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "ddd719a296fb31b4e3325196",
"lastExecuted": 45990203,
"migrationVersion": -35089847,
"type": "eventSystem",
"source": "velit anim Excepteur",
"topic": "in",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "c552598be0c9de95bc8dd9f5",
"lastExecuted": null,
"migrationVersion": -56502748,
"type": "manual",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"formId": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "88cdeb2fbdb25a938f7e0921",
"lastExecuted": 19934576,
"migrationVersion": 65753154,
"repeatInterval": 120000,
"formId": "05efc331ef6106056948ebc6"
}
]
}
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": "46141d4b69b9afe4f73df4d0",
"lastExecuted": null,
"migrationVersion": -26091077,
"createdBy": "Pronghorn",
"created": "2017-03-04T03:49:13.023Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1998-04-17T07:07:53.451Z",
"_id": "1be592c2645541c0c4821c17"
}
}