update consumption record api