Free on-demand webinars: Learn how to set up, configure, and get more out of Checkmk – Pick your webinar

Werk #23142: REST API: reject rule values of the wrong type instead of crashing

Component REST API
Title REST API: reject rule values of the wrong type instead of crashing
Date Nov 17, 2026
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
3.0.0b1
Not yet released
Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT
2.5.0p22
Not yet released
Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT
2.4.0p43
Not yet released
Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT

Creating or updating a rule via the REST API crashed with AttributeError: 'list' object has no attribute 'split' when the rule value had a different type than the rule set expects, for example a list for Notified events for hosts, which expects a string such as "d,r".

The REST API now rejects such a value with a 400 error that names the problem.

This completes werk #23097, which already handled other value shapes the rule set cannot read.

To the list of all Werks