rename api of file