fixed update devices api from changing strings to integers