I’ve found the answer by referring to this example. Listen path matching rules - #3 by gwshaw
You need to change to the following
"definition": {
"location": "url",
"key": "version"
},
I am passing v1 and v2 as that is what they are defined as (not named) in the version_data config. Name can be anything.
"versions": {
"v2": {
"name": "v2",
...