add update device endpoint