stack kb alerting-v2 patch-alerting-v2-rules-id cli command
Auth required
elastic stack kb alerting-v2 patch-alerting-v2-rules-id --id <id> [options]
Update a rule
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--idstringrequired- The identifier for the rule.
--artifactsstring[]-
Artifacts attached to the rule, each shaped as
{ id, type, data }.datais a type-specific object (for example arunbookmay carrycontent, adashboardmay carrydashboardId). Per-type shape is validated by the artifact-type registry when the type is registered; unregistered types pass through with envelope bounds only.Repeatable: pass
--artifactsmultiple times to supply more than one value --groupingstring--metadatastring--no-data-strategystring--querystring--recovery-strategystring--schedulestring--state-transitionstring--time-fieldstring--versionstring- The current version of the rule, used for optimistic concurrency control.
--input-filestring- path to a JSON file to use as command input
--dry-run- validate all inputs and exit without performing any action (preview changes without applying them)
--json-
output as JSON