fixed update directory in api

f