CMK version: 2.0.0p29 (CRE)
**OS version:Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-56-generic x86_64) **
Error message:
{“title”: “Bad Request”, “status”: 400, “detail”: “These fields have problems: disable_notifications”, “fields”: {“disable_notifications”: {“disabled”: [“Unknown field.”]}}}
Hello,
we are trying to set “temporarily disable all notifications” for a user via rest api to “true”.
Our api call works for options like “idle_timeout” but when trying to set “disable_notifications” to true we get the following:
API call looks like this:
curl -X ‘PUT’ ‘https://hostname/sitename/check_mk/api/1.0/objects/user_config/username’ -H ‘accept: application/json’ -H “Authorization: Bearer automationuser XXXXXX” -H ‘If-Match: “xxxxxxxxxxx”’ -H ‘Content-Type: application/json’ -d ‘{
“disable_notifications”: {
“disabled”: true
}
}’
It looks like a bug to us or are we missing something?
KR and thank you for your effort!