update_logicmodule
Safely patch LogicMonitor source modules by merging only specified fields into the current definition. Preview changes as a dry-run diff or apply them, avoiding accidental blanking of omitted fields.
Instructions
Safe partial update for LogicMonitor source types (configsource, datasource, eventsource, logsource, propertysource, topologysource). Exports the current full definition, deep-merges your changes onto it, validates required fields, and either returns a dry-run diff (mode='preview', default) or applies the merged definition (mode='apply'). PREFER this over the raw update_ tools for partial updates -- the raw tools are full-replace and will blank any field omitted from the payload (two prior production incidents).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | LogicModule ID | |
| mode | No | 'preview' returns a dry-run diff without writing (default). 'apply' writes the merged definition via the underlying update_<type> handler. | preview |
| type | Yes | Source type to update | |
| changes | Yes | Partial update -- only the fields to change. Use `null` as a value to explicitly delete a key. Lists replace wholesale. |