Is there a way to change the screen setting from 256 colours to whatever using an API call?

Thanks in anticipation.