update devices api