Skip to content

Room Type ​

hostel.room_type · numbered {hostel}-{name}

Fields ​

Every record also has id, created_at and updated_at.

FieldLabelTypeRules
hostelhostellink → hostel.hostelrequired
namenametextrequired
amenitiesamenitiestable of room_type_amenity

Unique together: hostel + name

Permissions ​

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

API ​

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

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

Edulab Bench developer documentation