I have a scene that has to have the background as solid color.
But when I activate a given use case I need it to have a skybox.
I know I can do this on the editor via:

But I'd like to change it dynamically in C#.
There's no property or field for this in C# default Camera script.
Is it possible to do in Unity?
To change between rendering a skybox and a solid color, set the camera's clearflags
Example Methods:
Example Usage: