set_class_visibility
Show or hide classes for staff, parents, and students. Make newly created classes visible to enable posting, or hide them by section IDs and optional date.
Instructions
Show or hide classes for staff, parents, and students. Requires PS_ENABLE_WRITES.
Newly created classes start hidden, so a class made with add_class needs this before anyone can see or post to it. Hidden classes are not visible to staff, parents, or students.
Args: school_id: School ID section_ids: Class/section IDs to update (from list_classes) visible: True to make the classes visible, False to hide them date: Optional YYYY-MM-DD date the change takes effect; defaults to today
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| visible | Yes | ||
| school_id | Yes | ||
| section_ids | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |