SamaySetu API Documentation
string · minLength: 0 · maxLength: 50 · requiredstring · minLength: 0 · maxLength: 10 · requiredinteger · int32 · min: 1 · max: 4 · requiredstring · minLength: 0 · maxLength: 100string · minLength: 0 · maxLength: 100string · date-timeinteger · int64booleanstring · minLength: 0 · maxLength: 20integer · int32 · min: 0string · date-time
string · minLength: 0 · maxLength: 50 · requiredstring · minLength: 0 · maxLength: 10 · requiredinteger · int32 · min: 1 · max: 4 · requiredstring · minLength: 0 · maxLength: 100string · minLength: 0 · maxLength: 100string · date-timeinteger · int64booleanstring · minLength: 0 · maxLength: 20integer · int32 · min: 0string · date-timestring · minLength: 0 · maxLength: 50 · requiredstring · minLength: 0 · maxLength: 10 · requiredinteger · int32 · min: 1 · max: 4 · requiredstring · minLength: 0 · maxLength: 100string · minLength: 0 · maxLength: 100string · date-timeinteger · int64booleanstring · minLength: 0 · maxLength: 20integer · int32 · min: 0string · date-time
integer · int64 · requiredstring · minLength: 0 · maxLength: 50 · requiredstring · minLength: 0 · maxLength: 10 · requiredinteger · int32 · min: 1 · max: 4 · requiredstring · minLength: 0 · maxLength: 100string · minLength: 0 · maxLength: 100string · date-timeinteger · int64booleanstring · minLength: 0 · maxLength: 20integer · int32 · min: 0string · date-time
integer · int64 · requiredstring · minLength: 0 · maxLength: 50 · requiredstring · minLength: 0 · maxLength: 10 · requiredinteger · int32 · min: 1 · max: 4 · requiredstring · minLength: 0 · maxLength: 100string · minLength: 0 · maxLength: 100string · date-timeinteger · int64booleanstring · minLength: 0 · maxLength: 20integer · int32 · min: 0string · date-time
integer · int64 · requiredstring · minLength: 0 · maxLength: 50 · requiredstring · minLength: 0 · maxLength: 10 · requiredinteger · int32 · min: 1 · max: 4 · requiredstring · minLength: 0 · maxLength: 100string · minLength: 0 · maxLength: 100string · date-timeinteger · int64booleanstring · minLength: 0 · maxLength: 20integer · int32 · min: 0string · date-timestring · minLength: 0 · maxLength: 50 · requiredstring · minLength: 0 · maxLength: 10 · requiredinteger · int32 · min: 1 · max: 4 · requiredstring · minLength: 0 · maxLength: 100string · minLength: 0 · maxLength: 100string · date-timeinteger · int64booleanstring · minLength: 0 · maxLength: 20integer · int32 · min: 0string · date-time
Divisions
Student divisions, student counts, and time-slot profile mapping
List Divisions
GET
https://api.samaysetu.example
/admin/api/divisions
Returns divisions within the caller's authorized scope.
Required Permission: division.read (JWT Bearer + scope check).
List Divisions › Responses
OK
branchnameyearclassRepresentativeclassTeachercreatedAtidisActivetimeSlotTypetotalStudentsupdatedAtCreate Division
POST
https://api.samaysetu.example
/admin/api/divisions
Creates a new student division for a department and academic year.
Required Permission: division.create (JWT Bearer + scope check).
Create Division › Request Body
branchnameyearclassRepresentativeclassTeachercreatedAtidisActivetimeSlotTypetotalStudentsupdatedAtCreate Division › Responses
OK
branchnameyearclassRepresentativeclassTeachercreatedAtidisActivetimeSlotTypetotalStudentsupdatedAtList Divisions by Year
GET
https://api.samaysetu.example
/admin/api/divisions/academic-year/{academicYearId}
Returns divisions for the given academic year.
Required Permission: division.read (JWT Bearer + scope check).
path Parameters
academicYearIdPath parameter academicYearId.
List Divisions by Year › Responses
OK
branchnameyearclassRepresentativeclassTeachercreatedAtidisActivetimeSlotTypetotalStudentsupdatedAtGet Division
GET
https://api.samaysetu.example
/admin/api/divisions/{id}
Returns a single division by ID.
Required Permission: division.read (JWT Bearer + scope check).
path Parameters
idPath parameter id.
Get Division › Responses
OK
branchnameyearclassRepresentativeclassTeachercreatedAtidisActivetimeSlotTypetotalStudentsupdatedAtUpdate Division
PUT
https://api.samaysetu.example
/admin/api/divisions/{id}
Updates division capacity, academic year, department, or schedule type.
Required Permission: division.update (JWT Bearer + scope check).
path Parameters
idPath parameter id.
Update Division › Request Body
branchnameyearclassRepresentativeclassTeachercreatedAtidisActivetimeSlotTypetotalStudentsupdatedAtUpdate Division › Responses
OK
branchnameyearclassRepresentativeclassTeachercreatedAtidisActivetimeSlotTypetotalStudentsupdatedAt