How to change api for checkout-extensions

I want to use the new latest API 2023-04, but for the life of me, I cant figure it out.

I have been using the default setup for generating an app and extensions.

yarn shopify app generate extension --type checkout_ui --name=my-checkout-ui-extension

Is there a file I need to change/update in node_modules?

When I run the app and check the network packets I get this

myshopify.com/api/2022-10/graphql.json

Why is it 2022-10 and not even 2023-01?

So it turns out this is not documented on the shopify.dev site.

All you need to do is add api_version to the shopify.ui.extension.toml file

api_version = "2023-04"

I found this by digging around in the node_modules in the shopify package and saw it being used in there for api_version = “2022-10”