API request is successful but HTTP status code is 405

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

Hi,

2.3.0p24
Kubernetes

We are experiencing the same issue on version 2.3.0p1. We believe it might be related to server performance, but we haven’t been able to investigate thoroughly yet.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.