Enrollments
Enrollments represent the relationships between users and classes. They link students to the classes they attend, teachers to the classes they teach, and both to the school context where the enrollment occurs.
Endpoints
Section titled “Endpoints”All paths are relative to your API base URL.
| Service call | Path | School-year scope |
|---|---|---|
getAllEnrollments | /ims/oneroster/v1p1/enrollments | Current year only |
getEnrollment | /ims/oneroster/v1p1/enrollments/{id} | No |
getEnrollmentsForClassInSchool | /ims/oneroster/v1p1/schools/{id}/classes/{id}/enrollments | No |
getEnrollmentsForSchool | /ims/oneroster/v1p1/schools/{id}/enrollments | Current year only |
School-year scope
Section titled “School-year scope”The “current school year” is determined by the academic session marked as active in Untis Platform — typically the school year currently in progress.
| Endpoint | Returns |
|---|---|
getAllEnrollments | Current school year enrollments only |
getEnrollmentsForSchool | Current school year enrollments only |
getEnrollmentsForClassInSchool | Enrollments independent of school year |
getEnrollment (by ID) | The specific enrollment regardless of year |
Java examples
Section titled “Java examples”Uses the shared OneRosterClient — see the Users page for the full client setup.
Fetch enrollments for the current school year:
OneRosterClient client = new OneRosterClient(tenantId, clientId, password, new ObjectMapper());OneRosterResponse<EnrollmentDto> result = client.list( "/ims/oneroster/v1p1/enrollments", "enrollments", EnrollmentDto.class, null, null, 100, 0);Fetch all records at once:
// Use a high limit to retrieve all records in a single requestOneRosterResponse<EnrollmentDto> result = client.list( "/ims/oneroster/v1p1/enrollments", "enrollments", EnrollmentDto.class, null, null, 100000, 0);Related pages
Section titled “Related pages” Academic Sessions School years and terms that scope enrollment data.
Classes The teaching groups that enrollments link users to.