Skip to content

Hostel Semester Rule ​

hostel.hostel_semester_rule · child table of Hostel

Fields ​

Every record also has id, created_at and updated_at and parent.

FieldLabelTypeRules
academic_yearacademic yearlink → core.academic_yearrequired
semestersemesternumberrequired; min 1
self_bed_selectionself bed selectioncheckdefault false
open_for_paymentopen for paymentcheckdefault true

Unique together: academic_year + semester

Permissions ​

RoleCan
hostel:adminread, create, update, delete, import, export
hostel:wardenread
hostel:accountsread
hostel:studentread

API ​

http
GET    /api/hostel/hostel_semester_rule?<field>=<value>&limit=100&offset=0
POST   /api/hostel/hostel_semester_rule
GET    /api/hostel/hostel_semester_rule/:id
PATCH  /api/hostel/hostel_semester_rule/:id
DELETE /api/hostel/hostel_semester_rule/:id

Bulk import: GET /api/_import/hostel/hostel_semester_rule/template (CSV template), then POST /api/_import/hostel/hostel_semester_rule. See REST API.

Edulab Bench developer documentation