---
title: "Changes to Create or replace a rule"
method: PUT
path: "/api/alerting/v2/rules/{id}"
---

# Changes to Create or replace a rule

`PUT /api/alerting/v2/rules/{id}`

> Every recorded change to this endpoint, newest first.
> 176 revisions in range; 20 not diffed.

## Timeline

Changed in 6 of 176 revisions.

- **2026-09-22** `2ceba5629899` — 1 info
- **2026-09-17** `883cd57e9ac7` — 4 warning
- **2026-09-16** `e2104277117c` — 3 breaking, 15 info
- **2026-08-22** `93e11b266872` — 2 breaking, 1 info
- **2026-08-18** `118c456bb487` — 1 breaking, 5 info
- **2026-08-17** `e9badbb5da99` — 1 info

## Changes

- **2026-09-22** `2ceba5629899` — 1 info
  - removed the non-success response with the status `404`
- **2026-09-17** `883cd57e9ac7` — 4 warning
  - the `schedule/every` request property's maxLength was set to `32`
  - the `schedule/lookback` request property's maxLength was set to `32`
  - the `state_transition/pending_timeframe` request property's maxLength was set to `32`
  - the `state_transition/recovering_timeframe` request property's maxLength was set to `32`
- **2026-09-16** `e2104277117c` — 3 breaking, 15 info
  - removed `subschema #1, subschema #2` from the `kind` request property `anyOf` list
  - removed `subschema #1, subschema #2, subschema #3` from the `recovery_strategy` request property `anyOf` list
  - removed `subschema #1, subschema #2, subschema #3, subschema #4` from the `no_data_strategy` request property `anyOf` list
  - added `subschema #1, subschema #2` to the `kind` request property `anyOf` list
  - added `subschema #1, subschema #2, subschema #3` to the `recovery_strategy` request property `anyOf` list
  - added `subschema #1, subschema #2, subschema #3, subschema #4` to the `no_data_strategy` request property `anyOf` list
  - added `subschema #1, subschema #2` to the `kind` response property `anyOf` list for the response status `200`
  - added `subschema #1, subschema #2` to the `kind` response property `anyOf` list for the response status `201`
  - added `subschema #1, subschema #2, subschema #3` to the `recovery_strategy` response property `anyOf` list for the response status `200`
  - added `subschema #1, subschema #2, subschema #3` to the `recovery_strategy` response property `anyOf` list for the response status `201`
  - added `subschema #1, subschema #2, subschema #3, subschema #4` to the `no_data_strategy` response property `anyOf` list for the response status `200`
  - added `subschema #1, subschema #2, subschema #3, subschema #4` to the `no_data_strategy` response property `anyOf` list for the response status `201`
  - removed `subschema #1, subschema #2` from the `kind` response property `anyOf` list for the response status `200`
  - removed `subschema #1, subschema #2` from the `kind` response property `anyOf` list for the response status `201`
  - removed `subschema #1, subschema #2, subschema #3` from the `recovery_strategy` response property `anyOf` list for the response status `200`
  - removed `subschema #1, subschema #2, subschema #3` from the `recovery_strategy` response property `anyOf` list for the response status `201`
  - removed `subschema #1, subschema #2, subschema #3, subschema #4` from the `no_data_strategy` response property `anyOf` list for the response status `200`
  - removed `subschema #1, subschema #2, subschema #3, subschema #4` from the `no_data_strategy` response property `anyOf` list for the response status `201`
- **2026-08-22** `93e11b266872` — 2 breaking, 1 info
  - the response property `query/oneOf[#/components/schemas/Kibana_HTTP_APIs_alerting_composed_rule_query]/breach` became optional for the status `200`
  - the response property `query/oneOf[#/components/schemas/Kibana_HTTP_APIs_alerting_composed_rule_query]/breach` became optional for the status `201`
  - the request property `query/oneOf[#/components/schemas/Kibana_HTTP_APIs_alerting_composed_rule_query]/breach` became optional
- **2026-08-18** `118c456bb487` — 1 breaking, 5 info
  - removed `subschema #1, subschema #2` from the `kind` request property `anyOf` list
  - added `subschema #1, subschema #2` to the `kind` request property `anyOf` list
  - added `subschema #1, subschema #2` to the `kind` response property `anyOf` list for the response status `200`
  - added `subschema #1, subschema #2` to the `kind` response property `anyOf` list for the response status `201`
  - removed `subschema #1, subschema #2` from the `kind` response property `anyOf` list for the response status `200`
  - removed `subschema #1, subschema #2` from the `kind` response property `anyOf` list for the response status `201`
- **2026-08-17** `e9badbb5da99` — 1 info
  - endpoint added

---

[Operation](https://skmtc.dev/elastic/apis/kibana-apis/docs/api/alerting/v2/rules/:id/put.md) · [API](https://skmtc.dev/elastic/apis/kibana-apis.md) · [Page](https://skmtc.dev/elastic/apis/kibana-apis/changes/api/alerting/v2/rules/:id/put)
