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": "b6b4a95c24a9ef40ffbe964a",
"lastExecuted": null,
"migrationVersion": 89391846,
"type": "endpoint",
"verb": "POST",
"routeName": "St",
"jst": "1af82a692229651dc7359d77"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "06e45c2beb19c6cc4fb37a69",
"lastExecuted": null,
"migrationVersion": -24117518,
"type": "eventSystem",
"source": "ut in do ea velit",
"topic": "pariatur",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "eb33e7b1605b313054c7309d",
"lastExecuted": 16275763,
"migrationVersion": 34962935,
"type": "manual",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"formId": "af8e47d58de2399b0fc3ca94"
},
{
"repeatUnit": "day",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "337c8f43d8a55cad3b52d53b",
"lastExecuted": 96875911,
"migrationVersion": 57871823,
"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": "8993d9d652f20724343e8607",
"lastExecuted": 74263587,
"migrationVersion": 28902966,
"createdBy": "Pronghorn",
"created": "1961-03-31T21:43:11.031Z",
"lastUpdatedBy": "b2657d340eee432e4d9b657e",
"lastUpdated": "2024-03-05T10:19:17.602Z",
"_id": "67909a1e75e3a3f2e8bd92c0"
}
}