edit_class
Update a class by renaming it, changing its room code, or replacing grade IDs. Only specified fields change; staff assignments are not affected.
Instructions
Rename a class or change its room code / grades. Requires PS_ENABLE_WRITES.
Only provided fields change — current values are read back from the class first and resent, because the underlying endpoint replaces what it is given. Staff are not affected; use add_class_staff / remove_class_staff for those.
Args: section_id: Class/section ID (from list_classes) school_id: School ID the class belongs to name: New class name (optional) room: New room code / external ID, e.g. "Room 5" (optional) grade_ids: New list of grade IDs (optional; replaces the current grades)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| room | No | ||
| grade_ids | No | ||
| school_id | Yes | ||
| section_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |