Werk #16100: licensing: the 'settings' field is now required for license configuration

Component REST API
Title licensing: the 'settings' field is now required for license configuration
Date Sep 14, 2023
Level Trivial Change
Class Bug Fix
Compatibility Incompatible - Manual interaction might be required
Checkmk versions & editions
2.3.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p10 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

This werk addresses an issue found by our QA team with regards to the following endpoint

PUT /domain-types/licensing/actions/configure/invoke

Previously, we got an internal server error when attempting to call this endpoint with no 'settings' field or with no data for the 'settings' field. We have now made 'settings' a required field and the correct request data must be present.

Examples of correct request data

{
    "settings": {
        "mode": "offline"
    }
}

or

{
    "settings": {
        "mode": "online",
        "credentials": {
            "username": "application-account-id",
            "password": "application-account-password"
        }}
}

To the list of all Werks