API to check server / service is in downtime version 2.2

CMK version: Checkmk Raw Edition 2.2.0p14
OS version: Rocky 9.2

We are in process of upgrading our systems to version 2.2 and have been using the below API to get the status of the server being in downtime. Due to changes in API in version 2.2 we are facing issue in getting the downtime status for the host.

API:
https://your_check_mk_server/mysite/check_mk/view.py?filled_in=actions&view_name=hoststatus&host=$server_Host&_ack_comment=&_down_comment=&_username=$userName&output_format=json&_secret=$API_KEY

Could anyone suggest the API to check if the server is in downtime , we are able to put and remove the downtime fine with new version.

You should still be able to use that query on the view “hoststatus”.
The field (or column) “host_in_downtime” contains the information if the host is in scheduled downtime.

https://your_check_mk_server/mysite/check_mk/view.py?view_name=hoststatus&host=$server_Host&_username=$userName&_secret=$API_KEY&output_format=json

Thank you for the quick response, we are not able to find the “host_in_downtime”. Could you confirm the table it should be part of ?

Have you modified the view by any chance?

How can we check ? I am not aware of any modifications to the view