Skip to content

Complaint Comment ​

hostel.complaint_comment · child table of Complaint

Fields ​

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

FieldLabelTypeRules
authorauthorlink → core.userrequired
author_typeauthor typeselectrequired; one of: Staff, Student
commentcommentlongtextrequired

Permissions ​

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

API ​

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

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

Edulab Bench developer documentation