fix addDevice restful API