update device registration api