Catch up on the latest product updates, best practices, and expert insights from the Checkmk Conference #12 – Watch the livestream recordings now

Werk #15213: rest_api: time_period exception/active time_ranges default

Component REST API
Title rest_api: time_period exception/active time_ranges default
Date Feb 2, 2023
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.2.0b1 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Ultimate MT
2.1.0p21 Checkmk Community, Checkmk Pro, Checkmk Ultimate MT

When creating a time_period via the REST-API, the exception time_ranges field is not required, however if it's not provided, it will raise a key error. This werk adds an empty list as a default value, which aligns with the interface functionality of allowing an empty time_range value. The second fix is the same issue but for the active time_ranges field.

To the list of all Werks