Hi Joe,
Sorry this took so long to respond to. Is that toggle function working for you? You could tie your button to call a function that calls the toggle function several times,
function toggleStuff() {
togglePoint("F6_B01_R01");
...
togglePoint("F6_B01_R08");
}
but perhaps your question is more complex? There are also endpoints for updating several data points at once, if you wished to make fewer API round trips, the /rest/v1/data-points endpoint (not data point xid, must be supplied in each point in the list in the PUT content.