Add many classes at once
add_classesAdd up to 500 classes in one go, all or nothing. Each row takes the class fields (as save_class) and may name things instead of giving ids: branch (name or alias), levels, subjects and teachers (lists of names). Send dry_run: true first; when any row has a problem nothing is saved and each row says what to fix.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"rows": "<rows>"
},
"name": "add_classes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| dry_run | No | true: check everything and save nothing, returning each item's result. Always do this first. |