OpenAPI 3.0.3raw.githubusercontent.com2026-08-177301,8125.6 MB

e9badbb5da99

alerting-v2

Update a rule

Spaces method and path for this operation:

<div><span class="operation-verb patch">patch</span>&nbsp;<span class="operation-path">/s/{space_id}/api/alerting/v2/rules/{id}</span></div>

Refer to Spaces for more information.

[Required authorization] Route required privileges: manage_alerting-v2-rules.

patch/api/alerting/v2/rules/{id}

Path parameters

idstring required

The identifier for the rule.

Headers

kbn-xsrfstring required
Example:true

A required header to protect against CSRF attacks

Request body

time_fieldstring
versionstring

The current version of the rule, used for optimistic concurrency control.

Response

Returns the updated rule.

created_atstring required

ISO timestamp when the rule was created.

created_bystring nullable required

User who created the rule.

enabledboolean required

Whether the rule is enabled.

idstring required

Unique rule identifier.

time_fieldstring

Time field used for the lookback window range filter.

updated_atstring required

ISO timestamp when the rule was last updated.

updated_bystring nullable required

User who last updated the rule.

versionstring

The saved object version token of the rule, used for optimistic concurrency control.