Is it a plugin API that can list the local styles and update their values?

I am looking for a way to list all local styles of a file and update their values through the plugin API but not sure if it is even possible. Specifically, I want to see if I can grab the green color and change it to yellow:



Thanks! It’s not included in the index section and hard to find…