SamaySetu API Docs LogoSamaySetu API Docs Logo
SamaySetu API Docsv1.0.0
  • Documentation
  • API Reference
Information
Authentication
Accounts & Access
Academic Structure
Curriculum & Infrastructure
    Courses
    Rooms & Labs
      List RoomsgetCreate RoompostGet RoomgetUpdate RoomputDelete RoomdeleteBulk Upload Rooms (CSV)postDownload Room CSV Templateget
    Time Slots
Faculty Management
Timetable Management
Analytics & System
Security Governance
SamaySetu API Documentation
SamaySetu API Documentation

Rooms & Labs

Classrooms, laboratories, equipment capabilities, seating capacities, and bulk CSV import


List Rooms

GET
https://api.samaysetu.example
/admin/api/rooms

Returns all classrooms and labs within the caller's authorized scope.

Required Permission: room.read (JWT Bearer + scope check).

List Rooms › Responses

OK

​ClassRoom[]
ClassRoom
buildingWing
​string · minLength: 0 · maxLength: 10 · required
name
​string · minLength: 0 · maxLength: 50 · required
roomNumber
​string · minLength: 0 · maxLength: 20 · required
roomType
​string · enum · required
Enum values:
CLASSROOM
LAB
AUDITORIUM
capacity
​integer · int32 · min: 1
createdAt
​string · date-time
​DepartmentEntity
equipment
​string
hasAc
​boolean
hasProjector
​boolean
id
​integer · int64
isActive
​boolean
updatedAt
​string · date-time
GET/admin/api/rooms
curl https://api.samaysetu.example/admin/api/rooms \ --header 'Authorization: Bearer <token>'
Example Responses
[ { "id": 8, "roomNumber": "CR-204", "name": "Turing Lecture Hall", "buildingWing": "B", "capacity": 75, "roomType": "CLASSROOM", "hasProjector": true, "hasAc": true, "equipment": "Smart Board, Overhead Projector, Podium Mic", "isActive": true, "department": { "id": 101, "name": "Computer Engineering", "code": "COMP", "headOfDepartment": "Dr. Snehal Deshmukh", "years": "1,2,3,4", "academicYear": { "id": 4, "yearName": "2026-27", "startDate": "2026-07-01", "endDate": "2027-05-31", "isCurrent": true, "createdAt": "2026-06-15T09:00:00Z" }, "createdAt": "2026-06-15T09:30:00Z", "updatedAt": "2026-06-20T10:15:00Z" }, "createdAt": "2026-06-16T08:45:00Z", "updatedAt": "2026-06-16T08:45:00Z" }, { "id": 21, "roomNumber": "LAB-302", "name": "Systems Programming Lab", "buildingWing": "B", "capacity": 28, "roomType": "LAB", "hasProjector": true, "hasAc": true, "equipment": "Smart Board, Overhead Projector, Podium Mic", "isActive": true, "department": { "id": 101, "name": "Computer Engineering", "code": "COMP", "headOfDepartment": "Dr. Snehal Deshmukh", "years": "1,2,3,4", "academicYear": { "id": 4, "yearName": "2026-27", "startDate": "2026-07-01", "endDate": "2027-05-31", "isCurrent": true, "createdAt": "2026-06-15T09:00:00Z" }, "createdAt": "2026-06-15T09:30:00Z", "updatedAt": "2026-06-20T10:15:00Z" }, "createdAt": "2026-06-16T08:45:00Z", "updatedAt": "2026-06-16T08:45:00Z" } ]
json
application/json

Create Room

POST
https://api.samaysetu.example
/admin/api/rooms

Creates a new classroom, laboratory, or auditorium.

Required Permission: room.create (JWT Bearer + scope check).

Create Room › Request Body

ClassRoom
buildingWing
​string · minLength: 0 · maxLength: 10 · required
name
​string · minLength: 0 · maxLength: 50 · required
roomNumber
​string · minLength: 0 · maxLength: 20 · required
roomType
​string · enum · required
Enum values:
CLASSROOM
LAB
AUDITORIUM
capacity
​integer · int32 · min: 1
createdAt
​string · date-time
​DepartmentEntity
equipment
​string
hasAc
​boolean
hasProjector
​boolean
id
​integer · int64
isActive
​boolean
updatedAt
​string · date-time

Create Room › Responses

OK

ClassRoom
buildingWing
​string · minLength: 0 · maxLength: 10 · required
name
​string · minLength: 0 · maxLength: 50 · required
roomNumber
​string · minLength: 0 · maxLength: 20 · required
roomType
​string · enum · required
Enum values:
CLASSROOM
LAB
AUDITORIUM
capacity
​integer · int32 · min: 1
createdAt
​string · date-time
​DepartmentEntity
equipment
​string
hasAc
​boolean
hasProjector
​boolean
id
​integer · int64
isActive
​boolean
updatedAt
​string · date-time
POST/admin/api/rooms
curl https://api.samaysetu.example/admin/api/rooms \ --request POST \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <token>' \ --data '{ "roomNumber": "CR-204", "name": "Turing Lecture Hall", "buildingWing": "B", "capacity": 75, "roomType": "CLASSROOM", "hasProjector": true, "hasAc": true, "equipment": "Smart Board, Projector", "isActive": true, "department": { "id": 101, "name": "Computer Engineering", "code": "COMP", "headOfDepartment": "Dr. Snehal Deshmukh", "years": "1,2,3,4", "academicYear": { "id": 4, "yearName": "2026-27", "startDate": "2026-07-01", "endDate": "2027-05-31", "isCurrent": true, "createdAt": "2026-06-15T09:00:00Z" }, "createdAt": "2026-06-15T09:30:00Z", "updatedAt": "2026-06-20T10:15:00Z" } }'
Example Request Body
{ "roomNumber": "CR-204", "name": "Turing Lecture Hall", "buildingWing": "B", "capacity": 75, "roomType": "CLASSROOM", "hasProjector": true, "hasAc": true, "equipment": "Smart Board, Projector", "isActive": true, "department": { "id": 101, "name": "Computer Engineering", "code": "COMP", "headOfDepartment": "Dr. Snehal Deshmukh", "years": "1,2,3,4", "academicYear": { "id": 4, "yearName": "2026-27", "startDate": "2026-07-01", "endDate": "2027-05-31", "isCurrent": true, "createdAt": "2026-06-15T09:00:00Z" }, "createdAt": "2026-06-15T09:30:00Z", "updatedAt": "2026-06-20T10:15:00Z" } }
json
application/json
Example Responses
{ "id": 8, "roomNumber": "CR-204", "name": "Turing Lecture Hall", "buildingWing": "B", "capacity": 75, "roomType": "CLASSROOM", "hasProjector": true, "hasAc": true, "equipment": "Smart Board, Overhead Projector, Podium Mic", "isActive": true, "department": { "id": 101, "name": "Computer Engineering", "code": "COMP", "headOfDepartment": "Dr. Snehal Deshmukh", "years": "1,2,3,4", "academicYear": { "id": 4, "yearName": "2026-27", "startDate": "2026-07-01", "endDate": "2027-05-31", "isCurrent": true, "createdAt": "2026-06-15T09:00:00Z" }, "createdAt": "2026-06-15T09:30:00Z", "updatedAt": "2026-06-20T10:15:00Z" }, "createdAt": "2026-06-16T08:45:00Z", "updatedAt": "2026-06-16T08:45:00Z" }
json
application/json

Get Room

GET
https://api.samaysetu.example
/admin/api/rooms/{id}

Returns details for a single classroom or laboratory.

Required Permission: room.read (JWT Bearer + scope check).

Get Room › path Parameters

id
​integer · int64 · required

Path parameter id.

Get Room › Responses

OK

ClassRoom
buildingWing
​string · minLength: 0 · maxLength: 10 · required
name
​string · minLength: 0 · maxLength: 50 · required
roomNumber
​string · minLength: 0 · maxLength: 20 · required
roomType
​string · enum · required
Enum values:
CLASSROOM
LAB
AUDITORIUM
capacity
​integer · int32 · min: 1
createdAt
​string · date-time
​DepartmentEntity
equipment
​string
hasAc
​boolean
hasProjector
​boolean
id
​integer · int64
isActive
​boolean
updatedAt
​string · date-time
GET/admin/api/rooms/{id}
curl https://api.samaysetu.example/admin/api/rooms/:id \ --header 'Authorization: Bearer <token>'
Example Responses
{ "id": 8, "roomNumber": "CR-204", "name": "Turing Lecture Hall", "buildingWing": "B", "capacity": 75, "roomType": "CLASSROOM", "hasProjector": true, "hasAc": true, "equipment": "Smart Board, Overhead Projector, Podium Mic", "isActive": true, "department": { "id": 101, "name": "Computer Engineering", "code": "COMP", "headOfDepartment": "Dr. Snehal Deshmukh", "years": "1,2,3,4", "academicYear": { "id": 4, "yearName": "2026-27", "startDate": "2026-07-01", "endDate": "2027-05-31", "isCurrent": true, "createdAt": "2026-06-15T09:00:00Z" }, "createdAt": "2026-06-15T09:30:00Z", "updatedAt": "2026-06-20T10:15:00Z" }, "createdAt": "2026-06-16T08:45:00Z", "updatedAt": "2026-06-16T08:45:00Z" }
json
application/json

Update Room

PUT
https://api.samaysetu.example
/admin/api/rooms/{id}

Updates room capacity, type, room number, or department assignment.

Required Permission: room.update (JWT Bearer + scope check).

Update Room › path Parameters

id
​integer · int64 · required

Path parameter id.

Update Room › Request Body

ClassRoom
buildingWing
​string · minLength: 0 · maxLength: 10 · required
name
​string · minLength: 0 · maxLength: 50 · required
roomNumber
​string · minLength: 0 · maxLength: 20 · required
roomType
​string · enum · required
Enum values:
CLASSROOM
LAB
AUDITORIUM
capacity
​integer · int32 · min: 1
createdAt
​string · date-time
​DepartmentEntity
equipment
​string
hasAc
​boolean
hasProjector
​boolean
id
​integer · int64
isActive
​boolean
updatedAt
​string · date-time

Update Room › Responses

OK

ClassRoom
buildingWing
​string · minLength: 0 · maxLength: 10 · required
name
​string · minLength: 0 · maxLength: 50 · required
roomNumber
​string · minLength: 0 · maxLength: 20 · required
roomType
​string · enum · required
Enum values:
CLASSROOM
LAB
AUDITORIUM
capacity
​integer · int32 · min: 1
createdAt
​string · date-time
​DepartmentEntity
equipment
​string
hasAc
​boolean
hasProjector
​boolean
id
​integer · int64
isActive
​boolean
updatedAt
​string · date-time
PUT/admin/api/rooms/{id}
curl https://api.samaysetu.example/admin/api/rooms/:id \ --request PUT \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <token>' \ --data '{ "roomNumber": "CR-204", "name": "Turing Lecture Hall", "buildingWing": "B", "capacity": 80, "roomType": "CLASSROOM", "hasProjector": true, "hasAc": true, "isActive": true, "department": { "id": 101, "name": "Computer Engineering", "code": "COMP", "headOfDepartment": "Dr. Snehal Deshmukh", "years": "1,2,3,4", "academicYear": { "id": 4, "yearName": "2026-27", "startDate": "2026-07-01", "endDate": "2027-05-31", "isCurrent": true, "createdAt": "2026-06-15T09:00:00Z" }, "createdAt": "2026-06-15T09:30:00Z", "updatedAt": "2026-06-20T10:15:00Z" } }'
Example Request Body
{ "roomNumber": "CR-204", "name": "Turing Lecture Hall", "buildingWing": "B", "capacity": 80, "roomType": "CLASSROOM", "hasProjector": true, "hasAc": true, "isActive": true, "department": { "id": 101, "name": "Computer Engineering", "code": "COMP", "headOfDepartment": "Dr. Snehal Deshmukh", "years": "1,2,3,4", "academicYear": { "id": 4, "yearName": "2026-27", "startDate": "2026-07-01", "endDate": "2027-05-31", "isCurrent": true, "createdAt": "2026-06-15T09:00:00Z" }, "createdAt": "2026-06-15T09:30:00Z", "updatedAt": "2026-06-20T10:15:00Z" } }
json
application/json
Example Responses
{ "id": 8, "roomNumber": "CR-204", "name": "Turing Lecture Hall", "buildingWing": "B", "capacity": 80, "roomType": "CLASSROOM", "hasProjector": true, "hasAc": true, "equipment": "Smart Board, Overhead Projector, Podium Mic", "isActive": true, "department": { "id": 101, "name": "Computer Engineering", "code": "COMP", "headOfDepartment": "Dr. Snehal Deshmukh", "years": "1,2,3,4", "academicYear": { "id": 4, "yearName": "2026-27", "startDate": "2026-07-01", "endDate": "2027-05-31", "isCurrent": true, "createdAt": "2026-06-15T09:00:00Z" }, "createdAt": "2026-06-15T09:30:00Z", "updatedAt": "2026-06-20T10:15:00Z" }, "createdAt": "2026-06-16T08:45:00Z", "updatedAt": "2026-06-16T08:45:00Z" }
json
application/json

Delete Room

DELETE
https://api.samaysetu.example
/admin/api/rooms/{id}

Deletes an existing classroom or lab.

Required Permission: room.delete (JWT Bearer + scope check).

Delete Room › path Parameters

id
​integer · int64 · required

Path parameter id.

Delete Room › Responses

OK

string
DELETE/admin/api/rooms/{id}
curl https://api.samaysetu.example/admin/api/rooms/:id \ --request DELETE \ --header 'Authorization: Bearer <token>'
Example Responses
Classroom deleted successfully
json
application/json

Bulk Upload Rooms (CSV)

POST
https://api.samaysetu.example
/admin/api/rooms/upload

Imports classrooms, laboratories, and auditoriums at institutional scope from a .csv file (max 5 MB).

Bulk Upload Rooms (CSV) › Request Body

file
​string · binary · required

CSV file (.csv, max 5 MB)

Bulk Upload Rooms (CSV) › Responses

Rooms imported from CSV

string
POST/admin/api/rooms/upload
curl https://api.samaysetu.example/admin/api/rooms/upload \ --request POST \ --header 'Content-Type: multipart/form-data' \ --header 'Authorization: Bearer <token>' \ --form 'file=rooms_template.csv'
Example Request Body
{ "file": "rooms_template.csv" }
text
multipart/form-data
Example Responses
Successfully created 6 rooms
text
text/plain

Download Room CSV Template

GET
https://api.samaysetu.example
/admin/api/rooms/download-template

Downloads the header template CSV (rooms_template.csv) expected by bulk room imports.

Download Room CSV Template › Responses

Room CSV template download

string
GET/admin/api/rooms/download-template
curl https://api.samaysetu.example/admin/api/rooms/download-template \ --header 'Authorization: Bearer <token>'
Example Responses
Name,Room Number (e.g. A101),Building Wing (e.g. A),Capacity,Room Type (CLASSROOM/LAB/AUDITORIUM),Department (optional - exact name),Has Projector (TRUE/FALSE),Has AC (TRUE/FALSE),Additional Equipment (optional) Lecture Hall A101,A101,A,65,CLASSROOM,Computer Engineering,TRUE,TRUE,Smart Board
csv
text/csv

CoursesTime Slots