Downtime of host with REST-API does not work

It is a flexible downtime as you set a duration. You don’t need to set a duration if you give a start and end time.