example of invalidate api