Set and delete downtime with REST API

Hi all,

i am using 2.0.0p9 (CEE) and i can not create a host-related downtimes via rest api. I also get a status-code 204. It does not matter which site the host belongs to. It neither works on the master site nor a slave one. I would realy like to use it in ansible-playbooks. I would be very grateful for a suggested solution.

I have solved my problem, i did not gave a duration, because i thought i would be calculated. but it might be not calculated. So if i set the duration correctly in the json request data. it works.

Kind regards
Oliver