Plugin API always displays the latest version of the file. To access previous versions you need to use the REST API, as you are doing.
I don’t need to change the version, I only need to get the version ID.
… as I am writing this, I realized I could just create a new version and use the returned response to collect the versionID
Maybe some background would help… 🙂
I am creating some artefacts in the file. A few of them get synced into an external DB, more or less like a wiki. I was tring to cover the case where my created assets get modified in Figma.
If I keep the file version when I created them, I can DIFF and go back to the original if required.
… does this make any sense? 😕
Thanks for the clarifications. Unfortunately, using the Plugin API you can only get the new version ID, as you described, when saving the version. There are no other ways.
Thanks for the response 😃