"Volume Limit" setting on Sonos devices

As I have a growing need to regularly change “Volume Limit” settings across my Sonos devices I have been looking for an easier way to do this than one by one through the app. Unfortunately it does not seem like Sonos allows manipulating this setting through the exposed API, so I am thinking that I might need to look into reverse engineering the app traffic for this and then program something “the hard way” (if at all possible).
However before I get into this, is there anybody out there who might already have tried this approach or found any other way to do something like this?

(And FYI, I have already scripted automations where Home Assistant turns the volume down automatically if it is increased above certain limits at the wrong time of the day, but as this allows the music to run on high volumes for a few seconds before being turned down, this in not a good enough option for me in this case unfortunately.)

I’m not sure of the reason why you need this but in my case I’ve recently had three times in the night that random Sonos speakers turn on at max volume for some unknown reason. I’m not sure if it’s an issue with the Sonos system causing this or not. I have a couple of cats that I could blame for it by them crawling on the speaker volume button but that seems to be a stretch since we’ve had both the cats and the speakers for a long time and it’s only started happening in the last couple of months.

I also went the automation route as well to turn the speaker down to 15% if it goes over 75% in the middle of the night.