change api directory