Can it be done?

There is also a way to disable the devices with an http post as described below

I believe this is not recommended by the staff but it would work for all rules/apps..