JSON APi should be possible:
CLI is quite useless…
Alternatively, you can assign a schedule to the WAN-connection: