Werk #15551: downtime: make the show downtimes endpoint more explicit

Component REST API
Title downtime: make the show downtimes endpoint more explicit
Date Mar 22, 2023
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 2.2.0b2 2.3.0b1
Level Trivial Change
Class Bug Fix
Compatibility Incompatible - Manual interaction might be required

Prior to this werk, it was unclear under what circumstances the endpoint returned service, host or both types of downtimes. In short, specifying the host_name parameter limited the response to only return host downtimes. This werk introduces the downtime_type parameter in order to make it easier to filter the results. This parameter is optional as the same result can be achieved through the query parameter only.

Since the endpoint response is now more specific, user scripts must potentially be adjusted accordingly: * when the host_name parameter was previously specified, the user must now specify the downtime_type parameter to "host" in order to receive the same downtimes as before

To the list of all Werks