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": "01247e0c95fc4da9177010d5",
"lastExecuted": 73838553,
"migrationVersion": 46666580,
"type": "endpoint",
"verb": "POST",
"routeName": "A_jm874",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "9cc1ac941aa912721d4af1af",
"lastExecuted": 41704871,
"migrationVersion": 21358864,
"type": "eventSystem",
"source": "cupidatat qui ea velit",
"topic": "dolore aute sint occaecat",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "367953ad39885154ad492949",
"lastExecuted": null,
"migrationVersion": 58743910,
"type": "manual",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "enim in ad incididunt",
"formId": "fa3ef482d21adb81803e4a77"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "7d959d3f3919d02340a4cf3d",
"lastExecuted": 69516110,
"migrationVersion": -24201383,
"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": "8209a53cc097bd92871136f7",
"lastExecuted": 96145635,
"migrationVersion": -30340829,
"createdBy": "59d548b9c7bd8adf14f6a26c",
"created": "1975-05-06T13:13:47.839Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1979-04-11T04:07:35.26Z",
"_id": "8499e427b3a97b814dee4b12"
}
}