Kibana show No legend for all visualizations multi edit

I have multiple visualizations in a dashboard.
All of my visualizations are created using visual builder. I see I have an option that I can choose not to show the legend by default. Just change the show legend to "off" in Panel Options.

How can I perform this operation for multiple visualizations instead of doing it manually say like using an API or something.

Any ideas would be great.