updated machine REST api