updating api location