EAV attributes not udating in REST API

I have created some EAV product attributes. After edtinig the values on the product page and saving the values. Going back into a product show the new values. However when I query a product using the /rest/V1/products?searchCriteria endpoint, not all the values have updated and I see the old values. I have cleared the cache and reindexed eslastic search. So I am not sure why the API is showing different values to what are set in the product.