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": "463258d688ce815c5d391503",
"lastExecuted": null,
"migrationVersion": -68782832,
"type": "endpoint",
"verb": "POST",
"routeName": "duW",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "e45849aad349c244842d23b4",
"lastExecuted": 31416374,
"migrationVersion": 21886674,
"type": "eventSystem",
"source": "ipsum",
"topic": "adipisicing sint",
"schema": null,
"legacyWrapper": true,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "b15ff87b806c2a612e7fb9f0",
"lastExecuted": 55717468,
"migrationVersion": 58528763,
"type": "manual",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": "dolor dolor sint adipisicing",
"legacyWrapper": true,
"formId": "2b0de05a60c6e123e4fee3af"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "c3e20f83920eadf9a0c62b3e",
"lastExecuted": 88467017,
"migrationVersion": -41939865,
"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": false,
"actionType": "automations",
"actionId": "264fbd3d01a7943887e4a3b3",
"lastExecuted": 77258872,
"migrationVersion": 64890434,
"createdBy": "Pronghorn",
"created": "2005-12-12T23:16:09.22Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1990-06-11T09:47:38.301Z",
"_id": "496b1b0682500e774800fc27"
}
}