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": "d73658c6dbc3c3b81e760500",
"lastExecuted": 51537995,
"migrationVersion": 98500927,
"type": "endpoint",
"verb": "POST",
"routeName": "9P8HH5a0",
"jst": "b0537d4984e0c8657275a13b"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "02fd243221050410aa34e08a",
"lastExecuted": null,
"migrationVersion": 28502953,
"type": "eventSystem",
"source": "eu ea aliquip esse sed",
"topic": "deserunt in esse eu elit",
"schema": null,
"legacyWrapper": false,
"jst": "99e1af458c22a41a728f1b5b"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "6040f01ce9d8eb87519b382c",
"lastExecuted": 52989789,
"migrationVersion": -76825970,
"type": "manual",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": null,
"legacyWrapper": false,
"formId": null
},
{
"repeatUnit": "second",
"repeatFrequency": 68509500,
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "d32e2575fe44f6d61cddf98d",
"lastExecuted": 783843,
"migrationVersion": 24342442,
"repeatInterval": 120000,
"formId": null
}
]
}
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": "a3eb16aa26a17360678e8538",
"lastExecuted": null,
"migrationVersion": -44661596,
"createdBy": "5f9c0d9a916b44461646eedd",
"created": "1999-03-06T13:17:54.701Z",
"lastUpdatedBy": "c2c1686edc07a0f0ca4e666f",
"lastUpdated": "1979-11-12T18:39:29.867Z",
"_id": "6f98157e9dd1f1280cc60b5f"
}
}