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
      List FacultygetCreate Faculty MemberpostList Faculty (Paginated)getGet Faculty MembergetUpdate Faculty MemberputDelete Faculty MemberdeleteGet My Teacher ProfilegetUpdate My Teacher Profileput
    Faculty Approvals
    Availability
Timetable Management
Analytics & System
Security Governance
SamaySetu API Documentation
SamaySetu API Documentation

Faculty

Faculty records, paginated listings, and self-service profile


List Faculty

GET
https://api.samaysetu.example
/api/teachers

Returns all faculty records visible in the caller's department or institution scope.

Required Permission: teacher.read.department or teacher.read.institution (JWT Bearer + scope check).

List Faculty › Responses

OK

​TeacherEntity[]
TeacherEntity
employeeId
​string · minLength: 0 · maxLength: 20 · required
name
​string · minLength: 0 · maxLength: 100 · required
shortName
​string · minLength: 2 · maxLength: 5 · pattern: ^[A-Z]{2,5}$ · required
createdAt
​string · date-time
​DepartmentEntity
email
​string · email
id
​integer · int64
isActive
​boolean
isApproved
​boolean
isEmailVerified
​boolean
isFirstLogin
​boolean
maxWeeklyHours
​integer · int32 · min: 1 · max: 50
minWeeklyHours
​integer · int32 · min: 1 · max: 40
phone
​string · minLength: 0 · maxLength: 15
role
​string

Allowed creation roles via POST /api/teachers: TEACHER, TIMETABLE_COORDINATOR, HOD, DEPARTMENT_ADMIN.

specialization
​string
updatedAt
​string · date-time
GET/api/teachers
curl https://api.samaysetu.example/api/teachers \ --header 'Authorization: Bearer <token>'
Example Responses
[ { "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" } ]
json
application/json

Create Faculty Member

POST
https://api.samaysetu.example
/api/teachers

Creates a new teacher/faculty member record within authorized role boundaries.

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

Create Faculty Member › Request Body

Request payload for creating a new faculty/staff account via POST /api/teachers.
TeacherCreateRequest
employeeId
​string · minLength: 0 · maxLength: 20 · required
name
​string · minLength: 0 · maxLength: 100 · required
password
​string · minLength: 1 · writeOnly · required

Write-only initial password when creating an account; never returned in API responses.

shortName
​string · minLength: 2 · maxLength: 5 · pattern: ^[A-Z]{2,5}$ · required
createdAt
​string · date-time
​DepartmentEntity
email
​string · email
id
​integer · int64
isActive
​boolean
isApproved
​boolean
isEmailVerified
​boolean
isFirstLogin
​boolean
maxWeeklyHours
​integer · int32 · min: 1 · max: 50
minWeeklyHours
​integer · int32 · min: 1 · max: 40
phone
​string · minLength: 0 · maxLength: 15
role
​string

Allowed creation roles via POST /api/teachers: TEACHER, TIMETABLE_COORDINATOR, HOD, DEPARTMENT_ADMIN.

specialization
​string
updatedAt
​string · date-time

Create Faculty Member › Responses

OK

TeacherEntity
employeeId
​string · minLength: 0 · maxLength: 20 · required
name
​string · minLength: 0 · maxLength: 100 · required
shortName
​string · minLength: 2 · maxLength: 5 · pattern: ^[A-Z]{2,5}$ · required
createdAt
​string · date-time
​DepartmentEntity
email
​string · email
id
​integer · int64
isActive
​boolean
isApproved
​boolean
isEmailVerified
​boolean
isFirstLogin
​boolean
maxWeeklyHours
​integer · int32 · min: 1 · max: 50
minWeeklyHours
​integer · int32 · min: 1 · max: 40
phone
​string · minLength: 0 · maxLength: 15
role
​string

Allowed creation roles via POST /api/teachers: TEACHER, TIMETABLE_COORDINATOR, HOD, DEPARTMENT_ADMIN.

specialization
​string
updatedAt
​string · date-time
POST/api/teachers
curl https://api.samaysetu.example/api/teachers \ --request POST \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <token>' \ --data '{ "name": "Prajakta Joshi", "employeeId": "FAC-1052", "shortName": "PKJ", "email": "prajakta.joshi@mitaoe.ac.in", "phone": "9876501122", "role": "TEACHER", "specialization": "Database Management Systems", "minWeeklyHours": 8, "maxWeeklyHours": 18, "password": "ChangeMe@2026", "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
{ "name": "Prajakta Joshi", "employeeId": "FAC-1052", "shortName": "PKJ", "email": "prajakta.joshi@mitaoe.ac.in", "phone": "9876501122", "role": "TEACHER", "specialization": "Database Management Systems", "minWeeklyHours": 8, "maxWeeklyHours": 18, "password": "ChangeMe@2026", "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": 28, "name": "Prajakta Joshi", "employeeId": "FAC-1052", "shortName": "PKJ", "email": "prajakta.joshi@mitaoe.ac.in", "phone": "9876500000", "role": "TEACHER", "specialization": "Operating Systems", "minWeeklyHours": 8, "maxWeeklyHours": 18, "isEmailVerified": true, "isApproved": true, "isActive": true, "isFirstLogin": 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-15T09:10:00Z", "updatedAt": "2026-06-25T14:20:00Z" }
json
application/json

List Faculty (Paginated)

GET
https://api.samaysetu.example
/api/teachers/paged

Returns a paginated list of faculty records filtered by department or institution scope.

Required Permission: teacher.read.department or teacher.read.institution (JWT Bearer + scope check).

List Faculty (Paginated) › query Parameters

page
​integer · int32

Query parameter page.

Default: 0
size
​integer · int32

Query parameter size.

Default: 50
sort
​string

Query parameter sort.

Default: name

List Faculty (Paginated) › Responses

OK

PageTeacherEntity
​TeacherEntity[]
empty
​boolean
first
​boolean
last
​boolean
number
​integer · int32
numberOfElements
​integer · int32
​PageableObject
size
​integer · int32
​SortObject
totalElements
​integer · int64
totalPages
​integer · int32
GET/api/teachers/paged
curl https://api.samaysetu.example/api/teachers/paged \ --header 'Authorization: Bearer <token>'
Example Responses
{ "content": [ { "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" } ], "pageable": { "pageNumber": 0, "pageSize": 50, "offset": 0, "paged": true, "unpaged": false, "sort": { "empty": false, "sorted": true, "unsorted": false } }, "totalElements": 1, "totalPages": 1, "size": 50, "number": 0, "numberOfElements": 1, "first": true, "last": true, "empty": false, "sort": { "empty": false, "sorted": true, "unsorted": false } }
json
application/json

Get Faculty Member

GET
https://api.samaysetu.example
/api/teachers/{id}

Returns a single faculty record by ID.

Required Permission: teacher.read.department or teacher.read.institution (JWT Bearer + scope check).

Get Faculty Member › path Parameters

id
​integer · int64 · required

Path parameter id.

Get Faculty Member › Responses

OK

TeacherEntity
employeeId
​string · minLength: 0 · maxLength: 20 · required
name
​string · minLength: 0 · maxLength: 100 · required
shortName
​string · minLength: 2 · maxLength: 5 · pattern: ^[A-Z]{2,5}$ · required
createdAt
​string · date-time
​DepartmentEntity
email
​string · email
id
​integer · int64
isActive
​boolean
isApproved
​boolean
isEmailVerified
​boolean
isFirstLogin
​boolean
maxWeeklyHours
​integer · int32 · min: 1 · max: 50
minWeeklyHours
​integer · int32 · min: 1 · max: 40
phone
​string · minLength: 0 · maxLength: 15
role
​string

Allowed creation roles via POST /api/teachers: TEACHER, TIMETABLE_COORDINATOR, HOD, DEPARTMENT_ADMIN.

specialization
​string
updatedAt
​string · date-time
GET/api/teachers/{id}
curl https://api.samaysetu.example/api/teachers/:id \ --header 'Authorization: Bearer <token>'
Example Responses
{ "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" }
json
application/json

Update Faculty Member

PUT
https://api.samaysetu.example
/api/teachers/{id}

Administratively updates a faculty member's department, specialization, weekly limit, active status, or short name.

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

Update Faculty Member › path Parameters

id
​integer · int64 · required

Path parameter id.

Update Faculty Member › Request Body

AdminStaffUpdateRequest
employeeId
​string · minLength: 0 · maxLength: 20 · required
name
​string · minLength: 0 · maxLength: 100 · required
shortName
​string · minLength: 2 · maxLength: 5 · pattern: ^[A-Z]{2,5}$ · required
departmentId
​integer · int64
email
​string · email
isActive
​boolean
maxWeeklyHours
​integer · int32 · min: 1 · max: 50
minWeeklyHours
​integer · int32 · min: 1 · max: 40
phone
​string · minLength: 0 · maxLength: 15
role
​string
specialization
​string

Update Faculty Member › Responses

OK

TeacherEntity
employeeId
​string · minLength: 0 · maxLength: 20 · required
name
​string · minLength: 0 · maxLength: 100 · required
shortName
​string · minLength: 2 · maxLength: 5 · pattern: ^[A-Z]{2,5}$ · required
createdAt
​string · date-time
​DepartmentEntity
email
​string · email
id
​integer · int64
isActive
​boolean
isApproved
​boolean
isEmailVerified
​boolean
isFirstLogin
​boolean
maxWeeklyHours
​integer · int32 · min: 1 · max: 50
minWeeklyHours
​integer · int32 · min: 1 · max: 40
phone
​string · minLength: 0 · maxLength: 15
role
​string

Allowed creation roles via POST /api/teachers: TEACHER, TIMETABLE_COORDINATOR, HOD, DEPARTMENT_ADMIN.

specialization
​string
updatedAt
​string · date-time
PUT/api/teachers/{id}
curl https://api.samaysetu.example/api/teachers/:id \ --request PUT \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <token>' \ --data '{ "name": "Prajakta Deshmukh", "employeeId": "FAC-1052", "shortName": "PKD", "email": "prajakta.deshmukh@mitaoe.ac.in", "phone": "9876501122", "role": "HOD", "specialization": "Machine Learning", "minWeeklyHours": 6, "maxWeeklyHours": 16, "departmentId": 101, "isActive": true }'
Example Request Body
{ "name": "Prajakta Deshmukh", "employeeId": "FAC-1052", "shortName": "PKD", "email": "prajakta.deshmukh@mitaoe.ac.in", "phone": "9876501122", "role": "HOD", "specialization": "Machine Learning", "minWeeklyHours": 6, "maxWeeklyHours": 16, "departmentId": 101, "isActive": true }
json
application/json
Example Responses
{ "id": 14, "name": "Aarav Kulkarni", "employeeId": "FAC-1042", "shortName": "ARK", "email": "aarav.kulkarni@mitaoe.ac.in", "phone": "9876500000", "role": "HOD", "specialization": "Machine Learning", "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" }
json
application/json

Delete Faculty Member

DELETE
https://api.samaysetu.example
/api/teachers/{id}

Deletes a faculty member by ID.

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

Delete Faculty Member › path Parameters

id
​integer · int64 · required

Path parameter id.

Delete Faculty Member › Responses

OK

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

Get My Teacher Profile

GET
https://api.samaysetu.example
/api/teachers/profile

Returns the authenticated teacher's profile via /api/teachers/profile.

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

Get My Teacher Profile › Responses

OK

TeacherEntity
employeeId
​string · minLength: 0 · maxLength: 20 · required
name
​string · minLength: 0 · maxLength: 100 · required
shortName
​string · minLength: 2 · maxLength: 5 · pattern: ^[A-Z]{2,5}$ · required
createdAt
​string · date-time
​DepartmentEntity
email
​string · email
id
​integer · int64
isActive
​boolean
isApproved
​boolean
isEmailVerified
​boolean
isFirstLogin
​boolean
maxWeeklyHours
​integer · int32 · min: 1 · max: 50
minWeeklyHours
​integer · int32 · min: 1 · max: 40
phone
​string · minLength: 0 · maxLength: 15
role
​string

Allowed creation roles via POST /api/teachers: TEACHER, TIMETABLE_COORDINATOR, HOD, DEPARTMENT_ADMIN.

specialization
​string
updatedAt
​string · date-time
GET/api/teachers/profile
curl https://api.samaysetu.example/api/teachers/profile \ --header 'Authorization: Bearer <token>'
Example Responses
{ "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" }
json
application/json

Update My Teacher Profile

PUT
https://api.samaysetu.example
/api/teachers/profile

Updates self-service profile fields using ProfileUpdateRequest.

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

Update My Teacher Profile › Request Body

ProfileUpdateRequest
maxWeeklyHours
​integer · int32
minWeeklyHours
​integer · int32
name
​string · minLength: 0 · maxLength: 100
phone
​string · minLength: 0 · maxLength: 15
specialization
​string

Update My Teacher Profile › Responses

OK

TeacherEntity
employeeId
​string · minLength: 0 · maxLength: 20 · required
name
​string · minLength: 0 · maxLength: 100 · required
shortName
​string · minLength: 2 · maxLength: 5 · pattern: ^[A-Z]{2,5}$ · required
createdAt
​string · date-time
​DepartmentEntity
email
​string · email
id
​integer · int64
isActive
​boolean
isApproved
​boolean
isEmailVerified
​boolean
isFirstLogin
​boolean
maxWeeklyHours
​integer · int32 · min: 1 · max: 50
minWeeklyHours
​integer · int32 · min: 1 · max: 40
phone
​string · minLength: 0 · maxLength: 15
role
​string

Allowed creation roles via POST /api/teachers: TEACHER, TIMETABLE_COORDINATOR, HOD, DEPARTMENT_ADMIN.

specialization
​string
updatedAt
​string · date-time
PUT/api/teachers/profile
curl https://api.samaysetu.example/api/teachers/profile \ --request PUT \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <token>' \ --data '{ "name": "Snehal Deshmukh", "phone": "9876500000", "specialization": "Distributed Systems", "minWeeklyHours": 8, "maxWeeklyHours": 18 }'
Example Request Body
{ "name": "Snehal Deshmukh", "phone": "9876500000", "specialization": "Distributed Systems", "minWeeklyHours": 8, "maxWeeklyHours": 18 }
json
application/json
Example Responses
{ "id": 14, "name": "Aarav Kulkarni", "employeeId": "FAC-1042", "shortName": "ARK", "email": "aarav.kulkarni@mitaoe.ac.in", "phone": "9876500000", "role": "TIMETABLE_COORDINATOR", "specialization": "Distributed 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" }
json
application/json

Time SlotsFaculty Approvals