Add or change one class
save_classAdd one class, or change one (give its id; send only the fields to change). Changing a class rewrites it for every date, past ones included: to move a class to another day or time from a date, use change_class_time. Seats are changed with set_seats. Needs the classes tick at the branch (both branches when moving it).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "save_class"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The class to change; leave out to add one. | |
| end | No | End, 24-hour HH:MM, e.g. 16:30. | |
| mode | No | in_person (the default), online or hybrid. | |
| room | No | Room, up to 60 characters. | |
| start | No | Start, 24-hour HH:MM, e.g. 16:30. | |
| weekday | No | 1 = Monday ... 7 = Sunday. | |
| capacity | No | Class size (0 to 500); null for not set. Places left = capacity - seats taken - trial children that day. | |
| branch_id | No | The branch it runs at (an id from list_branches). | |
| level_ids | No | The levels it takes (ids from list_levels); at least one. | |
| last_month | No | The last month it runs (always set; carry it forward when the run ends), YYYY-MM. | |
| first_month | No | The first month it runs, YYYY-MM. | |
| seats_taken | No | Seats taken, only when adding a class (0 to 500). | |
| subject_ids | No | The subjects it teaches (ids from list_subjects); at least one. | |
| teacher_ids | No | Its teachers (ids from list_teachers). | |
| takes_trials | No | Whether families can ask about a trial in this class (default true). | |
| last_lesson_date | No | Optional exact last lesson (in last_month, on its weekday), YYYY-MM-DD, in the business's own time zone. | |
| first_lesson_date | No | Optional exact first lesson (in first_month, on its weekday), YYYY-MM-DD, in the business's own time zone. | |
| trial_notice_days | No | Days of notice a trial needs (0 to 90). | |
| trial_cap_per_lesson | No | Most trial children in one lesson; null for no cap. |