R195 change group using API

Not sure if this is possible but is it possible to change a devices AP group programatically. ie. using X Api or some other option.

Basically multiple R-Series AP groups with different QoS Bandwidth settings.
I want to automate the process of moving a single R-series device to a different AP-Group.

Any ideas?
Thanks

(I moved this to cnMaestro as I think you’re more likely to get an answer here)