Appearance
Holiday
lms.holiday
Fields
Every record also has id, created_at and updated_at.
| Field | Label | Type | Rules |
|---|---|---|---|
title | title | text | required; max 255 characters |
holiday_type | holiday type | select | one of: General, National, Regional, College, Exam, Vacation; default "General" |
start_date | start date | date | required |
end_date | end date | date | required |
college | college | link → core.college | |
programme | programme | link → core.programme | |
batch | batch | link → lms.batch | |
description | description | longtext | max 1000 characters |
is_active | is active | check | default true |
Permissions
| Role | Can |
|---|---|
lms:admin | read, create, update, delete |
lms:college_admin | read, create, update, delete |
lms:hod | read, create, update, delete |
lms:faculty | read |
lms:student | read |
lms:parent | read |
API
http
GET /api/lms/holiday?<field>=<value>&limit=100&offset=0
POST /api/lms/holiday
GET /api/lms/holiday/:id
PATCH /api/lms/holiday/:id
DELETE /api/lms/holiday/:id