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": "5c87d63b992435e394361c23",
"lastExecuted": null,
"migrationVersion": 67719914,
"type": "endpoint",
"verb": "POST",
"routeName": "bsZ",
"schema": null,
"jst": "f7e88968aca80b8515680da7"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "4291cf7af9502373cc8e03ba",
"lastExecuted": 10016351,
"migrationVersion": -71369971,
"type": "eventSystem",
"source": "velit Excepteur est officia sit",
"topic": "occaecat et voluptate nisi",
"schema": null,
"legacyWrapper": false,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "5796bf1cd5e4dd9711e5138d",
"lastExecuted": 73584,
"migrationVersion": -60531061,
"type": "manual",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "commodo nostrud in sit",
"legacyWrapper": true,
"formId": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "845a50ed3a28ca5ff936d19b",
"lastExecuted": 95484918,
"migrationVersion": -50936165,
"repeatInterval": 120000,
"formId": "c3277f1897c5463ee58d643c"
}
]
}
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": true,
"actionType": "automations",
"actionId": "6ae0275fb12ffaf3114426b5",
"lastExecuted": null,
"migrationVersion": 43937603,
"createdBy": "Pronghorn",
"created": "2023-02-05T21:48:33.611Z",
"lastUpdatedBy": "95fc826ccbb2532e767217b0",
"lastUpdated": "2022-12-19T10:42:11.125Z",
"_id": "4ee599a6a3e447fa95452abd"
}
}