How can I toggle 'Student Portal Visibility' for a class?

To update the "Student Portal Visibility" field, the easiest method is to bring the field into a Find Classes query and update it from there. This field also defaults in the Review Class Configuration query on the System homepage.