Set 'Constraint Details' from plugin

Hi

Is there a way to set ‘Constraint Details’ visible or not from a plugin script?

This is the property that I want to toggle through my plugin’s code:
image
It’s located under the ‘Model’ tab in studio.
I’m not sure if setting this automatically is possible…

Thanks for your reply.