Downtime on multiple hosts via url or REST API

Since not all of us are so experienced API users as you, a small code example would be very helpful to better understand how something like this could be accomplished.