SamaySetu API Docs LogoSamaySetu API Docs Logo
SamaySetu API Docsv1.0.0
  • Documentation
  • API Reference
Information
Authentication
Accounts & Access
Academic Structure
Curriculum & Infrastructure
Faculty Management
    Faculty
    Faculty Approvals
    Availability
      Get AvailabilitygetSave Availabilityput
Timetable Management
Analytics & System
Security Governance
SamaySetu API Documentation
SamaySetu API Documentation

Availability

Faculty weekly preferred teaching slots


Get Availability

GET
https://api.samaysetu.example
/api/staff/availability

Returns the authenticated faculty member's saved weekly availability slots.

Access: Authenticated caller (Authorization: Bearer <token>).

Get Availability › Responses

OK

​TeacherAvailability[]
TeacherAvailability
dayOfWeek
​string · enum · required
Enum values:
MONDAY
TUESDAY
WEDNESDAY
THURSDAY
FRIDAY
SATURDAY
endTime
​string · required
startTime
​string · required
​TeacherEntity · required
createdAt
​string · date-time
id
​integer · int64
isAvailable
​boolean
GET/api/staff/availability
curl https://api.samaysetu.example/api/staff/availability \ --header 'Authorization: Bearer <token>'
Example Responses
[ { "id": 31, "dayOfWeek": "MONDAY", "startTime": "09:00", "endTime": "17:00", "isAvailable": true, "teacher": { "id": 14, "name": "Aarav Kulkarni", "employeeId": "FAC-1042", "shortName": "ARK", "email": "aarav.kulkarni@mitaoe.ac.in", "phone": "9876500000", "role": "TIMETABLE_COORDINATOR", "specialization": "Operating Systems", "minWeeklyHours": 8, "maxWeeklyHours": 18, "isEmailVerified": true, "isApproved": true, "isActive": true, "isFirstLogin": false, "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-15T09:10:00Z", "updatedAt": "2026-06-25T14:20:00Z" }, "createdAt": "2026-06-20T09:00:00Z" } ]
json
application/json

Save Availability

PUT
https://api.samaysetu.example
/api/staff/availability

Replaces the authenticated faculty member's weekly availability slots.

Access: Authenticated caller (Authorization: Bearer <token>).

Save Availability › Request Body

​AvailabilityDTO[]
AvailabilityDTO
dayOfWeek
​string · enum · required
Enum values:
MONDAY
TUESDAY
WEDNESDAY
THURSDAY
FRIDAY
SATURDAY
endTime
​string · required
startTime
​string · required
isAvailable
​boolean

Save Availability › Responses

OK

string
PUT/api/staff/availability
curl https://api.samaysetu.example/api/staff/availability \ --request PUT \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <token>' \ --data '[ { "dayOfWeek": "MONDAY", "startTime": "09:00", "endTime": "17:00", "isAvailable": true }, { "dayOfWeek": "TUESDAY", "startTime": "09:00", "endTime": "17:00", "isAvailable": true } ]'
Example Request Body
[ { "dayOfWeek": "MONDAY", "startTime": "09:00", "endTime": "17:00", "isAvailable": true }, { "dayOfWeek": "TUESDAY", "startTime": "09:00", "endTime": "17:00", "isAvailable": true } ]
json
application/json
Example Responses
Availability updated successfully
json
application/json

Faculty ApprovalsPublished Views