device Active and inactive api added