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": "d3c5cb9d05a23226b7bf628f",
"lastExecuted": 14074690,
"migrationVersion": -29437773,
"type": "endpoint",
"verb": "POST",
"routeName": "da",
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "0a039fec3e192abc51c8dc16",
"lastExecuted": 48081951,
"migrationVersion": 8558739,
"type": "eventSystem",
"source": "nisi do velit",
"topic": "labore",
"legacyWrapper": false,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "e35edb353f1b8da702f6b8c8",
"lastExecuted": null,
"migrationVersion": -62022400,
"type": "manual",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"legacyWrapper": true,
"formId": "b56b9504dd0ce21e4ca6e89a"
},
{
"repeatUnit": "second",
"repeatFrequency": 53041190,
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "cee697b68a518560793d3606",
"lastExecuted": 76855280,
"migrationVersion": 63045995,
"repeatInterval": 10000,
"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": false,
"actionType": "automations",
"actionId": "8403602916f1c3a6436cf4a2",
"lastExecuted": 4975938,
"migrationVersion": -44298587,
"createdBy": "Pronghorn",
"created": "2013-07-02T23:30:24.578Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2007-04-07T16:45:59.892Z",
"_id": "21bb46c29007aebe8609a729"
}
}