Problem getting the correct version of a deployed application through the REST api

I encountered the following problem. I needed to access the version of a deployed project using the REST api, and it worked for a while but now i see that the version displayed on the octopus website and the version i got using the rest REST api no longer match (The one i got from the rest api lagging behind). How can i get the correct version?

Hi,

What part of the REST API are you using to get this information? Can you share the difference between what you are seeing in the UI and the results you get from the API?

Paul