Werk #16371: sla: range field for predefined_time_range parameter is mandatory

Component REST API
Title sla: range field for predefined_time_range parameter is mandatory
Date Feb 23, 2024
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.4.0b1
Not yet released
Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0b1 Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

Before this werk, when the sla was computed for a predefined time range without specifying the range field, an error status 500 Internal Server Error was returned. This werk solves the problem by checking for the existence of the range field, and if it does not exist, the endpoint returns an error status 400 - Bad Request.

To the list of all Werks