Skip to content

Room Allotment ​

hostel.allotment · every change is kept in the audit log · numbered ALT-{YYYY}-{#####}

Fields ​

Every record also has id, created_at and updated_at.

FieldLabelTypeRules
studentstudentlink → core.studentrequired
applicationapplicationlink → hostel.applicationrequired
academic_yearacademic yearlink → core.academic_yearrequired
hostelhostellink → hostel.hostelrequired
roomroomlink → hostel.roomrequired
bed_nobed nonumbermin 1
fromfromdaterequired
totodate
statusstatusselectone of: Allotted, Vacated, Cancelled; default "Allotted"
sourcesourceselectone of: Online payment, Office counter, Room shift, Admin; default "Online payment"

Unique together: application

Permissions ​

RoleCan
hostel:adminread, create, update, delete, import, export
hostel:wardenread, create, update — only rows in the user's scope (via room.hostel)
hostel:accountsread
hostel:studentread — only own rows (via student)

API ​

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

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

Edulab Bench developer documentation