how to modify api response