2.3.0p24
Ubuntu 22.04
405 Method not allowed
Hi,
I’m renaming a host via the REST API. The host ist renamed as expected but the HTTP Status code is 405 Method not allowed.
Request sent to the Checkmk’s REST API:
curl -i -L -n -k -X 'PUT' 'https://cmkserver/checkmk/check_mk/api/1.0/objects/host_config/CurrentName/actions/rename/invoke' -H 'accept: application/json' -H 'If-Match: "a20ceacf346041dc"' -H 'Content-Type: application/json' -d '{
"new_name": "NewName"
}'
Response:
{"title": "Method Not Allowed", "status": 405, "detail": "405 Method Not Allowed: The method is not allowed for the requested URL."}
–
Erwin