Detailed API update - July 2025
This document details the changes between the legacy API and the new API for each module. It is intended for developers familiar with the legacy system.
Table of Contents
Admins
Note: All legacy
/api/adminsendpoints are deprecated in the new API.
The only exception is/api/me, which continues to exist but is now part of the Users module.
Deprecated Endpoints
| Legacy Endpoint | Status in New API |
|---|---|
GET /api/admins | Deprecated |
POST /api/admins | Deprecated |
POST /api/admins/:id | Deprecated |
DELETE /api/admins/:id | Deprecated |
POST /api/admins/:id/password | Deprecated |
Exception
| Endpoint | New Location | Notes |
|---|---|---|
/api/me | Users | Continues to exist, now under Users |
Summary:
- All legacy admin endpoints are deprecated and not available in the new API.
- Use the Users module for
/api/meand all future admin-related functionality.
Apps
Endpoint Mapping
| Legacy Endpoint | New Endpoint | Change? |
|---|---|---|
GET /api/apps | Removed | Removed |
GET /api/apps/:id | Removed | Removed |
POST /api/apps | Removed | Removed |
POST /api/apps/:id | Removed | Removed |
DELETE /api/apps/:id | Removed | Removed |
GET /api/apps/:id/config | Removed | Removed |
POST /api/apps/:id/admins | Removed | Removed |
DELETE /api/apps/:id/admins/:userId | Removed | Removed |
Endpoint Changes
- All legacy app endpoints are removed in the new API.
- There are no direct endpoints for listing, creating, updating, or deleting apps.
- App context is only available via
/api/meand as part of other resource responses (e.g. org units, series, user context).
New Features & Removals
New Features
- App context is returned as part of
/api/meand other resource responses.
Removed Features
- All direct app CRUD and admin management endpoints.
Summary
- Apps are no longer managed via direct API endpoints.
- App information is only available as part of user context or related resources.
- All legacy app endpoints are removed.
Auth
Note: All legacy
/api/auth/*endpoints are deprecated in the new API.
The new API introduces a limited set of authentication endpoints, primarily for token exchange.
Deprecated Endpoints
| Legacy Endpoint | Status in New API |
|---|---|
POST /api/auth/login | Deprecated |
POST /api/auth/logout | Deprecated |
GET /api/auth/strategies | Deprecated |
POST /api/auth/shibboleth | Deprecated |
GET /api/auth/shibboleth/sp | Deprecated |
GET /api/auth/shibboleth/sp/callback | Deprecated |
GET /api/auth/shibboleth/callback | Deprecated |
POST /api/auth/oauth/token | Deprecated |
GET /api/auth/oauth/clients | Deprecated |
POST /api/auth/oauth/clients | Deprecated |
PUT /api/auth/oauth/clients/:id | Deprecated |
DELETE /api/auth/oauth/clients/:id | Deprecated |
POST /api/auth/oauth/client/:id/enable | Deprecated |
POST /api/auth/oauth/client/:id/disable | Deprecated |
POST /api/auth/oauth/client/:id/regenerateSecret | Deprecated |
GET /api/auth/oauth/accessToken/user/:userId | Deprecated |
DELETE /api/auth/oauth/accessToken/token | Deprecated |
GET /api/auth/signed/become | Deprecated |
POST /api/auth/signed | Deprecated |
New Endpoints
| New Endpoint | Purpose |
|---|---|
GET /api/auth/token | Exchange Google OAuth code for access token |
Example: Exchange Google OAuth Code
Request:
{
"code": "google-oauth-code"
}
Response:
{
"accessToken": "jwt-token",
"expiresIn": 3600
}
Summary:
- All legacy authentication endpoints are deprecated and not available in the new API.
- The only supported authentication endpoint is
/api/auth/tokenfor Google OAuth token exchange. - All login, logout, shibboleth, and OAuth client management endpoints have been removed.
Calendar
Endpoint Mapping
| Legacy Endpoint | New Endpoint | Change? |
|---|---|---|
GET /api/calendars | GET /api/calendars | No change |
GET /api/users/:id/calendar | GET /api/users/{userId}/{token}/calendar.ical | Path and format changed |
GET /api/users/:id/:token/calendar.ical | GET /api/users/{userId}/{token}/calendar.ical | Path param renamed |
GET /api/users/:id/:token/calendar.rss | Removed | Removed |
GET /api/series/:id/calendar.ical | Removed | Removed |
GET /api/series/:id/calendar.rss | Removed | Removed |
GET /api/orgunit/:id/calendar | GET /api/orgunit/{orgUnitId}/calendar | Path param renamed |
GET /api/orgunit/:id/calendar.ical | Removed | Removed |
GET /api/orgunit/:id/calendar.rss | Removed | Removed |
Endpoint Changes
1. Get All Calendars
- Legacy:
GET /api/calendars - New:
GET /api/calendars - Change: No change.
2. Get User Calendar
- Legacy:
GET /api/users/:id/calendar(JSON)GET /api/users/:id/:token/calendar.ical(iCal)GET /api/users/:id/:token/calendar.rss(RSS)
- New:
GET /api/users/{userId}/{token}/calendar.ical(iCal only)
- Change: Only iCal format supported; RSS and JSON endpoints removed.
3. Get Org Unit Calendar
- Legacy:
GET /api/orgunit/:id/calendar(JSON)GET /api/orgunit/:id/calendar.ical(iCal)GET /api/orgunit/:id/calendar.rss(RSS)
- New:
GET /api/orgunit/{orgUnitId}/calendar(JSON only)
- Change: Only JSON format supported; iCal and RSS endpoints removed.
4. Get Series Calendar
- Legacy:
GET /api/series/:id/calendar.ical(iCal)GET /api/series/:id/calendar.rss(RSS)
- New: Removed
- Change: No direct series calendar endpoints in new API.
Request & Response Object Changes
Get User Calendar (iCal)
Legacy Request:
GET /api/users/:id/:token/calendar.ical
New Request:
GET /api/users/{userId}/{token}/calendar.ical
Response:
Returns an iCal formatted calendar as plain text.
Get Org Unit Calendar (JSON)
Legacy Request:
GET /api/orgunit/:id/calendar?start=...&end=...
New Request:
GET /api/orgunit/{orgUnitId}/calendar?start=...&end=...
Legacy Response:
{
"results": [
{
"id": 101,
"displayName": "Maths 101",
"start": "2025-08-19T11:37:02.029896+00:00",
"end": "2025-08-19T12:37:02.029876+00:00",
"location": "Room 12",
"type": "Lecture",
"notes": "Bring calculator",
"organisers": ["Dr. Smith"]
}
]
}
New Response:
Same as legacy, but only JSON format is supported.
Removed Endpoints
- All RSS and iCal endpoints for org units and series are removed.
- Only user calendar iCal export remains.
New Features & Removals
New Features
- No new features in calendar endpoints.
Removed Features
- RSS and iCal calendar exports for org units and series.
- JSON calendar export for users.
Summary
- Most calendar endpoints are unchanged for listing calendars.
- User calendar export is now only available in iCal format.
- Org unit calendar export is only available in JSON format.
- Series calendar export endpoints have been removed.
- RSS format is no longer supported for any calendar endpoint.
Config
Endpoint Mapping
| Legacy Endpoint | New Endpoint | Change? |
|---|---|---|
GET /api/config | GET /api/config | No change |
POST /api/config | Removed | Removed |
GET /api/config?app={appId} | GET /api/config?app={appId} | No change |
Endpoint Changes
1. Get Application Config
- Legacy:
GET /api/configorGET /api/config?app={appId} - New:
GET /api/configorGET /api/config?app={appId} - Change: No change. All users can retrieve config for their app and tenant.
2. Update Application Config
- Legacy:
POST /api/config(body: config fields) - New: Removed for regular users; only global admins can update config via internal endpoints.
- Change: Regular users cannot update config in the new API.
Request & Response Object Changes
Get Application Config
Legacy Request:
GET /api/config?app=10
New Request:
GET /api/config?app=10
Legacy Response:
{
"academicYear": 2025,
"allowLocalAccountCreation": true,
"allowUserEventCreation": true,
"allowUserSerieCreation": true,
"enableLocalAuth": true,
"enableShibbolethAuth": true,
"enableAnalytics": true,
"analyticsTrackingId": "UA-XXXXX-Y",
"termsAndConditionsEnabled": true,
"termsAndConditionsText": "You must agree to the terms.",
"termsAndConditionsLastUpdate": "2025-08-19T11:37:02.029896+00:00"
}
New Response:
{
"academicYear": 2025,
"allowLocalAccountCreation": true,
"allowUserEventCreation": true,
"allowUserSerieCreation": true,
"enableLocalAuth": true,
"enableShibbolethAuth": true,
"enableAnalytics": true,
"analyticsTrackingId": "UA-XXXXX-Y",
"termsAndConditionsEnabled": true,
"termsAndConditionsText": "You must agree to the terms.",
"termsAndConditionsLastUpdated": "2025-08-19T11:37:02.029896+00:00",
"createdAt": "2025-08-19T11:37:02.029896+00:00",
"updatedAt": "2025-08-19T11:37:02.029896+00:00",
"loginUrl": "https://login.example.com",
"logoutUrl": "https://logout.example.com",
"appId": 10,
"academicTerms": [
{
"name": "Michaelmas",
"displayName": "Michaelmas Term",
"start": "2025-09-01T00:00:00Z",
"end": "2025-12-15T00:00:00Z",
"termWeekStart": "2025-09-01T00:00:00Z"
}
]
}
- Change: New fields added for timestamps, URLs, and academic terms.
New Features & Removals
New Features
- Additional fields in config response (timestamps, URLs, academic terms).
Removed Features
- Users can no longer update config via API; only global admins can do so via internal endpoints.
Summary
- Config retrieval (
GET /api/config) is unchanged and available to all users. - Config update (
POST /api/config) is removed for regular users; only global admins can update config. - Response objects now include more fields for app context and academic terms.
Events
Endpoint Mapping
| Legacy Endpoint | New Endpoint | Change? |
|---|---|---|
GET /api/events/:id | Removed | Removed |
POST /api/events | POST /api/events | Request/response changed |
POST /api/events/:id | POST /api/events/{eventId} | Path param renamed, request/response changed |
DELETE /api/events/:id | DELETE /api/events/{eventId} | Path param renamed |
PUT /api/events/batch | PUT /api/events/batch | New: batch update |
POST /api/events/batch | POST /api/events/batch | New: batch create |
| Other event endpoints | Removed | Removed |
Endpoint Changes
1. Get Event
- Legacy:
GET /api/events/:id - New: Removed
- Change: No direct endpoint to get a single event by ID.
2. Create Event
- Legacy:
POST /api/events- Body:
{ displayName, start, end, description?, notes?, location?, type?, group?, organiserUsers?, organiserOther?, series? }
- Body:
- New:
POST /api/events- Body:
{ start, end, displayName, type, seriesId, location, organiserUsers, otherOrganisers }
- Body:
- Change: Request object fields standardized; must link to a series.
3. Update Event
- Legacy:
POST /api/events/:id- Body:
{ displayName?, start?, end?, ... }
- Body:
- New:
POST /api/events/{eventId}- Body:
{ start?, end?, displayName?, type?, seriesId?, groupId?, location?, organiserUsers?, otherOrganisers? }
- Body:
- Change: Path param renamed, request object fields standardized.
4. Delete Event
- Legacy:
DELETE /api/events/:id - New:
DELETE /api/events/{eventId} - Change: Path param renamed.
5. Batch Update/Create Events
- New:
PUT /api/events/batch(update multiple events),POST /api/events/batch(create multiple events)- Body:
{ events: [ ... ] }
- Body:
- Change: New endpoints for batch operations.
Request & Response Object Changes
Create Event
Legacy Request:
{
"displayName": "Lecture 1",
"start": "2025-09-01T09:00:00Z",
"end": "2025-09-01T10:00:00Z",
"description": "Intro to course",
"notes": "Bring notebook",
"location": "Room 101",
"type": "Lecture",
"group": 5,
"organiserUsers": [2, 3],
"organiserOther": ["Dr. Smith"],
"series": [10, 11]
}
New Request:
{
"start": "2025-09-01T09:00:00Z",
"end": "2025-09-01T10:00:00Z",
"displayName": "Lecture 1",
"type": "Lecture",
"seriesId": 10,
"location": "Room 101",
"organiserUsers": [2, 3],
"otherOrganisers": "Dr. Smith"
}
New Response:
{
"id": 1001,
"displayName": "Lecture 1",
"start": "2025-09-01T09:00:00Z",
"end": "2025-09-01T10:00:00Z",
"type": "Lecture",
"seriesId": 10,
"location": "Room 101",
"organiserUsers": [2, 3],
"otherOrganisers": "Dr. Smith",
"createdAt": "2025-08-19T11:37:02.029896+00:00",
"updatedAt": "2025-08-19T11:37:02.029896+00:00"
}
- Change: Must specify
seriesId;groupis nowgroupIdif present;otherOrganisersis a string.
Update Event
New Request:
{
"start": "2025-09-01T09:00:00Z",
"end": "2025-09-01T10:00:00Z",
"displayName": "Lecture 1 - Updated",
"type": "Lecture",
"seriesId": 10,
"groupId": 5,
"location": "Room 101",
"organiserUsers": [2, 3],
"otherOrganisers": "Dr. Smith"
}
New Response:
Same as create, with updated fields.
Batch Create/Update Events
New Request (Batch Create):
{
"events": [
{
"start": "...",
"end": "...",
"displayName": "...",
"type": "...",
"seriesId": ...,
"location": "...",
"organiserUsers": [...],
"otherOrganisers": "..."
}
]
}
New Response (Batch Create):
{
"events": [
{
"id": 1001,
"displayName": "...",
// ...other fields
}
]
}
New Features & Removals
New Features
- Batch create and update endpoints for events.
- All event creation and updates must be linked to a series.
Removed Features
- No direct endpoint to get a single event by ID.
- No direct event CRUD outside of series context.
Summary
- Events must now be linked to a series.
- Batch operations for events are supported.
- Direct event retrieval by ID is removed.
- Request/response objects are standardized and simplified.
Groups
Endpoint Mapping
| Legacy Endpoint | New Endpoint | Change? |
|---|---|---|
GET /api/groups/:id | Removed | Removed |
POST /api/groups | Removed | Removed |
POST /api/groups/:id | Removed | Removed |
DELETE /api/groups/:id | Removed | Removed |
GET /api/groups/:id/members | Removed | Removed |
POST /api/groups/:id/members | Removed | Removed |
GET /api/users/:id/memberships | /api/users/admin/{userId}/permissions (GET) | Path and semantics changed |
POST /api/groups/:id/lock | /api/group/{groupId}/lock (POST) | Path param renamed, only lock supported |
POST /api/groups/:id/unlock | Removed | Removed |
Endpoint Changes
1. Group CRUD Endpoints
- Legacy: Supported full CRUD for groups and membership management.
- New: No direct group CRUD endpoints. Groups are now managed via org units and permissions.
2. Get User Memberships / Permissions
- Legacy:
GET /api/users/:id/memberships - New:
GET /api/users/admin/{userId}/permissions- Returns group permissions for a user (admin only).
- Change: Endpoint and semantics changed; only admins can access.
3. Update User Permissions
- New:
POST /api/users/admin/{userId}/permissions- Allows admins to add/remove group permissions for a user.
4. Lock Group
- Legacy:
POST /api/groups/:id/lock - New:
POST /api/group/{groupId}/lock- Locks a group for editing; only admins or permitted group admins.
- Change: Path param renamed, unlock endpoint removed.
Request & Response Object Changes
Get User Permissions
New Request:
GET /api/users/admin/{userId}/permissions
New Response:
{
"result": [
{
"groupId": 20,
"appId": 1,
"createdAt": "2025-08-19T11:37:02.029896+00:00",
"updatedAt": "2025-08-19T11:37:02.029896+00:00"
}
]
}
Update User Permissions
New Request:
{
"groupId": 20,
"isPermitted": true
}
New Response:
{}
Lock Group
New Request:
{
"newLockState": true
}
New Response:
{
"isLocked": true,
"lockExpiresAt": "2025-08-19T12:00:00.000Z",
"lockedById": 2,
"lockedByWhom": "Alice"
}
New Features & Removals
New Features
- Explicit endpoints for updating user group permissions.
- Group locking endpoint.
Removed Features
- All direct group CRUD and membership management endpoints.
- Unlock group endpoint.
Summary
- Groups are no longer managed via direct CRUD endpoints.
- Group membership is now handled via user permissions endpoints.
- Locking a group is supported, but unlocking is not exposed.
- All other legacy group endpoints are removed.
OrgUnit
Endpoint Mapping
| Legacy Endpoint | New Endpoint | Change? |
|---|---|---|
GET /api/orgunit/:id | GET /api/orgunit/{orgUnitId} | Path param renamed |
GET /api/orgunits | GET /api/orgunit | Path renamed |
POST /api/orgunit | POST /api/orgunit | Request/response changed |
POST /api/orgunit/:id | PUT /api/orgunit/{orgUnitId} | Verb changed, request/response changed |
DELETE /api/orgunit/:id | DELETE /api/orgunit/{orgUnitId} | Path param renamed |
GET /api/orgunit/:id/series | Removed | Removed |
POST /api/orgunit/:id/series | POST /api/orgunit/{orgUnitId}/series | Request/response changed |
DELETE /api/orgunit/:id/series | DELETE /api/orgunit/{orgUnitId}/series | New endpoint |
GET /api/orgunit/:id/export | Removed | Removed |
POST /api/orgunit/:id/import | Removed | Removed |
POST /api/orgunit/:id/subscribe | POST /api/orgunit/{orgUnitId}/subscribe | Path param renamed |
POST /api/orgunit/:id/unsubscribe | POST /api/orgunit/{orgUnitId}/unsubscribe | Path param renamed |
GET /api/orgunit/:id/calendar | GET /api/orgunit/{orgUnitId}/calendar | Path param renamed |
GET /api/orgunit/:id/parents | GET /api/orgunit/{orgUnitId}/parents | Path param renamed |
Endpoint Changes
1. Get Org Unit by ID
- Legacy:
GET /api/orgunit/:id - New:
GET /api/orgunit/{orgUnitId} - Change: Path param renamed. Query param
includeSeriesstill supported.
2. Get All Org Units
- Legacy:
GET /api/orgunits - New:
GET /api/orgunit - Change: Path renamed. Query params:
parent,type,includeSeries,includePermissions,userId.
3. Create Org Unit
- Legacy:
POST /api/orgunit- Body:
{ displayName, type, description?, metadata?, published?, groupId?, parentId? }
- Body:
- New:
POST /api/orgunit- Body:
{ displayName, type, parentId?, published?, description? }
- Body:
- Change: Request object simplified;
groupIdandmetadatanot directly settable.
4. Update Org Unit
- Legacy:
POST /api/orgunit/:id- Body:
{ displayName?, type?, description?, metadata?, published?, groupId?, parentId? }
- Body:
- New:
PUT /api/orgunit/{orgUnitId}- Body:
{ displayName, published? }
- Body:
- Change: HTTP verb changed to
PUT, request object simplified.
5. Delete Org Unit
- Legacy:
DELETE /api/orgunit/:id - New:
DELETE /api/orgunit/{orgUnitId} - Change: Path param renamed.
6. Borrow Series
- Legacy:
POST /api/orgunit/:id/series- Body:
{ series: [id, ...] }
- Body:
- New:
POST /api/orgunit/{orgUnitId}/series- Body:
{ seriesIds: [id, ...] }
- Body:
- Change: Request object renamed.
7. Remove Borrowed Series
- Legacy: No direct endpoint
- New:
DELETE /api/orgunit/{orgUnitId}/series- Body:
{ seriesId }
- Body:
- Change: New endpoint.
8. Subscribe/Unsubscribe
- Legacy:
POST /api/orgunit/:id/subscribe,POST /api/orgunit/:id/unsubscribe- Body:
{ userId }
- Body:
- New:
POST /api/orgunit/{orgUnitId}/subscribe,POST /api/orgunit/{orgUnitId}/unsubscribe- Body:
{ userId }
- Body:
- Change: Path param renamed.
9. Get Org Unit Calendar
- Legacy:
GET /api/orgunit/:id/calendar?start=...&end=... - New:
GET /api/orgunit/{orgUnitId}/calendar?start=...&end=... - Change: Path param renamed.
10. Get Org Unit Parents
- Legacy:
GET /api/orgunit/:id/parents - New:
GET /api/orgunit/{orgUnitId}/parents - Change: Path param renamed.
11. Export/Import Org Unit Tree
- Legacy:
GET /api/orgunit/:id/export,POST /api/orgunit/:id/import - New: Removed
- Change: No longer available.
Request & Response Object Changes
Create Org Unit
Legacy Request:
{
"displayName": "Physics",
"type": "module",
"description": "Physics module",
"metadata": { "externalId": "abc" },
"published": true,
"groupId": 2,
"parentId": 1
}
New Request:
{
"displayName": "Physics",
"type": "module",
"parentId": 1,
"published": true,
"description": "Physics module"
}
New Response:
{
"id": 1,
"displayName": "Physics",
"type": "module",
"description": "Physics module",
"parentId": 1,
"published": true,
"groupId": 2,
"createdAt": "2025-08-19T11:37:02.029896+00:00",
"updatedAt": "2025-08-19T11:37:02.029896+00:00",
"series": [],
"canManage": true
}
- Change: Metadata and groupId are set automatically; response includes more fields.
Update Org Unit
Legacy Request:
{
"displayName": "Physics Updated",
"published": true
}
New Request:
{
"displayName": "Physics Updated",
"published": true
}
New Response:
Returns updated org unit object (see above).
Borrow Series
Legacy Request:
{
"series": [1, 2, 3]
}
New Request:
{
"seriesIds": [1, 2, 3]
}
New Response:
{
"successCount": 2,
"failureCount": 1
}
Remove Borrowed Series
New Request:
{
"seriesId": 2
}
New Response:
{}
Subscribe/Unsubscribe
New Request:
{
"userId": 2
}
New Response:
{}
Get Org Unit Calendar
New Response:
{
"results": [
{
"id": 101,
"displayName": "Maths 101",
"start": "2025-08-19T11:37:02.029896+00:00",
"end": "2025-08-19T12:37:02.029876+00:00",
"location": "Room 12",
"type": "Lecture",
"notes": "Bring calculator",
"organisers": ["Dr. Smith"]
}
]
}
Get Org Unit Parents
New Response:
{
"orgUnitInfo": {
"id": 1,
"displayName": "Physics",
"parent": {
"id": 2,
"displayName": "Engineering"
}
}
}
New Features & Removals
New Features
- Subscribe/unsubscribe endpoints for org units.
- Borrow/remove series endpoints.
- Calendar and parent hierarchy endpoints.
- Standardized field names and response objects.
canManageproperty in responses.
Removed Features
- Export/import org unit tree endpoints.
- Some legacy query parameters and request fields.
Summary
- Endpoints have been renamed and standardized.
- Request and response objects are more structured and consistent.
- Some legacy features (export/import) have been removed.
- New features (subscribe, calendar, parents, borrowed series) have been added.
- Field names and HTTP verbs have changed for clarity and RESTfulness.
Series
Endpoint Mapping
| Legacy Endpoint | New Endpoint | Change? |
|---|---|---|
GET /api/series/:id | GET /api/series/{seriesId} | Path param renamed |
POST /api/series | POST /api/modules/{moduleId}/series | Path and semantics changed (must link to org unit/module) |
POST /api/series/:id | POST /api/series/{seriesId} | Path param renamed |
DELETE /api/series/:id | DELETE /api/series/{seriesId} | Path param renamed |
GET /api/series/:id/events | GET /api/series/{seriesId}/events | Path param renamed |
GET /api/series/:id/events-with-admin-info | GET /api/series/{seriesId}/events-with-admin-info | New endpoint (admin only) |
POST /api/series/:id/subscribe | POST /api/series/{seriesId}/subscribe | Path param renamed |
POST /api/series/:id/unsubscribe | POST /api/series/{seriesId}/unsubscribe | Path param renamed |
GET /api/series/:id/parents | GET /api/series/{seriesId}/parents | Path param renamed |
| Other endpoints (e.g. calendars, pictures, etc.) | Removed | Removed |
Endpoint Changes
1. Get Series by ID
- Legacy:
GET /api/series/:id - New:
GET /api/series/{seriesId} - Change: Path param renamed. Query param
includeOrgUnitssupported.
2. Create Series
- Legacy:
POST /api/series- Body:
{ appId, displayName, description, groupId }
- Body:
- New:
POST /api/modules/{moduleId}/series- Body:
{ displayName, description }
- Body:
- Change: Must specify module/org unit to link series; groupId is set automatically.
3. Update Series
- Legacy:
POST /api/series/:id- Body:
{ displayName?, description?, group? }
- Body:
- New:
POST /api/series/{seriesId}- Body:
{ displayName?, description?, groupId? }
- Body:
- Change: Path param renamed; field names standardized.
4. Delete Series
- Legacy:
DELETE /api/series/:id - New:
DELETE /api/series/{seriesId} - Change: Path param renamed.
5. Get Events in Series
- Legacy:
GET /api/series/:id/events - New:
GET /api/series/{seriesId}/events - Change: Path param renamed; response standardized.
6. Get Events in Series (Admin Info)
- New:
GET /api/series/{seriesId}/events-with-admin-info- Returns extra details for admins/group admins.
7. Subscribe/Unsubscribe to Series
- Legacy:
POST /api/series/:id/subscribe,POST /api/series/:id/unsubscribe- Body:
{ userId }
- Body:
- New:
POST /api/series/{seriesId}/subscribe,POST /api/series/{seriesId}/unsubscribe- Body:
{ userId, orgUnitId? }
- Body:
- Change: Path param renamed; orgUnitId can be specified.
8. Get Series Parents
- Legacy: No direct endpoint
- New:
GET /api/series/{seriesId}/parents- Returns parent org units for the series.
Request & Response Object Changes
Create Series
Legacy Request:
{
"appId": 1,
"displayName": "Maths 101",
"description": "Maths series",
"groupId": 2
}
New Request:
{
"displayName": "Maths 101",
"description": "Maths series"
}
- Change: Series must be created under a module/org unit (
POST /api/modules/{moduleId}/series).
New Response:
{
"id": 1,
"displayName": "Maths 101",
"description": "Maths series",
"groupId": 2,
"appId": 1,
"createdAt": "2025-08-19T11:37:02.029896+00:00",
"updatedAt": "2025-08-19T11:37:02.029896+00:00",
"orgUnits": [
{
"id": 3,
"displayName": "Physics",
"type": "module"
}
]
}
Update Series
Legacy Request:
{
"displayName": "Maths 101 Updated",
"description": "Updated description",
"group": 2
}
New Request:
{
"displayName": "Maths 101 Updated",
"description": "Updated description",
"groupId": 2
}
New Response:
{
"id": 1,
"displayName": "Maths 101 Updated",
"description": "Updated description",
"groupId": 2,
"appId": 1,
"updatedAt": "2025-08-19T11:37:02.029896+00:00"
}
Get Series
New Response:
{
"id": 1,
"displayName": "Maths 101",
"description": "Maths series",
"groupId": 2,
"appId": 1,
"createdAt": "2025-08-19T11:37:02.029896+00:00",
"updatedAt": "2025-08-19T11:37:02.029896+00:00",
"orgUnits": [
{
"id": 3,
"displayName": "Physics",
"type": "module"
}
]
}
Get Events in Series
New Response:
{
"results": [
{
"id": 101,
"displayName": "Maths 101",
"start": "2025-08-19T11:37:02.029896+00:00",
"end": "2025-08-19T12:37:02.029876+00:00",
"location": "Room 12",
"type": "Lecture",
"notes": "Bring calculator",
"organisers": "Dr. Smith"
}
]
}
Subscribe/Unsubscribe to Series
New Request:
{
"userId": 2,
"orgUnitId": 3
}
New Response:
{}
Get Series Parents
New Response:
{
"parents": [
{
"id": 3,
"displayName": "Physics",
"type": "module"
}
]
}
New Features & Removals
New Features
- Series must be created under a module/org unit.
- Admin-only endpoints for events with extra info.
- Parent org units endpoint for series.
- Standardized field names and response objects.
Removed Features
- Calendar endpoints for series.
- Picture upload and other legacy endpoints.
Summary
- Series endpoints are standardized and require linking to modules/org units.
- Request and response objects are more structured and consistent.
- Some legacy features (calendars, pictures) have been removed.
- New features (parent org units, admin event info) have been added.
- Field names and HTTP verbs have changed for clarity and RESTfulness.
Users
Endpoint Mapping
| Legacy Endpoint | New Endpoint | Change? |
|---|---|---|
GET /api/users/:id | GET /api/users/admin/{userId} | Admin-only; path changed |
POST /api/users/:id | POST /api/users/admin/{userId} | Admin-only; path changed |
GET /api/users | GET /api/users?email={email} | Query by email only; anonymous access allowed |
GET /api/users/search | GET /api/users/search?searchTerm={term}&limit={n} | Admin/group admin only; path and semantics changed |
GET /api/me | GET /api/me | No change; returns user and app context |
GET /api/users/:id/calendar | Removed | Removed |
GET /api/users/:id/:token/calendar.ical | GET /api/users/{userId}/{token}/calendar.ical | Path param renamed; returns iCal only |
GET /api/users/:id/:token/calendar.rss | Removed | Removed |
POST /api/users/:id/termsAndConditions | Removed | Removed |
POST /api/users/import | Removed | Removed |
GET /api/users/:id/upcoming | Removed | Removed |
POST /api/users/:id/token | Removed | Removed |
GET /api/users/:id/memberships | GET /api/users/admin/{userId}/permissions | Admin-only; path and semantics changed |
POST /api/users/admin/{userId}/permissions | POST /api/users/admin/{userId}/permissions | Admin-only; new endpoint |
Endpoint Changes
1. Get User by ID
- Legacy:
GET /api/users/:id - New:
GET /api/users/admin/{userId}(admin only) - Change: Only admins can get user details by ID.
2. Update User by ID
- Legacy:
POST /api/users/:id - New:
POST /api/users/admin/{userId}(admin only) - Change: Only admins can update user details.
3. Get User by Email
- Legacy:
GET /api/users?email={email} - New:
GET /api/users?email={email} - Change: Anonymous access allowed; returns basic user info.
4. Search Users
- Legacy:
GET /api/users/search?q={query}&limit={n} - New:
GET /api/users/search?searchTerm={term}&limit={n} - Change: Only admins and group admins can search; returns ranked results.
5. Get Current User ("Me")
- Legacy:
GET /api/me - New:
GET /api/me - Change: No change; returns user and app context.
6. Get User Calendar (iCal)
- Legacy:
GET /api/users/:id/:token/calendar.ical - New:
GET /api/users/{userId}/{token}/calendar.ical - Change: Path param renamed; only iCal format supported.
7. Get User Group Permissions
- Legacy:
GET /api/users/:id/memberships - New:
GET /api/users/admin/{userId}/permissions - Change: Only admins can access; returns group permissions.
8. Update User Group Permissions
- New:
POST /api/users/admin/{userId}/permissions - Change: Only admins can update group permissions.
9. Removed Endpoints
- All endpoints for terms and conditions, user import, upcoming events, calendar token reset, and RSS calendar export are removed.
Request & Response Object Changes
Get User by ID (Admin Only)
New Request:
GET /api/users/admin/{userId}
New Response:
{
"id": 1,
"displayName": "John Doe",
"email": "john@example.com",
"shibbolethId": "shib123",
"isAdmin": true
}
Update User by ID (Admin Only)
New Request:
{
"displayName": "John Doe",
"email": "john@example.com",
"shibbolethId": "shib123",
"isAdmin": true
}
New Response:
{
"id": 1,
"displayName": "John Doe",
"email": "john@example.com",
"shibbolethId": "shib123",
"isAdmin": true
}
Get User by Email
New Request:
GET /api/users?email=john@example.com
New Response:
{
"id": 1,
"email": "john@example.com",
"displayName": "John Doe",
"webCalUri": "https://example.com/api/users/1/token/calendar.ical",
"calendarToken": "token123"
}
Search Users
New Request:
GET /api/users/search?searchTerm=John&limit=10
New Response:
{
"results": [
{
"id": 1,
"displayName": "John Doe",
"email": "john@example.com",
"isAdmin": true,
"searchRank": 0.98
}
]
}
Get Current User ("Me")
New Request:
GET /api/me
New Response:
{
"anon": false,
"id": 1,
"displayName": "John Doe",
"email": "john@example.com",
"isAdmin": true,
"isGlobalAdmin": false,
"isGroupAdmin": true,
"groupAdminPermittedGroupIds": [2, 3],
"app": {
"id": 10,
"displayName": "Timetable 2025",
"host": "2025.timetable.cam.ac.uk",
"enabled": true,
"tenantId": 1
},
"calendarToken": "token123",
"webCalUri": "https://example.com/api/users/1/token/calendar.ical",
"termsAndConditions": {
"accepted": true,
"needsToAccept": false
}
}
Get User Calendar (iCal)
New Request:
GET /api/users/{userId}/{token}/calendar.ical
New Response:
Returns iCal file as plain text.
Get User Group Permissions
New Request:
GET /api/users/admin/{userId}/permissions
New Response:
{
"result": [
{
"groupId": 2,
"appId": 1,
"createdAt": "2025-08-19T11:37:02.029896+00:00",
"updatedAt": "2025-08-19T11:37:02.029896+00:00"
}
]
}
Update User Group Permissions
New Request:
{
"groupId": 2,
"isPermitted": true
}
New Response:
{}
New Features & Removals
New Features
- Admin-only endpoints for user CRUD and group permissions.
- User search endpoint for admins/group admins.
- Anonymous access to user info by email.
Removed Features
- Terms and conditions, user import, upcoming events, calendar token reset, and RSS calendar export endpoints.
Summary
- User CRUD and group permissions are now admin-only.
- User search is restricted to admins and group admins.
- Anonymous access is allowed for basic user info by email.
- Many legacy endpoints have been removed for security and simplicity.