Downtimes set via Api-http or Command Line

Hi,

Thanks, it works @kdeutsch.

What if I wanted to set a time frame instead?.

By running the string:

    http://localhost/checkmk_dev/check_mk/view.py_username=automation
    &_secret=Mysecret
    &_transid=-1
    &_do_confirm=yes
    &_do_actions=yes
    &view_name=hoststatus
    &host=host
    &_down_custom=Custom+time+range
    &_down_from_date=2020-03-31
    &_down_from_time=12:30
    &_down_to_date=2020-03-31
    &_down_to_time=14:30
    &_down_comment=test_downtime
    &_down_from_now=yes

I get the following error.

image

Why the mistake?

Dario.