How to use iHost Open API to Control Sonoff Switches?

My bad.
I gave you the wrong api.
Try find in the url above for: h. Update Specified Device Information or State.
That one should helps you.
I’ve tried.
It’s wroking for me