API to update status