No.
This can only be done using the host command via IRC.
host
So it can be automated via Chat bot, but not via a HTTP/API call