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": "e44f785464c4783dc6390e3f",
"lastExecuted": null,
"migrationVersion": -6830181,
"type": "endpoint",
"verb": "POST",
"routeName": "VOtwy2HAw06",
"jst": "5f2a06c0c1d1c3a660da8929"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "ad06693c3c9ab72d5a4a81e4",
"lastExecuted": 13158582,
"migrationVersion": -83203164,
"type": "eventSystem",
"source": "occaecat",
"topic": "est amet Lorem nulla in",
"legacyWrapper": true,
"jst": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "1731d0ff2f8ee9f880d484db",
"lastExecuted": null,
"migrationVersion": 6775310,
"type": "manual",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"legacyWrapper": true,
"formId": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "2b45c47e67a8a5f4252624a3",
"lastExecuted": null,
"migrationVersion": -4889410,
"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": false,
"actionType": "automations",
"actionId": "1863f0a7b6953ff426f72e2d",
"lastExecuted": 28612467,
"migrationVersion": -93311814,
"createdBy": "9642f8c510dc428a5ed734a3",
"created": "1951-07-25T16:50:07.672Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1949-05-13T19:39:40.778Z",
"_id": "039a16f2f51fb4186d6ef316"
}
}