Werk #18577: REST-API: Include the downtime mode in responses

Component REST API
Title REST-API: Include the downtime mode in responses
Date Aug 20, 2025
Level Trivial Change
Class New Feature
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0p11 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p36 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

The REST-API now includes the downtime mode in the responses of the Show all schedules downtimes and Show downtime endpoints.

The mode reflects whether the downtime is flexible. It can either be:

{"type": "fixed"}

Or, for flexible downtimes with the flex duration in minutes:

{
    "type": "flexible",
    "duration_minutes": 120
}

Flexible downtimes can already be created with the duration parameter on the Create a host/service related scheduled downtime endpoints. The behaviour there doesn't change.

To the list of all Werks