Werk #13655: REST API host_config: fix the create and update endpoints when including a host attribute

Component REST API
Title REST API host_config: fix the create and update endpoints when including a host attribute
Date Feb 23, 2022
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.2.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0b3 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
2.0.0p22 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

In the previous version, the create and update host endpoints returned a 500 error when the user tried to register or modify a host with attributes. This werk fixes this behaviour and returns a 400 error when an invalid attribute is included.

To the list of all Werks