How to change carrier on eSIM using API

I see that you can change the carrier using /api/cmd.carrier.select with the local API, but it seems like you can only change the carrier if you have a local SIM card.

Is there any way to change the carrier of an eSIM using the local API? It can be changed via the web admin.