Skip to content

Attendance ​

hostel.attendance

Fields ​

Every record also has id, created_at and updated_at.

FieldLabelTypeRules
studentstudentlink → core.studentrequired
hostelhostellink → hostel.hostel
datedatedaterequired
statusstatusselectrequired; one of: Present, Absent, Home
check_incheck indatetime
check_outcheck outdatetime

Unique together: student + date

Permissions ​

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

API ​

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

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

Edulab Bench developer documentation