Checkmk 2.0 is here! See what's new.

Werk #12273: API: modifications for downtime endpoint

Component Core & Setup
Title API: modifications for downtime endpoint
Date Mar 3, 2021
Checkmk Editon Checkmk Raw (CRE)
Checkmk Version 2.0.0b8
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

This werk introduces a few changes to the downtime endpoint. Proper status codes are now returned when trying to set a downtime on non existing host and service groups. A 422 status code is returned when the provided query for setting a service or host downtime returned an empty list. The type 'by_id' is now an enabled option for the delete endpoint. The parameters 'hostname' and 'services' in the delete endpoint were renamed to 'host_name' and 'service_descriptions' to introduce more consistency. Previously, using the delete endpoint with a host_name via the delete_type 'params' resulted in the deletion of all downtimes that contained the specified host_name, regardless of service or host. This has now been changed to be restricted to host downtimes only.

To the list of all Werks