Skip to main content

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/admins endpoints 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 EndpointStatus in New API
GET /api/adminsDeprecated
POST /api/adminsDeprecated
POST /api/admins/:idDeprecated
DELETE /api/admins/:idDeprecated
POST /api/admins/:id/passwordDeprecated

Exception​

EndpointNew LocationNotes
/api/meUsersContinues 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/me and all future admin-related functionality.

Apps​

Endpoint Mapping​

Legacy EndpointNew EndpointChange?
GET /api/appsRemovedRemoved
GET /api/apps/:idRemovedRemoved
POST /api/appsRemovedRemoved
POST /api/apps/:idRemovedRemoved
DELETE /api/apps/:idRemovedRemoved
GET /api/apps/:id/configRemovedRemoved
POST /api/apps/:id/adminsRemovedRemoved
DELETE /api/apps/:id/admins/:userIdRemovedRemoved

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/me and 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/me and 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 EndpointStatus in New API
POST /api/auth/loginDeprecated
POST /api/auth/logoutDeprecated
GET /api/auth/strategiesDeprecated
POST /api/auth/shibbolethDeprecated
GET /api/auth/shibboleth/spDeprecated
GET /api/auth/shibboleth/sp/callbackDeprecated
GET /api/auth/shibboleth/callbackDeprecated
POST /api/auth/oauth/tokenDeprecated
GET /api/auth/oauth/clientsDeprecated
POST /api/auth/oauth/clientsDeprecated
PUT /api/auth/oauth/clients/:idDeprecated
DELETE /api/auth/oauth/clients/:idDeprecated
POST /api/auth/oauth/client/:id/enableDeprecated
POST /api/auth/oauth/client/:id/disableDeprecated
POST /api/auth/oauth/client/:id/regenerateSecretDeprecated
GET /api/auth/oauth/accessToken/user/:userIdDeprecated
DELETE /api/auth/oauth/accessToken/tokenDeprecated
GET /api/auth/signed/becomeDeprecated
POST /api/auth/signedDeprecated

New Endpoints​

New EndpointPurpose
GET /api/auth/tokenExchange 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/token for Google OAuth token exchange.
  • All login, logout, shibboleth, and OAuth client management endpoints have been removed.

Calendar​

Endpoint Mapping​

Legacy EndpointNew EndpointChange?
GET /api/calendarsGET /api/calendarsNo change
GET /api/users/:id/calendarGET /api/users/{userId}/{token}/calendar.icalPath and format changed
GET /api/users/:id/:token/calendar.icalGET /api/users/{userId}/{token}/calendar.icalPath param renamed
GET /api/users/:id/:token/calendar.rssRemovedRemoved
GET /api/series/:id/calendar.icalRemovedRemoved
GET /api/series/:id/calendar.rssRemovedRemoved
GET /api/orgunit/:id/calendarGET /api/orgunit/{orgUnitId}/calendarPath param renamed
GET /api/orgunit/:id/calendar.icalRemovedRemoved
GET /api/orgunit/:id/calendar.rssRemovedRemoved

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 EndpointNew EndpointChange?
GET /api/configGET /api/configNo change
POST /api/configRemovedRemoved
GET /api/config?app={appId}GET /api/config?app={appId}No change

Endpoint Changes​

1. Get Application Config​

  • Legacy: GET /api/config or GET /api/config?app={appId}
  • New: GET /api/config or GET /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 EndpointNew EndpointChange?
GET /api/events/:idRemovedRemoved
POST /api/eventsPOST /api/eventsRequest/response changed
POST /api/events/:idPOST /api/events/{eventId}Path param renamed, request/response changed
DELETE /api/events/:idDELETE /api/events/{eventId}Path param renamed
PUT /api/events/batchPUT /api/events/batchNew: batch update
POST /api/events/batchPOST /api/events/batchNew: batch create
Other event endpointsRemovedRemoved

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? }
  • New: POST /api/events
    • Body: { start, end, displayName, type, seriesId, location, organiserUsers, otherOrganisers }
  • Change: Request object fields standardized; must link to a series.

3. Update Event​

  • Legacy: POST /api/events/:id
    • Body: { displayName?, start?, end?, ... }
  • New: POST /api/events/{eventId}
    • Body: { start?, end?, displayName?, type?, seriesId?, groupId?, location?, organiserUsers?, otherOrganisers? }
  • 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: [ ... ] }
  • 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; group is now groupId if present; otherOrganisers is 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 EndpointNew EndpointChange?
GET /api/groups/:idRemovedRemoved
POST /api/groupsRemovedRemoved
POST /api/groups/:idRemovedRemoved
DELETE /api/groups/:idRemovedRemoved
GET /api/groups/:id/membersRemovedRemoved
POST /api/groups/:id/membersRemovedRemoved
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/unlockRemovedRemoved

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 EndpointNew EndpointChange?
GET /api/orgunit/:idGET /api/orgunit/{orgUnitId}Path param renamed
GET /api/orgunitsGET /api/orgunitPath renamed
POST /api/orgunitPOST /api/orgunitRequest/response changed
POST /api/orgunit/:idPUT /api/orgunit/{orgUnitId}Verb changed, request/response changed
DELETE /api/orgunit/:idDELETE /api/orgunit/{orgUnitId}Path param renamed
GET /api/orgunit/:id/seriesRemovedRemoved
POST /api/orgunit/:id/seriesPOST /api/orgunit/{orgUnitId}/seriesRequest/response changed
DELETE /api/orgunit/:id/seriesDELETE /api/orgunit/{orgUnitId}/seriesNew endpoint
GET /api/orgunit/:id/exportRemovedRemoved
POST /api/orgunit/:id/importRemovedRemoved
POST /api/orgunit/:id/subscribePOST /api/orgunit/{orgUnitId}/subscribePath param renamed
POST /api/orgunit/:id/unsubscribePOST /api/orgunit/{orgUnitId}/unsubscribePath param renamed
GET /api/orgunit/:id/calendarGET /api/orgunit/{orgUnitId}/calendarPath param renamed
GET /api/orgunit/:id/parentsGET /api/orgunit/{orgUnitId}/parentsPath 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 includeSeries still 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? }
  • New: POST /api/orgunit
    • Body: { displayName, type, parentId?, published?, description? }
  • Change: Request object simplified; groupId and metadata not directly settable.

4. Update Org Unit​

  • Legacy: POST /api/orgunit/:id
    • Body: { displayName?, type?, description?, metadata?, published?, groupId?, parentId? }
  • New: PUT /api/orgunit/{orgUnitId}
    • Body: { displayName, published? }
  • 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, ...] }
  • New: POST /api/orgunit/{orgUnitId}/series
    • Body: { seriesIds: [id, ...] }
  • Change: Request object renamed.

7. Remove Borrowed Series​

  • Legacy: No direct endpoint
  • New: DELETE /api/orgunit/{orgUnitId}/series
    • Body: { seriesId }
  • Change: New endpoint.

8. Subscribe/Unsubscribe​

  • Legacy: POST /api/orgunit/:id/subscribe, POST /api/orgunit/:id/unsubscribe
    • Body: { userId }
  • New: POST /api/orgunit/{orgUnitId}/subscribe, POST /api/orgunit/{orgUnitId}/unsubscribe
    • Body: { userId }
  • 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.
  • canManage property 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 EndpointNew EndpointChange?
GET /api/series/:idGET /api/series/{seriesId}Path param renamed
POST /api/seriesPOST /api/modules/{moduleId}/seriesPath and semantics changed (must link to org unit/module)
POST /api/series/:idPOST /api/series/{seriesId}Path param renamed
DELETE /api/series/:idDELETE /api/series/{seriesId}Path param renamed
GET /api/series/:id/eventsGET /api/series/{seriesId}/eventsPath param renamed
GET /api/series/:id/events-with-admin-infoGET /api/series/{seriesId}/events-with-admin-infoNew endpoint (admin only)
POST /api/series/:id/subscribePOST /api/series/{seriesId}/subscribePath param renamed
POST /api/series/:id/unsubscribePOST /api/series/{seriesId}/unsubscribePath param renamed
GET /api/series/:id/parentsGET /api/series/{seriesId}/parentsPath param renamed
Other endpoints (e.g. calendars, pictures, etc.)RemovedRemoved

Endpoint Changes​

1. Get Series by ID​

  • Legacy: GET /api/series/:id
  • New: GET /api/series/{seriesId}
  • Change: Path param renamed. Query param includeOrgUnits supported.

2. Create Series​

  • Legacy: POST /api/series
    • Body: { appId, displayName, description, groupId }
  • New: POST /api/modules/{moduleId}/series
    • Body: { displayName, description }
  • 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? }
  • New: POST /api/series/{seriesId}
    • Body: { displayName?, description?, groupId? }
  • 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 }
  • New: POST /api/series/{seriesId}/subscribe, POST /api/series/{seriesId}/unsubscribe
    • Body: { userId, orgUnitId? }
  • 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 EndpointNew EndpointChange?
GET /api/users/:idGET /api/users/admin/{userId}Admin-only; path changed
POST /api/users/:idPOST /api/users/admin/{userId}Admin-only; path changed
GET /api/usersGET /api/users?email={email}Query by email only; anonymous access allowed
GET /api/users/searchGET /api/users/search?searchTerm={term}&limit={n}Admin/group admin only; path and semantics changed
GET /api/meGET /api/meNo change; returns user and app context
GET /api/users/:id/calendarRemovedRemoved
GET /api/users/:id/:token/calendar.icalGET /api/users/{userId}/{token}/calendar.icalPath param renamed; returns iCal only
GET /api/users/:id/:token/calendar.rssRemovedRemoved
POST /api/users/:id/termsAndConditionsRemovedRemoved
POST /api/users/importRemovedRemoved
GET /api/users/:id/upcomingRemovedRemoved
POST /api/users/:id/tokenRemovedRemoved
GET /api/users/:id/membershipsGET /api/users/admin/{userId}/permissionsAdmin-only; path and semantics changed
POST /api/users/admin/{userId}/permissionsPOST /api/users/admin/{userId}/permissionsAdmin-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.