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": "2c5da13b662bc303c6b6340b",
"lastExecuted": 95771869,
"migrationVersion": -4063911,
"type": "endpoint",
"verb": "POST",
"routeName": "FlzYfP",
"schema": null,
"jst": "663607be45bafd069203f9ee"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "ae9223c6748fd041e94919f1",
"lastExecuted": 67734220,
"migrationVersion": 79277030,
"type": "eventSystem",
"source": "in",
"topic": "tempor dolor consectetur",
"legacyWrapper": false,
"jst": "138244ce6feaa18fb6e14c8c"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "b5537f1c2ea0cd656c702de9",
"lastExecuted": 13931538,
"migrationVersion": 53930201,
"type": "manual",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "minim",
"legacyWrapper": false,
"formId": null
},
{
"repeatUnit": "second",
"repeatFrequency": null,
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "c8b7d129dae4f5fc67b74bdb",
"lastExecuted": null,
"migrationVersion": -23161540,
"repeatInterval": 30000,
"formId": null
}
]
}
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": true,
"actionType": "automations",
"actionId": "593f18f17f5356ce11c38471",
"lastExecuted": null,
"migrationVersion": -72502198,
"createdBy": "Pronghorn",
"created": "1976-03-27T13:21:47.722Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1979-07-18T16:17:55.106Z",
"_id": "99533ce320a7f8c6358596f5"
}
}