Classes
A class (turma) ties a modality, a teacher, and a schedule together. Roster management (who’s enrolled) is a separate tool group — see Class roster.
list_classes
Section titled “list_classes”| Argument | Type | Required | Notes |
|---|---|---|---|
limit | number | no | default 50, max 200 |
offset | number | no | default 0 |
Ordered by created_at descending.
get_class
Section titled “get_class”| Argument | Type | Required |
|---|---|---|
id | uuid | yes |
create_class
Section titled “create_class”| Argument | Type | Required | Notes |
|---|---|---|---|
modality_id | uuid | yes | |
teacher_id | uuid | yes | |
name | string | no | optional display name |
schedule | string | yes | free text, e.g. "Seg/Qua/Sex 19h" |
capacity | integer | yes | ≥ 1. Not enforced against roster size — same as the staff UI. |
update_class
Section titled “update_class”Same fields as create_class, all optional, plus id (required). name
accepts null to clear.
delete_class
Section titled “delete_class”| Argument | Type | Required |
|---|---|---|
id | uuid | yes |
Fails if any class_enrollments row still references this class.