How to get the version of an entry?

Hi! I’m using curl to update an entry and keep getting 409 version mismatch error. I searched on the website and I need to set X-Contentful-Version of the entry in the header. However when I look into the data I received through fetching, I only get revision id but not version id. Could someone help me on that? Thank you.

Anyone figured it out?

If you use curl to request an entry like this

curl{SPACE_ID}/environments/{ENV_ID}/entries/{ENTRY_ID} -H'Authorization: Bearer YOUR_CMA_TOKEN'

You should receive a response that includes a sys property, which will include the version - you can then use this version in your update request.