api.mocii.dev

Events

Events with tags, approval workflow and the user accounts that create them (used by EventBoard)

List events

Needed permission: events:read

Lists events, oldest first. Narrow it with from/to; with overlap=true, events that began earlier but still run into from are included too. Supports the tag, creator, approved, limit and offset filters; meta.total is the count before paging. approved: 0 pending, 1 approved, 2 denied. endsAt is the computed end (date and time).

NameDescription
from optional Earliest date (YYYY-MM-DD), inclusive
to optional Latest date (YYYY-MM-DD), inclusive
order optional asc (default) or desc, by date and start time
overlap optional true: from also matches events that started earlier and are still running (multi-day events)
tag optional Only events with this tag
creator optional Only events created by this username
approved optional 0 pending, 1 approved, 2 denied
limit optional Page size, 1–500 (default 100)
offset optional Rows to skip (default 0)
curl

GET /v1/events

Example Response
{
    "data": [
        {
            "id": 42,
            "title": "Weekly team sync",
            "description": "Room 2.14",
            "date": "2026-10-05",
            "start": "09:00",
            "duration": 6,
            "durationMinutes": 30,
            "endsAt": "2026-10-05 09:30",
            "tag": "work",
            "tagColor": "#2563EB",
            "creator": "cleo",
            "approved": 1
        }
    ],
    "meta": {
        "total": 1,
        "limit": 100,
        "offset": 0
    }
}

List upcoming events

Needed permission: events:read

Events from today on, soonest first. Events without a tag are included. Supports the tag, creator, approved, limit and offset filters; meta.total is the count before paging.

NameDescription
tag optional Only events with this tag
creator optional Only events created by this username
approved optional 0 pending, 1 approved, 2 denied
limit optional Page size, 1–500 (default 100)
offset optional Rows to skip (default 0)
curl

GET /v1/events/upcoming

Example Response
{
    "data": [
        {
            "id": 42,
            "title": "Weekly team sync",
            "description": "Room 2.14",
            "date": "2026-10-05",
            "start": "09:00",
            "duration": 6,
            "durationMinutes": 30,
            "endsAt": "2026-10-05 09:30",
            "tag": "work",
            "tagColor": "#2563EB",
            "creator": "cleo",
            "approved": 1
        }
    ],
    "meta": {
        "total": 1,
        "limit": 100,
        "offset": 0
    }
}

List past events

Needed permission: events:read

Events before today, most recent first. Supports the tag, creator, approved, limit and offset filters; meta.total is the count before paging.

NameDescription
tag optional Only events with this tag
creator optional Only events created by this username
approved optional 0 pending, 1 approved, 2 denied
limit optional Page size, 1–500 (default 100)
offset optional Rows to skip (default 0)
curl

GET /v1/events/past

Example Response
{
    "data": [
        {
            "id": 42,
            "title": "Weekly team sync",
            "description": "Room 2.14",
            "date": "2026-10-05",
            "start": "09:00",
            "duration": 6,
            "durationMinutes": 30,
            "endsAt": "2026-10-05 09:30",
            "tag": "work",
            "tagColor": "#2563EB",
            "creator": "cleo",
            "approved": 1
        }
    ],
    "meta": {
        "total": 1,
        "limit": 100,
        "offset": 0
    }
}

List events of one month

Needed permission: events:read

All events starting in the given calendar month, e.g. /v1/events/2026/10. Add overlap=true for a calendar view: multi-day events from earlier months that run into this one are included, so one request is enough. Supports the tag, creator, approved, limit and offset filters; meta.total is the count before paging.

NameDescription
year required Four-digit year
month required Month, 1–12
overlap optional true: also events from earlier months that run into this one
tag optional Only events with this tag
creator optional Only events created by this username
approved optional 0 pending, 1 approved, 2 denied
limit optional Page size, 1–500 (default 100)
offset optional Rows to skip (default 0)
curl

GET /v1/events/:year/:month

Example Response
{
    "data": [
        {
            "id": 42,
            "title": "Weekly team sync",
            "description": "Room 2.14",
            "date": "2026-10-05",
            "start": "09:00",
            "duration": 6,
            "durationMinutes": 30,
            "endsAt": "2026-10-05 09:30",
            "tag": "work",
            "tagColor": "#2563EB",
            "creator": "cleo",
            "approved": 1
        }
    ],
    "meta": {
        "total": 1,
        "limit": 100,
        "offset": 0
    }
}

Find events overlapping a time slot

Needed permission: events:read

Every event whose time overlaps the planned slot, across midnight, months and multi-day events. Denied events (approved = 2) are ignored. Use it before saving to warn about double bookings.

NameDescription
date required Planned start date, YYYY-MM-DD
start optional Planned start time HH:mm (default 00:00)
duration required Planned length in 5-minute blocks
exclude optional Event id to ignore (the event being edited)
curl

GET /v1/events/conflicts

Example Response
{
    "data": [
        {
            "id": 42,
            "title": "Weekly team sync",
            "description": "Room 2.14",
            "date": "2026-10-05",
            "start": "09:00",
            "duration": 6,
            "durationMinutes": 30,
            "endsAt": "2026-10-05 09:30",
            "tag": "work",
            "tagColor": "#2563EB",
            "creator": "cleo",
            "approved": 1
        }
    ],
    "meta": {
        "total": 1
    }
}

Get one event

Needed permission: events:read

One event by id. 404 if it does not exist.

NameDescription
id required Event id
curl

GET /v1/events/:id

Example Response
{
    "data": {
        "id": 42,
        "title": "Weekly team sync",
        "description": "Room 2.14",
        "date": "2026-10-05",
        "start": "09:00",
        "duration": 6,
        "durationMinutes": 30,
        "endsAt": "2026-10-05 09:30",
        "tag": "work",
        "tagColor": "#2563EB",
        "creator": "cleo",
        "approved": 1
    }
}

Create an event

Needed permission: events:write

Creates an event and returns it with status 201. creator and tag must already exist.

NameDescription
title required Title, max 255 characters
creator required Username of an existing user
description optional Free text (also used as a location note), max 5000 characters
date optional YYYY-MM-DD, defaults to today
start optional Start time HH:mm (24 h), defaults to 00:00
duration optional Length in 5-minute blocks (default 1 = 5 minutes), up to 366 days. All-day = start 00:00 and whole days (288 per day)
tag optional An existing tag, or empty for none
approved optional 0 pending (default) or 1 approved
curl

POST /v1/events

Example Request
{
    "title": "Weekly team sync",
    "description": "Room 2.14",
    "date": "2026-10-05",
    "start": "09:00",
    "duration": 6,
    "tag": "work",
    "creator": "cleo"
}
Example Response
{
    "data": {
        "id": 42,
        "title": "Weekly team sync",
        "description": "Room 2.14",
        "date": "2026-10-05",
        "start": "09:00",
        "duration": 6,
        "durationMinutes": 30,
        "endsAt": "2026-10-05 09:30",
        "tag": "work",
        "tagColor": "#2563EB",
        "creator": "cleo",
        "approved": 1
    }
}

Update an event

Needed permission: events:write

Partial update: only the fields you send change. Returns the updated event. Approval is changed separately.

NameDescription
id required Event id
title optional New title
description optional New description; empty clears it
date optional New date, YYYY-MM-DD
start optional New start time, HH:mm
duration optional New length in 5-minute blocks, up to 366 days
tag optional New tag; empty removes the tag
curl

PUT /v1/events/:id

Example Request
{
    "title": "Weekly team sync (moved)",
    "start": "10:00"
}
Example Response
{
    "data": {
        "title": "Weekly team sync (moved)",
        "start": "10:00",
        "id": 42,
        "description": "Room 2.14",
        "date": "2026-10-05",
        "duration": 6,
        "durationMinutes": 30,
        "endsAt": "2026-10-05 09:30",
        "tag": "work",
        "tagColor": "#2563EB",
        "creator": "cleo",
        "approved": 1
    }
}

Set the approval state of an event

Needed permission: events:approve

Sets approved: 0 pending, 1 approved, 2 denied. Returns the event.

NameDescription
id required Event id
value required 0 pending, 1 approved, 2 denied
curl

PUT /v1/events/:id/approval

Example Request
{
    "value": 1
}
Example Response
{
    "data": {
        "id": 42,
        "title": "Weekly team sync",
        "description": "Room 2.14",
        "date": "2026-10-05",
        "start": "09:00",
        "duration": 6,
        "durationMinutes": 30,
        "endsAt": "2026-10-05 09:30",
        "tag": "work",
        "tagColor": "#2563EB",
        "creator": "cleo",
        "approved": 1
    }
}

Delete an event

Needed permission: events:write

Deletes the event permanently. 404 if it does not exist.

NameDescription
id required Event id
curl

DELETE /v1/events/:id

Example Response
{
    "deleted": true,
    "id": 42
}

List tags

Needed permission: events:tags-read

All tags with their color and how many events use them.

curl

GET /v1/events/tags

Example Response
{
    "data": [
        {
            "tag": "work",
            "colorHEX": "#2563EB",
            "eventCount": 12
        }
    ]
}

Get one tag

Needed permission: events:tags-read

One tag by name. 404 if it does not exist.

NameDescription
tag required Tag name (URL-encoded)
curl

GET /v1/events/tags/:tag

Example Response
{
    "data": {
        "tag": "work",
        "colorHEX": "#2563EB",
        "eventCount": 12
    }
}

Create a tag

Needed permission: events:tags-write

Creates a tag and returns it with status 201. 409 if the name is taken (names are case-insensitive).

NameDescription
tag required Unique name, 1–30 characters, no "/"
colorHEX required Hex color: #RGB, #RRGGBB or #RRGGBBAA
curl

POST /v1/events/tags

Example Request
{
    "tag": "work",
    "colorHEX": "#2563EB"
}
Example Response
{
    "data": {
        "eventCount": 0,
        "tag": "work",
        "colorHEX": "#2563EB"
    }
}

Rename or recolor a tag

Needed permission: events:tags-write

Send newTag and/or colorHEX. Renaming updates every event that uses the tag.

NameDescription
tag required Current tag name
newTag optional New name; events using the tag follow the rename
colorHEX optional New hex color
curl

PUT /v1/events/tags/:tag

Example Request
{
    "newTag": "work-priority",
    "colorHEX": "#DC2626"
}
Example Response
{
    "data": {
        "tag": "work-priority",
        "colorHEX": "#DC2626",
        "eventCount": 12
    }
}

Delete a tag

Needed permission: events:tags-write

Deleting a tag also deletes all its events. A tag in use is refused with 409 unless force=true.

NameDescription
tag required Tag name
force optional true to delete a tag that is still in use (its events are deleted too)
curl

DELETE /v1/events/tags/:tag

Example Response
{
    "deleted": true,
    "tag": "work",
    "deletedEvents": 0
}

List users

Needed permission: events:users-read

All users. Password hashes are never returned.

NameDescription
approved optional 1 only approved, 0 only pending/locked
curl

GET /v1/events/users

Example Response
{
    "data": [
        {
            "username": "cleo",
            "email": "cleo@example.com",
            "approved": 1,
            "must_change_password": 0
        }
    ]
}

Get one user

Needed permission: events:users-read

One user by username. 404 if it does not exist. To check a password use verify-password.

NameDescription
username required Username (URL-encoded)
curl

GET /v1/events/users/:username

Example Response
{
    "data": {
        "username": "cleo",
        "email": "cleo@example.com",
        "approved": 1,
        "must_change_password": 0
    }
}

Register a user

Needed permission: events:users-write

Creates an unapproved user and returns it with status 201. Send the plaintext password over HTTPS; the API hashes it. 409 if the username or email is taken.

NameDescription
username required Letters, digits, . _ - (max 20)
email required Valid, unique email address
password required Plaintext, 8–72 bytes, JSON body only. The API hashes it; a hash is rejected
curl

POST /v1/events/users

Example Request
{
    "username": "cleo",
    "email": "cleo@example.com",
    "password": "a-strong-password"
}
Example Response
{
    "data": {
        "approved": 0,
        "username": "cleo",
        "email": "cleo@example.com",
        "must_change_password": 0
    }
}

Update a user's profile

Needed permission: events:users-write

Partial update of username, email and must_change_password. Sending password here is refused; use PUT /users/:username/password.

NameDescription
username required Current username
newUsername optional New username; the user's events follow the rename
email optional New email address
must_change_password optional true/false: force a password change at next login
curl

PUT /v1/events/users/:username

Example Request
{
    "email": "cleo@newmail.com"
}
Example Response
{
    "data": {
        "email": "cleo@newmail.com",
        "username": "cleo",
        "approved": 1,
        "must_change_password": 0
    }
}

Set or reset a password

Needed permission: events:users-password

Admin reset: send password and must_change_password=true. Self-service: also send currentPassword; a wrong one is a 400.

NameDescription
username required Username
password required New plaintext password, 8–72 bytes, JSON body only
currentPassword optional If sent, must match the current password (use it for self-service changes)
must_change_password optional true to force another change at next login (admin reset); default false
curl

PUT /v1/events/users/:username/password

Example Request
{
    "currentPassword": "old-password",
    "password": "a-new-strong-password"
}
Example Response
{
    "data": {
        "username": "cleo",
        "email": "cleo@example.com",
        "approved": 1,
        "must_change_password": 0
    }
}

Check a user's password (login)

Needed permission: events:users-auth

Always 200. valid is false for a wrong password and for an unknown user alike. When true, the user is included so you can check approved and must_change_password.

NameDescription
username required Username
password required Plaintext password to check, JSON body only
curl

POST /v1/events/users/:username/verify-password

Example Request
{
    "password": "a-strong-password"
}
Example Response
{
    "valid": true,
    "data": {
        "username": "cleo",
        "email": "cleo@example.com",
        "approved": 1,
        "must_change_password": 0
    }
}

Set the approval state of a user

Needed permission: events:users-approve

1 approves the account, 0 locks it. Returns the user.

NameDescription
username required Username
value required 1 approved, 0 locked
curl

PUT /v1/events/users/:username/approval

Example Request
{
    "value": 1
}
Example Response
{
    "data": {
        "username": "cleo",
        "email": "cleo@example.com",
        "approved": 1,
        "must_change_password": 0
    }
}

Delete a user

Needed permission: events:users-write

Deleting a user also deletes all events they created. A user with events is refused with 409 unless force=true.

NameDescription
username required Username
force optional true to delete a user who still has events (the events are deleted too)
curl

DELETE /v1/events/users/:username

Example Response
{
    "deleted": true,
    "username": "cleo",
    "deletedEvents": 0
}

Ping

Minimal demo resource proving the pipeline works end-to-end: routing, auth, permissions, handler invocation, and access logging.

Ping

Needed permission: ping:check

Health check for the demo pipeline. Confirms routing, auth, and DB access all work.

curl

GET /v1/ping

Example Request
curl -H "Authorization: Bearer your-api-key" https://api.mocii.dev/v1/ping
Example Response
{
  "status": "ok",
  "serverTime": "2026-09-16 12:00:00"
}

Portfolio

Projects, skills and texts of the portfolio site (portfolio.mocii.dev), in German and English

Everything the portfolio page needs

Needed permission: portfolio:read

One request for the whole page: the site texts (key → text), the featured projects in display order, and all skills. Descriptions and texts may contain simple HTML (strong, em, br) written by the site owner. progress is null unless the project opted in (tracker: "show progress on portfolio"); it holds issue counts and milestone names, never issue titles.

NameDescription
lang optional de (default) or en; a missing translation falls back to the other language
curl

GET /v1/portfolio/site

Example Response
{
    "data": {
        "lang": "en",
        "texts": {
            "about_me": "About Me",
            "contact-email": "Feel free to reach out …"
        },
        "projects": [
            {
                "id": 6,
                "tag": "EVBOA",
                "name": "EventBoard",
                "url": "https://events.mocii.dev",
                "featured": true,
                "sortOrder": 40,
                "shortDescription": "EventBoard is a web application for managing and organizing events …",
                "description": "EventBoard is a modern web application designed for creating, managing, and organizing events …",
                "skills": [
                    "CSS",
                    "Docker",
                    "GIT",
                    "HTML",
                    "PHP",
                    "SQL"
                ],
                "progress": {
                    "issues": {
                        "todo": 3,
                        "inProgress": 1,
                        "done": 12,
                        "total": 16
                    },
                    "nextMilestone": {
                        "title": "Calendar polish",
                        "releaseTag": "v1.2.0",
                        "releaseDate": "2026-10-31",
                        "releasedAt": null,
                        "progress": {
                            "done": 5,
                            "total": 8,
                            "percent": 63
                        }
                    },
                    "latestRelease": null
                }
            }
        ],
        "skills": [
            {
                "name": "PHP",
                "projectCount": 4,
                "projects": [
                    "CMS",
                    "chAPI",
                    "EVBOA",
                    "PORT"
                ]
            }
        ]
    }
}

List projects

Needed permission: portfolio:read

All projects with descriptions in lang and their skills; featured projects first, in sortOrder. Descriptions and texts may contain simple HTML (strong, em, br) written by the site owner. progress is null unless the project opted in (tracker: "show progress on portfolio"); it holds issue counts and milestone names, never issue titles.

NameDescription
lang optional de (default) or en; a missing translation falls back to the other language
featured optional true: only projects shown on the site; false: only the others
curl

GET /v1/portfolio/projects

Example Response
{
    "data": [
        {
            "id": 6,
            "tag": "EVBOA",
            "name": "EventBoard",
            "url": "https://events.mocii.dev",
            "featured": true,
            "sortOrder": 40,
            "shortDescription": "EventBoard is a web application for managing and organizing events …",
            "description": "EventBoard is a modern web application designed for creating, managing, and organizing events …",
            "skills": [
                "CSS",
                "Docker",
                "GIT",
                "HTML",
                "PHP",
                "SQL"
            ],
            "progress": {
                "issues": {
                    "todo": 3,
                    "inProgress": 1,
                    "done": 12,
                    "total": 16
                },
                "nextMilestone": {
                    "title": "Calendar polish",
                    "releaseTag": "v1.2.0",
                    "releaseDate": "2026-10-31",
                    "releasedAt": null,
                    "progress": {
                        "done": 5,
                        "total": 8,
                        "percent": 63
                    }
                },
                "latestRelease": null
            }
        }
    ]
}

Get one project

Needed permission: portfolio:read

One project by its tag. 404 if it does not exist.

NameDescription
tag required Project tag, e.g. EVBOA (case-insensitive)
lang optional de (default) or en; a missing translation falls back to the other language
curl

GET /v1/portfolio/projects/:tag

Example Response
{
    "data": {
        "id": 6,
        "tag": "EVBOA",
        "name": "EventBoard",
        "url": "https://events.mocii.dev",
        "featured": true,
        "sortOrder": 40,
        "shortDescription": "EventBoard is a web application for managing and organizing events …",
        "description": "EventBoard is a modern web application designed for creating, managing, and organizing events …",
        "skills": [
            "CSS",
            "Docker",
            "GIT",
            "HTML",
            "PHP",
            "SQL"
        ],
        "progress": {
            "issues": {
                "todo": 3,
                "inProgress": 1,
                "done": 12,
                "total": 16
            },
            "nextMilestone": {
                "title": "Calendar polish",
                "releaseTag": "v1.2.0",
                "releaseDate": "2026-10-31",
                "releasedAt": null,
                "progress": {
                    "done": 5,
                    "total": 8,
                    "percent": 63
                }
            },
            "latestRelease": null
        }
    }
}

List skills

Needed permission: portfolio:read

Every skill with the number of projects using it (most used first) and those projects' tags.

curl

GET /v1/portfolio/skills

Example Response
{
    "data": [
        {
            "name": "PHP",
            "projectCount": 4,
            "projects": [
                "CMS",
                "chAPI",
                "EVBOA",
                "PORT"
            ]
        }
    ]
}

Get the site texts

Needed permission: portfolio:read

The portfolio site's own texts as an object of key → text (project descriptions are part of the projects instead). Descriptions and texts may contain simple HTML (strong, em, br) written by the site owner.

NameDescription
lang optional de (default) or en; a missing translation falls back to the other language
curl

GET /v1/portfolio/texts

Example Response
{
    "data": {
        "about_me": "About Me",
        "contact-github": "Feel free to check out my Github :D"
    }
}

Tracker

Jira-like projects, issues, milestones and comments (used by the tracker app); projects and skills are the ones the portfolio shows

List projects

Needed permission: tracker:read

Projects with skills, issue counts per status and the next open milestone. Featured projects first, in portfolio order.

NameDescription
archived optional true to include archived projects
curl

GET /v1/tracker/projects

Example Response
{
    "data": [
        {
            "id": 6,
            "tag": "EVBOA",
            "name": "EventBoard",
            "url": "https://events.mocii.dev",
            "featured": true,
            "sortOrder": 40,
            "publicProgress": true,
            "archived": false,
            "createdAt": "2026-03-01 12:00:00",
            "skills": [
                "PHP",
                "SQL"
            ],
            "issues": {
                "todo": 3,
                "inProgress": 1,
                "done": 12,
                "total": 16
            },
            "nextMilestone": {
                "id": 3,
                "projectId": 6,
                "title": "Calendar polish",
                "description": null,
                "startDate": "2026-10-01",
                "releaseDate": "2026-10-31",
                "releaseTag": "v1.2.0",
                "released": false,
                "releasedAt": null,
                "progress": {
                    "done": 5,
                    "total": 8,
                    "percent": 63
                }
            }
        }
    ]
}

Get one project

Needed permission: tracker:read

One project, plus its portfolio texts (shortDescription / description in de and en) and all milestones.

NameDescription
tag required Project tag, e.g. EVBOA
curl

GET /v1/tracker/projects/:tag

Example Response
{
    "data": {
        "id": 6,
        "tag": "EVBOA",
        "name": "EventBoard",
        "url": "https://events.mocii.dev",
        "featured": true,
        "sortOrder": 40,
        "publicProgress": true,
        "archived": false,
        "createdAt": "2026-03-01 12:00:00",
        "skills": [
            "PHP",
            "SQL"
        ],
        "issues": {
            "todo": 3,
            "inProgress": 1,
            "done": 12,
            "total": 16
        },
        "nextMilestone": {
            "id": 3,
            "projectId": 6,
            "title": "Calendar polish",
            "description": null,
            "startDate": "2026-10-01",
            "releaseDate": "2026-10-31",
            "releaseTag": "v1.2.0",
            "released": false,
            "releasedAt": null,
            "progress": {
                "done": 5,
                "total": 8,
                "percent": 63
            }
        },
        "shortDescription": {
            "de": "…",
            "en": "EventBoard is a web application …"
        },
        "description": {
            "de": "…",
            "en": "…"
        },
        "milestones": [
            {
                "id": 3,
                "projectId": 6,
                "title": "Calendar polish",
                "description": null,
                "startDate": "2026-10-01",
                "releaseDate": "2026-10-31",
                "releaseTag": "v1.2.0",
                "released": false,
                "releasedAt": null,
                "progress": {
                    "done": 5,
                    "total": 8,
                    "percent": 63
                }
            }
        ]
    }
}

Create a project

Needed permission: tracker:write

Creates a project and returns it like Get project with status 201. 409 if the tag or name is taken.

NameDescription
tag required 2–5 letters/digits, unique; prefix of every issue key, cannot change later
name required Unique name, max 100 characters
url optional Website (http/https)
skills optional List of skill names
shortDescription optional Portfolio teaser: {"de": "…", "en": "…"}
description optional Portfolio long text: {"de": "…", "en": "…"} (may use <strong>, <em>, <br>)
featured optional true: shown on the portfolio
sortOrder optional Order on the portfolio (ascending)
publicProgress optional true: the portfolio shows issue progress and milestones (never issue titles)
curl

POST /v1/tracker/projects

Example Request
{
    "tag": "EVBOA",
    "name": "EventBoard",
    "url": "https://events.mocii.dev",
    "skills": [
        "PHP",
        "SQL"
    ],
    "shortDescription": {
        "de": "…",
        "en": "…"
    },
    "featured": true,
    "publicProgress": true
}
Example Response
{
    "data": {
        "id": 6,
        "tag": "EVBOA",
        "name": "EventBoard",
        "url": "https://events.mocii.dev",
        "featured": true,
        "sortOrder": 40,
        "publicProgress": true,
        "archived": false,
        "createdAt": "2026-03-01 12:00:00",
        "skills": [
            "PHP",
            "SQL"
        ],
        "issues": {
            "todo": 3,
            "inProgress": 1,
            "done": 12,
            "total": 16
        },
        "nextMilestone": {
            "id": 3,
            "projectId": 6,
            "title": "Calendar polish",
            "description": null,
            "startDate": "2026-10-01",
            "releaseDate": "2026-10-31",
            "releaseTag": "v1.2.0",
            "released": false,
            "releasedAt": null,
            "progress": {
                "done": 5,
                "total": 8,
                "percent": 63
            }
        }
    }
}

Update a project

Needed permission: tracker:write

Partial update. The tag can't change (it's part of every issue key).

NameDescription
tag required Project tag, e.g. EVBOA
name optional New name
url optional New URL; empty removes it
skills optional Replaces the skills
shortDescription optional Portfolio teaser; only the languages sent change
description optional Portfolio long text; only the languages sent change
featured optional true/false
sortOrder optional Number
publicProgress optional true/false
archived optional true hides the project from lists and the global issue search
curl

PUT /v1/tracker/projects/:tag

Example Request
{
    "publicProgress": true,
    "description": {
        "en": "EventBoard is …"
    }
}
Example Response
{
    "data": {
        "id": 6,
        "tag": "EVBOA",
        "name": "EventBoard",
        "url": "https://events.mocii.dev",
        "featured": true,
        "sortOrder": 40,
        "publicProgress": true,
        "archived": false,
        "createdAt": "2026-03-01 12:00:00",
        "skills": [
            "PHP",
            "SQL"
        ],
        "issues": {
            "todo": 3,
            "inProgress": 1,
            "done": 12,
            "total": 16
        },
        "nextMilestone": {
            "id": 3,
            "projectId": 6,
            "title": "Calendar polish",
            "description": null,
            "startDate": "2026-10-01",
            "releaseDate": "2026-10-31",
            "releaseTag": "v1.2.0",
            "released": false,
            "releasedAt": null,
            "progress": {
                "done": 5,
                "total": 8,
                "percent": 63
            }
        }
    }
}

Replace a project's skills

Needed permission: tracker:write

Replaces the whole set (duplicates ignored, case-insensitive). Returns the new list.

NameDescription
tag required Project tag, e.g. EVBOA
skills required The complete list of skill names
curl

PUT /v1/tracker/projects/:tag/skills

Example Request
{
    "skills": [
        "PHP",
        "SQL",
        "Docker"
    ]
}
Example Response
{
    "data": [
        "Docker",
        "PHP",
        "SQL"
    ]
}

Delete a project

Needed permission: tracker:write

Deletes its issues, milestones, skills and portfolio texts too. A project with issues is refused with 409 unless force=true; archiving is the reversible alternative.

NameDescription
tag required Project tag, e.g. EVBOA
force optional true to delete a project that still has issues
curl

DELETE /v1/tracker/projects/:tag

Example Response
{
    "deleted": true,
    "tag": "EVBOA",
    "deletedIssues": 16
}

List skill names

Needed permission: tracker:read

Every skill name in use, most used first (for autocomplete).

curl

GET /v1/tracker/skills

Example Response
{
    "data": [
        "PHP",
        "SQL",
        "Docker"
    ]
}

List and search issues

Needed permission: tracker:read

The backlog: filter, search and sort issues; meta.total counts before paging. Status todo / in_work / done; type feature / fix / chore / docs; priority urgent / high / medium / low.

NameDescription
project optional Project tag (otherwise all non-archived projects)
status optional todo, in_work or done
type optional feature, fix, chore or docs
priority optional urgent, high, medium or low
milestone optional Milestone id, or none
parent optional Issue key: only its subtasks
q optional Search in title and description, or an exact key
sort optional updated (default), created, priority or key
limit optional 1–200 (default 50)
offset optional Rows to skip
curl

GET /v1/tracker/issues

Example Response
{
    "data": [
        {
            "id": 41,
            "key": "EVBOA-12",
            "number": 12,
            "project": {
                "id": 6,
                "tag": "EVBOA",
                "name": "EventBoard"
            },
            "title": "Week view on phones",
            "description": "Swipe between weeks …",
            "type": "feature",
            "status": "in_work",
            "priority": "high",
            "position": 2000,
            "milestone": {
                "id": 3,
                "title": "Calendar polish",
                "releaseTag": "v1.2.0"
            },
            "parent": null,
            "subtasks": {
                "done": 1,
                "total": 3
            },
            "commentCount": 2,
            "createdAt": "2026-10-01 18:02:11",
            "updatedAt": "2026-10-02 09:15:40",
            "closedAt": null
        }
    ],
    "meta": {
        "total": 1,
        "limit": 50,
        "offset": 0
    }
}

Get one issue

Needed permission: tracker:read

One issue with its subtasks, comments (oldest first) and activity log (newest first).

NameDescription
key required Issue key, e.g. EVBOA-12
curl

GET /v1/tracker/issues/:key

Example Response
{
    "data": {
        "id": 41,
        "key": "EVBOA-12",
        "number": 12,
        "project": {
            "id": 6,
            "tag": "EVBOA",
            "name": "EventBoard"
        },
        "title": "Week view on phones",
        "description": "Swipe between weeks …",
        "type": "feature",
        "status": "in_work",
        "priority": "high",
        "position": 2000,
        "milestone": {
            "id": 3,
            "title": "Calendar polish",
            "releaseTag": "v1.2.0"
        },
        "parent": null,
        "subtasks": {
            "done": 1,
            "total": 3
        },
        "commentCount": 2,
        "createdAt": "2026-10-01 18:02:11",
        "updatedAt": "2026-10-02 09:15:40",
        "closedAt": null,
        "subtaskList": [],
        "comments": [
            {
                "id": 7,
                "issueId": 41,
                "author": "Marcel",
                "message": "Started on the swipe gesture.",
                "createdAt": "2026-10-02 09:16:02",
                "updatedAt": null
            }
        ],
        "activity": [
            {
                "id": 90,
                "actor": "Marcel",
                "field": "status",
                "from": "todo",
                "to": "in_work",
                "at": "2026-10-02 09:15:40"
            }
        ]
    }
}

Get a project's Kanban board

Needed permission: tracker:read

All issues of the project in three columns, each in board order.

NameDescription
tag required Project tag, e.g. EVBOA
curl

GET /v1/tracker/projects/:tag/board

Example Response
{
    "data": {
        "project": {
            "tag": "EVBOA",
            "name": "EventBoard"
        },
        "columns": {
            "todo": [],
            "in_work": [
                {
                    "id": 41,
                    "key": "EVBOA-12",
                    "number": 12,
                    "project": {
                        "id": 6,
                        "tag": "EVBOA",
                        "name": "EventBoard"
                    },
                    "title": "Week view on phones",
                    "description": "Swipe between weeks …",
                    "type": "feature",
                    "status": "in_work",
                    "priority": "high",
                    "position": 2000,
                    "milestone": {
                        "id": 3,
                        "title": "Calendar polish",
                        "releaseTag": "v1.2.0"
                    },
                    "parent": null,
                    "subtasks": {
                        "done": 1,
                        "total": 3
                    },
                    "commentCount": 2,
                    "createdAt": "2026-10-01 18:02:11",
                    "updatedAt": "2026-10-02 09:15:40",
                    "closedAt": null
                }
            ],
            "done": []
        }
    }
}

Recent activity

Needed permission: tracker:read

The latest changes across all non-archived projects (or one), newest first. field is created or the changed field; descriptions are logged without their text.

NameDescription
project optional Project tag
limit optional 1–100 (default 20)
curl

GET /v1/tracker/activity

Example Response
{
    "data": [
        {
            "id": 90,
            "actor": "Marcel",
            "field": "status",
            "from": "todo",
            "to": "in_work",
            "at": "2026-10-02 09:15:40",
            "issueKey": "EVBOA-12",
            "issueTitle": "Week view on phones"
        }
    ]
}

Create an issue

Needed permission: tracker:write

Creates an issue with the project's next key (EVBOA-13, …) at the end of its board column. Returns it with status 201.

NameDescription
tag required Project tag, e.g. EVBOA
title required Max 255 characters
description optional Text (Markdown is rendered by the app)
type optional feature (default), fix, chore or docs
priority optional medium (default), urgent, high or low
status optional todo (default), in_work or done
milestone optional Milestone id of this project
parent optional Key of an issue in this project: creates a subtask
actor optional Who made the change (activity log / comment author); defaults to the calling app
curl

POST /v1/tracker/projects/:tag/issues

Example Request
{
    "title": "Week view on phones",
    "type": "feature",
    "priority": "high",
    "milestone": 3
}
Example Response
{
    "data": {
        "id": 41,
        "key": "EVBOA-12",
        "number": 12,
        "project": {
            "id": 6,
            "tag": "EVBOA",
            "name": "EventBoard"
        },
        "title": "Week view on phones",
        "description": "Swipe between weeks …",
        "type": "feature",
        "status": "in_work",
        "priority": "high",
        "position": 2000,
        "milestone": {
            "id": 3,
            "title": "Calendar polish",
            "releaseTag": "v1.2.0"
        },
        "parent": null,
        "subtasks": {
            "done": 1,
            "total": 3
        },
        "commentCount": 2,
        "createdAt": "2026-10-01 18:02:11",
        "updatedAt": "2026-10-02 09:15:40",
        "closedAt": null
    }
}

Update an issue

Needed permission: tracker:write

Partial update; every changed field is written to the activity log. Subtasks are one level deep, like in Jira.

NameDescription
key required Issue key, e.g. EVBOA-12
title optional New title
description optional New text; empty clears it
type optional New type
priority optional New priority
status optional New status (moves it to the end of that column)
milestone optional Milestone id, or empty for none
parent optional Parent issue key, or empty for none
actor optional Who made the change (activity log / comment author); defaults to the calling app
curl

PUT /v1/tracker/issues/:key

Example Request
{
    "status": "done",
    "actor": "Marcel"
}
Example Response
{
    "data": {
        "status": "done",
        "closedAt": "2026-10-03 10:00:00",
        "id": 41,
        "key": "EVBOA-12",
        "number": 12,
        "project": {
            "id": 6,
            "tag": "EVBOA",
            "name": "EventBoard"
        },
        "title": "Week view on phones",
        "description": "Swipe between weeks …",
        "type": "feature",
        "priority": "high",
        "position": 2000,
        "milestone": {
            "id": 3,
            "title": "Calendar polish",
            "releaseTag": "v1.2.0"
        },
        "parent": null,
        "subtasks": {
            "done": 1,
            "total": 3
        },
        "commentCount": 2,
        "createdAt": "2026-10-01 18:02:11",
        "updatedAt": "2026-10-02 09:15:40"
    }
}

Move an issue on the board

Needed permission: tracker:write

Drag & drop: puts the issue at position in the status column and reorders that column. Reordering doesn't change other issues' updatedAt.

NameDescription
key required Issue key, e.g. EVBOA-12
status required Target column
position optional 0-based place in that column (default: end)
actor optional Who made the change (activity log / comment author); defaults to the calling app
curl

PUT /v1/tracker/issues/:key/move

Example Request
{
    "status": "in_work",
    "position": 0
}
Example Response
{
    "data": {
        "id": 41,
        "key": "EVBOA-12",
        "number": 12,
        "project": {
            "id": 6,
            "tag": "EVBOA",
            "name": "EventBoard"
        },
        "title": "Week view on phones",
        "description": "Swipe between weeks …",
        "type": "feature",
        "status": "in_work",
        "priority": "high",
        "position": 2000,
        "milestone": {
            "id": 3,
            "title": "Calendar polish",
            "releaseTag": "v1.2.0"
        },
        "parent": null,
        "subtasks": {
            "done": 1,
            "total": 3
        },
        "commentCount": 2,
        "createdAt": "2026-10-01 18:02:11",
        "updatedAt": "2026-10-02 09:15:40",
        "closedAt": null
    }
}

Delete an issue

Needed permission: tracker:write

Deletes the issue with its comments and activity. Its subtasks stay and become top-level issues.

NameDescription
key required Issue key, e.g. EVBOA-12
curl

DELETE /v1/tracker/issues/:key

Example Response
{
    "deleted": true,
    "key": "EVBOA-12",
    "detachedSubtasks": 3
}

Comment on an issue

Needed permission: tracker:write

Adds a comment (author = actor) and returns it with status 201.

NameDescription
key required Issue key, e.g. EVBOA-12
message required Max 10000 characters
actor optional Who made the change (activity log / comment author); defaults to the calling app
curl

POST /v1/tracker/issues/:key/comments

Example Request
{
    "message": "Started on the swipe gesture.",
    "actor": "Marcel"
}
Example Response
{
    "data": {
        "id": 7,
        "issueId": 41,
        "author": "Marcel",
        "message": "Started on the swipe gesture.",
        "createdAt": "2026-10-02 09:16:02",
        "updatedAt": null
    }
}

Edit a comment

Needed permission: tracker:write

Replaces the text and sets updatedAt.

NameDescription
id required Comment id
message required New text
curl

PUT /v1/tracker/comments/:id

Example Request
{
    "message": "Started on the swipe gesture (iOS first)."
}
Example Response
{
    "data": {
        "updatedAt": "2026-10-02 09:20:00",
        "id": 7,
        "issueId": 41,
        "author": "Marcel",
        "message": "Started on the swipe gesture.",
        "createdAt": "2026-10-02 09:16:02"
    }
}

Delete a comment

Needed permission: tracker:write

Deletes the comment.

NameDescription
id required Comment id
curl

DELETE /v1/tracker/comments/:id

Example Response
{
    "deleted": true,
    "id": 7
}

List a project's milestones

Needed permission: tracker:read

Open milestones first (soonest due first), then released ones (newest first), each with done/total progress.

NameDescription
tag required Project tag, e.g. EVBOA
curl

GET /v1/tracker/projects/:tag/milestones

Example Response
{
    "data": [
        {
            "id": 3,
            "projectId": 6,
            "title": "Calendar polish",
            "description": null,
            "startDate": "2026-10-01",
            "releaseDate": "2026-10-31",
            "releaseTag": "v1.2.0",
            "released": false,
            "releasedAt": null,
            "progress": {
                "done": 5,
                "total": 8,
                "percent": 63
            }
        }
    ]
}

Create a milestone

Needed permission: tracker:write

Creates an open milestone and returns it with status 201.

NameDescription
tag required Project tag, e.g. EVBOA
title required Max 200 characters
releaseDate required Due date, YYYY-MM-DD
startDate optional YYYY-MM-DD, default today
releaseTag optional e.g. v1.2.0
description optional Text
curl

POST /v1/tracker/projects/:tag/milestones

Example Request
{
    "title": "Calendar polish",
    "releaseDate": "2026-10-31",
    "releaseTag": "v1.2.0"
}
Example Response
{
    "data": {
        "id": 3,
        "projectId": 6,
        "title": "Calendar polish",
        "description": null,
        "startDate": "2026-10-01",
        "releaseDate": "2026-10-31",
        "releaseTag": "v1.2.0",
        "released": false,
        "releasedAt": null,
        "progress": {
            "done": 5,
            "total": 8,
            "percent": 63
        }
    }
}

Update or release a milestone

Needed permission: tracker:write

Partial update. released=true marks it released; sending it again keeps the original release time.

NameDescription
id required Milestone id
title optional New title
description optional New text
startDate optional YYYY-MM-DD
releaseDate optional YYYY-MM-DD
releaseTag optional e.g. v1.2.0
released optional true marks it released (now), false reopens it
curl

PUT /v1/tracker/milestones/:id

Example Request
{
    "released": true
}
Example Response
{
    "data": {
        "released": true,
        "releasedAt": "2026-10-31 18:00:00",
        "id": 3,
        "projectId": 6,
        "title": "Calendar polish",
        "description": null,
        "startDate": "2026-10-01",
        "releaseDate": "2026-10-31",
        "releaseTag": "v1.2.0",
        "progress": {
            "done": 5,
            "total": 8,
            "percent": 63
        }
    }
}

Delete a milestone

Needed permission: tracker:write

Deletes the milestone; its issues stay, without a milestone.

NameDescription
id required Milestone id
curl

DELETE /v1/tracker/milestones/:id

Example Response
{
    "deleted": true,
    "id": 3,
    "detachedIssues": 8
}

Uni

Students' modules, classes, calendar, assignments, notes, grades and study planner (used by uni.mocii.dev)

Register a student

Needed permission: uni:students-write

Creates a student account. 409 if the username or email is taken. Hash-like passwords are refused.

NameDescription
username required 3–20 letters, digits, . _ -
email required Unique email address
password required Plaintext (JSON body only), 10–72 bytes; the API hashes it
displayName optional Name shown in the app
timezone optional e.g. Europe/Berlin (default)
curl

POST /v1/uni/students

Example Request
{
    "username": "cleo",
    "email": "cleo@example.com",
    "password": "correct horse battery",
    "displayName": "Cleo"
}
Example Response
{
    "data": {
        "id": 7,
        "username": "cleo",
        "email": "cleo@example.com",
        "displayName": "Cleo",
        "createdAt": "2026-10-01 12:00:00"
    }
}

Log a student in

Needed permission: uni:students-auth

{"valid": false} for a wrong password and an unknown user alike. On success the student is included; use its id as student from then on. After 5 failures in 15 minutes the username answers 429 with Retry-After.

NameDescription
username required Username
password required Plaintext password (JSON body only)
curl

POST /v1/uni/students/:username/verify-password

Example Request
{
    "password": "correct horse battery"
}
Example Response
{
    "valid": true,
    "data": {
        "id": 7,
        "username": "cleo",
        "email": "cleo@example.com",
        "displayName": "Cleo",
        "createdAt": "2026-10-01 12:00:00"
    }
}

Get the student's profile

Needed permission: uni:read

Profile plus preferences (defaults filled in) and now in the student's time zone.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
curl

GET /v1/uni/me

Example Response
{
    "data": {
        "id": 7,
        "username": "cleo",
        "email": "cleo@example.com",
        "displayName": "Cleo",
        "createdAt": "2026-10-01 12:00:00",
        "preferences": {
            "timezone": "Europe/Berlin",
            "…": "…"
        },
        "now": "2026-10-15 18:42"
    }
}

Update the profile

Needed permission: uni:write

Partial update of email and display name.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
email optional New email
displayName optional New display name; empty removes it
curl

PUT /v1/uni/me

Example Request
{
    "displayName": "Cleo M."
}
Example Response
{
    "data": {
        "id": 7,
        "username": "cleo",
        "email": "cleo@example.com",
        "displayName": "Cleo",
        "createdAt": "2026-10-01 12:00:00"
    }
}

Change the password

Needed permission: uni:write

400 if currentPassword is wrong (throttled like logins).

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
currentPassword required Current password
password required New password, 10–72 bytes
curl

PUT /v1/uni/me/password

Example Request
{
    "currentPassword": "…",
    "password": "…"
}
Example Response
{
    "data": {
        "id": 7,
        "username": "cleo",
        "email": "cleo@example.com",
        "displayName": "Cleo",
        "createdAt": "2026-10-01 12:00:00"
    }
}

Delete the account

Needed permission: uni:write

Deletes the student and everything they own. Needs the current password.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
currentPassword required Current password, as confirmation
curl

DELETE /v1/uni/me

Example Request
{
    "currentPassword": "…"
}
Example Response
{
    "deleted": true,
    "id": 7
}

Get preferences

Needed permission: uni:read

Stored settings over the defaults, plus the defaults themselves.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
curl

GET /v1/uni/preferences

Example Response
{
    "data": {
        "theme": "dark",
        "calendarView": "week",
        "studyHours": {
            "start": "09:00",
            "end": "20:00"
        },
        "…": "…"
    },
    "defaults": {
        "…": "…"
    }
}

Change preferences

Needed permission: uni:write

Each key is validated; unknown keys are refused with 400. Keys: timezone, theme, calendarView, weekStartsOn, eventColors, colorByModule, defaultPriority, defaultReminderMinutes, examReminderMinutes, browserNotifications, studyHours, studyDays, sessionMinutes, breakMinutes, maxStudyMinutesPerDay, planningHorizonDays, defaultEstimates, goals, targetAverage, dashboard.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
preferences required Object with only the settings to change
curl

PUT /v1/uni/preferences

Example Request
{
    "preferences": {
        "theme": "dark",
        "studyDays": [
            1,
            2,
            3,
            4,
            5
        ]
    }
}
Example Response
{
    "data": {
        "theme": "dark",
        "…": "…"
    }
}

List modules

Needed permission: uni:read

Modules with their class sessions and counts.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
q optional Search in code, name, lecturer, description
archived optional true to include archived modules
semester optional Only this semester
sort optional name (default), code, updated, credits
curl

GET /v1/uni/modules

Example Response
{
    "data": [
        {
            "id": 3,
            "code": "CS101",
            "name": "Algorithms",
            "description": "…",
            "lecturer": "Prof. Ada",
            "building": "Main",
            "room": "H1",
            "semester": "WS26",
            "credits": 6,
            "color": "#4f46e5",
            "links": [
                {
                    "label": "Moodle",
                    "url": "https://moodle.example.edu/c/101"
                }
            ],
            "info": null,
            "gradeScale": "de",
            "targetGrade": 1.7,
            "archived": false,
            "sessions": [
                {
                    "id": 4,
                    "moduleId": 3,
                    "kind": "lecture",
                    "weekday": 1,
                    "startTime": "10:15",
                    "endTime": "11:45",
                    "building": "Main",
                    "room": "H1",
                    "startsOn": "2026-10-12",
                    "endsOn": "2027-02-05",
                    "weekInterval": 1,
                    "notes": null
                }
            ],
            "counts": {
                "openAssignments": 2,
                "notes": 5,
                "grades": 1
            },
            "createdAt": "2026-10-01 12:00:00",
            "updatedAt": "2026-10-01 12:00:00"
        }
    ],
    "meta": {
        "total": 1
    }
}

Get a module with everything linked to it

Needed permission: uni:read

The module plus its assignments, recent notes, upcoming events, grades and gradeSummary.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
id required Record id
curl

GET /v1/uni/modules/:id

Example Response
{
    "data": {
        "id": 3,
        "code": "CS101",
        "name": "Algorithms",
        "description": "…",
        "lecturer": "Prof. Ada",
        "building": "Main",
        "room": "H1",
        "semester": "WS26",
        "credits": 6,
        "color": "#4f46e5",
        "links": [
            {
                "label": "Moodle",
                "url": "https://moodle.example.edu/c/101"
            }
        ],
        "info": null,
        "gradeScale": "de",
        "targetGrade": 1.7,
        "archived": false,
        "sessions": [
            {
                "id": 4,
                "moduleId": 3,
                "kind": "lecture",
                "weekday": 1,
                "startTime": "10:15",
                "endTime": "11:45",
                "building": "Main",
                "room": "H1",
                "startsOn": "2026-10-12",
                "endsOn": "2027-02-05",
                "weekInterval": 1,
                "notes": null
            }
        ],
        "counts": {
            "openAssignments": 2,
            "notes": 5,
            "grades": 1
        },
        "createdAt": "2026-10-01 12:00:00",
        "updatedAt": "2026-10-01 12:00:00",
        "assignments": [
            {
                "id": 12,
                "title": "Sheet 3",
                "description": null,
                "module": {
                    "id": 3,
                    "code": "CS101",
                    "name": "Algorithms",
                    "color": "#4f46e5"
                },
                "category": "homework",
                "dueAt": "2026-10-20 10:00",
                "priority": "high",
                "estimatedMinutes": 240,
                "status": "in_progress",
                "overdue": false,
                "notes": null,
                "reminderMinutes": 1440,
                "gradeWeight": 1,
                "grade": {
                    "id": 9,
                    "scale": "points",
                    "value": 18,
                    "maxPoints": 20,
                    "weight": 1,
                    "source": "manual"
                },
                "subtasks": [
                    {
                        "id": 1,
                        "title": "Task 1",
                        "done": true
                    }
                ],
                "progress": {
                    "done": 1,
                    "total": 1
                },
                "completedAt": null,
                "createdAt": "2026-10-10 09:00:00",
                "updatedAt": "2026-10-12 18:30:00"
            }
        ],
        "notes": [
            {
                "id": 8,
                "title": "Lecture 2: sorting",
                "content": "…",
                "category": "lecture",
                "tags": [
                    "sorting",
                    "exam"
                ],
                "priority": "high",
                "links": [],
                "reminderAt": null,
                "pinned": false,
                "module": {
                    "id": 3,
                    "code": "CS101",
                    "name": "Algorithms",
                    "color": "#4f46e5"
                },
                "event": null,
                "assignment": null,
                "createdAt": "2026-10-13 12:00:00",
                "updatedAt": "2026-10-13 12:05:00"
            }
        ],
        "events": [
            {
                "id": 5,
                "type": "exam",
                "title": "Algorithms exam",
                "description": null,
                "location": "Main, H1",
                "startsAt": "2027-02-10 09:00",
                "endsAt": "2027-02-10 11:00",
                "allDay": false,
                "color": null,
                "notes": null,
                "reminderMinutes": null,
                "source": "manual",
                "planKey": null,
                "module": {
                    "id": 3,
                    "code": "CS101",
                    "name": "Algorithms",
                    "color": "#4f46e5"
                },
                "assignment": null,
                "createdAt": "2026-10-01 12:00:00",
                "updatedAt": "2026-10-01 12:00:00"
            }
        ],
        "grades": [
            {
                "id": 9,
                "title": "Sheet 3",
                "kind": "assignment",
                "scale": "points",
                "value": 18,
                "maxPoints": 20,
                "weight": 1,
                "source": "manual",
                "gradedOn": "2026-10-25",
                "module": {
                    "id": 3,
                    "code": "CS101",
                    "name": "Algorithms",
                    "color": "#4f46e5"
                },
                "assignment": {
                    "id": 12,
                    "title": "Sheet 3"
                },
                "revisions": 1,
                "createdAt": "2026-10-25 10:00:00",
                "updatedAt": "2026-10-25 10:00:00"
            }
        ],
        "gradeSummary": {
            "scale": "de",
            "grade": 1.85,
            "source": "calculated",
            "average": 1.85,
            "gradedWeight": 2,
            "outstandingWeight": 1,
            "completion": 67,
            "incompatible": 0,
            "target": {
                "value": 1.7,
                "required": 1.4,
                "status": "reachable"
            }
        }
    }
}

Create a module

Needed permission: uni:write

409 if the code is taken. Module and sessions are written in one transaction.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
code required Unique per student, max 32
name required Max 150
description optional
lecturer optional
building optional
room optional
semester optional
credits optional ECTS / credit points (weight in overall averages)
color optional #rrggbb
links optional List of {label, url} (http/https only)
info optional Personal notes
gradeScale optional percent (default), de (1.0–5.0) or gpa (0–4)
targetGrade optional On gradeScale
sessions optional List of sessions (see Add session) created with the module
curl

POST /v1/uni/modules

Example Request
{
    "code": "CS101",
    "name": "Algorithms",
    "lecturer": "Prof. Ada",
    "gradeScale": "de",
    "credits": 6,
    "sessions": [
        {
            "kind": "lecture",
            "weekday": 1,
            "startTime": "10:15",
            "endTime": "11:45",
            "startsOn": "2026-10-12",
            "endsOn": "2027-02-05"
        }
    ]
}
Example Response
{
    "data": {
        "id": 3,
        "code": "CS101",
        "name": "Algorithms",
        "description": "…",
        "lecturer": "Prof. Ada",
        "building": "Main",
        "room": "H1",
        "semester": "WS26",
        "credits": 6,
        "color": "#4f46e5",
        "links": [
            {
                "label": "Moodle",
                "url": "https://moodle.example.edu/c/101"
            }
        ],
        "info": null,
        "gradeScale": "de",
        "targetGrade": 1.7,
        "archived": false,
        "sessions": [
            {
                "id": 4,
                "moduleId": 3,
                "kind": "lecture",
                "weekday": 1,
                "startTime": "10:15",
                "endTime": "11:45",
                "building": "Main",
                "room": "H1",
                "startsOn": "2026-10-12",
                "endsOn": "2027-02-05",
                "weekInterval": 1,
                "notes": null
            }
        ],
        "counts": {
            "openAssignments": 2,
            "notes": 5,
            "grades": 1
        },
        "createdAt": "2026-10-01 12:00:00",
        "updatedAt": "2026-10-01 12:00:00"
    }
}

Update a module

Needed permission: uni:write

Partial update.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
id required Record id
code optional
name optional
description optional
lecturer optional
building optional
room optional
semester optional
credits optional
color optional
links optional
info optional
gradeScale optional
targetGrade optional
archived optional true/false
curl

PUT /v1/uni/modules/:id

Example Request
{
    "room": "H2",
    "archived": false
}
Example Response
{
    "data": {
        "id": 3,
        "code": "CS101",
        "name": "Algorithms",
        "description": "…",
        "lecturer": "Prof. Ada",
        "building": "Main",
        "room": "H1",
        "semester": "WS26",
        "credits": 6,
        "color": "#4f46e5",
        "links": [
            {
                "label": "Moodle",
                "url": "https://moodle.example.edu/c/101"
            }
        ],
        "info": null,
        "gradeScale": "de",
        "targetGrade": 1.7,
        "archived": false,
        "sessions": [
            {
                "id": 4,
                "moduleId": 3,
                "kind": "lecture",
                "weekday": 1,
                "startTime": "10:15",
                "endTime": "11:45",
                "building": "Main",
                "room": "H1",
                "startsOn": "2026-10-12",
                "endsOn": "2027-02-05",
                "weekInterval": 1,
                "notes": null
            }
        ],
        "counts": {
            "openAssignments": 2,
            "notes": 5,
            "grades": 1
        },
        "createdAt": "2026-10-01 12:00:00",
        "updatedAt": "2026-10-01 12:00:00"
    }
}

Delete a module

Needed permission: uni:write

Its sessions and grades are deleted too. Assignments, notes and events stay, without a module.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
id required Record id
curl

DELETE /v1/uni/modules/:id

Example Response
{
    "deleted": true,
    "id": 3,
    "deletedGrades": 1
}

Add a recurring class

Needed permission: uni:write

Classes are stored as weekday + time, so daylight-saving changes never move them.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
id required Record id
kind optional lecture (default), seminar, lab, tutorial, exercise, other
weekday required 1 = Monday … 7 = Sunday
startTime required HH:mm
endTime required HH:mm
startsOn required First day (YYYY-MM-DD)
endsOn required Last day, at most 2 years later
weekInterval optional 1 = weekly (default), 2 = every other week, …
building optional Overrides the module's
room optional Overrides the module's
notes optional
curl

POST /v1/uni/modules/:id/sessions

Example Request
{
    "kind": "seminar",
    "weekday": 3,
    "startTime": "14:00",
    "endTime": "15:30",
    "startsOn": "2026-10-14",
    "endsOn": "2027-02-03",
    "weekInterval": 2
}
Example Response
{
    "data": {
        "id": 4,
        "moduleId": 3,
        "kind": "lecture",
        "weekday": 1,
        "startTime": "10:15",
        "endTime": "11:45",
        "building": "Main",
        "room": "H1",
        "startsOn": "2026-10-12",
        "endsOn": "2027-02-05",
        "weekInterval": 1,
        "notes": null
    }
}

Update a recurring class

Needed permission: uni:write

Partial update.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
id required Record id
kind optional
weekday optional
startTime optional
endTime optional
startsOn optional
endsOn optional
weekInterval optional
building optional
room optional
notes optional
curl

PUT /v1/uni/sessions/:id

Example Request
{
    "room": "S3"
}
Example Response
{
    "data": {
        "id": 4,
        "moduleId": 3,
        "kind": "lecture",
        "weekday": 1,
        "startTime": "10:15",
        "endTime": "11:45",
        "building": "Main",
        "room": "H1",
        "startsOn": "2026-10-12",
        "endsOn": "2027-02-05",
        "weekInterval": 1,
        "notes": null
    }
}

Delete a recurring class

Needed permission: uni:write

Delete a recurring class.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
id required Record id
curl

DELETE /v1/uni/sessions/:id

Example Response
{
    "deleted": true,
    "id": 4
}

List assignments

Needed permission: uni:read

overdue is derived from the due date and the student's current time. Times are local wall-clock times in the student's time zone, written YYYY-MM-DD HH:mm.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
status optional not_started, in_progress, completed, open, overdue
category optional homework, exam, project, presentation, reading, other
priority optional low, medium, high, urgent
moduleId optional
q optional Search title and description
from optional Due on/after
to optional Due before
graded optional true/false
sort optional due (default), dueDesc, priority, created, updated, title, module, grade
limit optional 1–500, default 200
offset optional
curl

GET /v1/uni/assignments

Example Response
{
    "data": [
        {
            "id": 12,
            "title": "Sheet 3",
            "description": null,
            "module": {
                "id": 3,
                "code": "CS101",
                "name": "Algorithms",
                "color": "#4f46e5"
            },
            "category": "homework",
            "dueAt": "2026-10-20 10:00",
            "priority": "high",
            "estimatedMinutes": 240,
            "status": "in_progress",
            "overdue": false,
            "notes": null,
            "reminderMinutes": 1440,
            "gradeWeight": 1,
            "grade": {
                "id": 9,
                "scale": "points",
                "value": 18,
                "maxPoints": 20,
                "weight": 1,
                "source": "manual"
            },
            "subtasks": [
                {
                    "id": 1,
                    "title": "Task 1",
                    "done": true
                }
            ],
            "progress": {
                "done": 1,
                "total": 1
            },
            "completedAt": null,
            "createdAt": "2026-10-10 09:00:00",
            "updatedAt": "2026-10-12 18:30:00"
        }
    ],
    "meta": {
        "total": 1,
        "limit": 200,
        "offset": 0,
        "now": "2026-10-15 18:42"
    }
}

Get an assignment

Needed permission: uni:read

Get an assignment.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
id required Record id
curl

GET /v1/uni/assignments/:id

Example Response
{
    "data": {
        "id": 12,
        "title": "Sheet 3",
        "description": null,
        "module": {
            "id": 3,
            "code": "CS101",
            "name": "Algorithms",
            "color": "#4f46e5"
        },
        "category": "homework",
        "dueAt": "2026-10-20 10:00",
        "priority": "high",
        "estimatedMinutes": 240,
        "status": "in_progress",
        "overdue": false,
        "notes": null,
        "reminderMinutes": 1440,
        "gradeWeight": 1,
        "grade": {
            "id": 9,
            "scale": "points",
            "value": 18,
            "maxPoints": 20,
            "weight": 1,
            "source": "manual"
        },
        "subtasks": [
            {
                "id": 1,
                "title": "Task 1",
                "done": true
            }
        ],
        "progress": {
            "done": 1,
            "total": 1
        },
        "completedAt": null,
        "createdAt": "2026-10-10 09:00:00",
        "updatedAt": "2026-10-12 18:30:00"
    }
}

Create an assignment

Needed permission: uni:write

The deadline appears in the calendar automatically (it is never copied, so editing can't duplicate it).

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
title required
dueAt required YYYY-MM-DD HH:mm
moduleId optional
description optional
category optional Default homework
priority optional Default: the student's preference
estimatedMinutes optional Used by the planner
status optional Default not_started
notes optional
reminderMinutes optional Before the due time; default from preferences
gradeWeight optional Weight in the module grade; ungraded assignments with a weight count as outstanding work for target estimates
subtasks optional List of {title, done}
grade optional {scale, value, maxPoints?, weight?}; needs a module
curl

POST /v1/uni/assignments

Example Request
{
    "title": "Sheet 3",
    "moduleId": 3,
    "dueAt": "2026-10-20 10:00",
    "priority": "high",
    "estimatedMinutes": 240,
    "subtasks": [
        {
            "title": "Task 1",
            "done": false
        }
    ]
}
Example Response
{
    "data": {
        "id": 12,
        "title": "Sheet 3",
        "description": null,
        "module": {
            "id": 3,
            "code": "CS101",
            "name": "Algorithms",
            "color": "#4f46e5"
        },
        "category": "homework",
        "dueAt": "2026-10-20 10:00",
        "priority": "high",
        "estimatedMinutes": 240,
        "status": "in_progress",
        "overdue": false,
        "notes": null,
        "reminderMinutes": 1440,
        "gradeWeight": 1,
        "grade": {
            "id": 9,
            "scale": "points",
            "value": 18,
            "maxPoints": 20,
            "weight": 1,
            "source": "manual"
        },
        "subtasks": [
            {
                "id": 1,
                "title": "Task 1",
                "done": true
            }
        ],
        "progress": {
            "done": 1,
            "total": 1
        },
        "completedAt": null,
        "createdAt": "2026-10-10 09:00:00",
        "updatedAt": "2026-10-12 18:30:00"
    }
}

Update an assignment

Needed permission: uni:write

Partial update, in one transaction.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
id required Record id
title optional
dueAt optional
moduleId optional
description optional
category optional
priority optional
estimatedMinutes optional
status optional completed sets completedAt
notes optional
reminderMinutes optional
gradeWeight optional
subtasks optional Replaces the checklist
grade optional Object sets it, null removes it
curl

PUT /v1/uni/assignments/:id

Example Request
{
    "status": "completed",
    "grade": {
        "scale": "points",
        "value": 18,
        "maxPoints": 20
    }
}
Example Response
{
    "data": {
        "id": 12,
        "title": "Sheet 3",
        "description": null,
        "module": {
            "id": 3,
            "code": "CS101",
            "name": "Algorithms",
            "color": "#4f46e5"
        },
        "category": "homework",
        "dueAt": "2026-10-20 10:00",
        "priority": "high",
        "estimatedMinutes": 240,
        "status": "in_progress",
        "overdue": false,
        "notes": null,
        "reminderMinutes": 1440,
        "gradeWeight": 1,
        "grade": {
            "id": 9,
            "scale": "points",
            "value": 18,
            "maxPoints": 20,
            "weight": 1,
            "source": "manual"
        },
        "subtasks": [
            {
                "id": 1,
                "title": "Task 1",
                "done": true
            }
        ],
        "progress": {
            "done": 1,
            "total": 1
        },
        "completedAt": null,
        "createdAt": "2026-10-10 09:00:00",
        "updatedAt": "2026-10-12 18:30:00"
    }
}

Delete an assignment

Needed permission: uni:write

Its checklist goes with it; its grade stays in the module (detached).

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
id required Record id
curl

DELETE /v1/uni/assignments/:id

Example Response
{
    "deleted": true,
    "id": 12
}

List events in a range

Needed permission: uni:read

Events overlapping [from, to). For classes and deadlines as well, use Calendar.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
from required YYYY-MM-DD
to required YYYY-MM-DD (exclusive, max 366 days)
type optional class, exam, study, personal, other
curl

GET /v1/uni/events

Example Response
{
    "data": [
        {
            "id": 5,
            "type": "exam",
            "title": "Algorithms exam",
            "description": null,
            "location": "Main, H1",
            "startsAt": "2027-02-10 09:00",
            "endsAt": "2027-02-10 11:00",
            "allDay": false,
            "color": null,
            "notes": null,
            "reminderMinutes": null,
            "source": "manual",
            "planKey": null,
            "module": {
                "id": 3,
                "code": "CS101",
                "name": "Algorithms",
                "color": "#4f46e5"
            },
            "assignment": null,
            "createdAt": "2026-10-01 12:00:00",
            "updatedAt": "2026-10-01 12:00:00"
        }
    ],
    "meta": {
        "total": 1
    }
}

Events and classes overlapping a slot

Needed permission: uni:read

Events and classes overlapping a slot.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
start required YYYY-MM-DD HH:mm
end required YYYY-MM-DD HH:mm
exclude optional Event id to ignore
curl

GET /v1/uni/events/conflicts

Example Response
{
    "data": [
        {
            "kind": "class",
            "id": 4,
            "title": "CS101 · Lecture",
            "start": "2026-10-19 10:15",
            "end": "2026-10-19 11:45"
        }
    ]
}

Get an event

Needed permission: uni:read

Get an event.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
id required Record id
curl

GET /v1/uni/events/:id

Example Response
{
    "data": {
        "id": 5,
        "type": "exam",
        "title": "Algorithms exam",
        "description": null,
        "location": "Main, H1",
        "startsAt": "2027-02-10 09:00",
        "endsAt": "2027-02-10 11:00",
        "allDay": false,
        "color": null,
        "notes": null,
        "reminderMinutes": null,
        "source": "manual",
        "planKey": null,
        "module": {
            "id": 3,
            "code": "CS101",
            "name": "Algorithms",
            "color": "#4f46e5"
        },
        "assignment": null,
        "createdAt": "2026-10-01 12:00:00",
        "updatedAt": "2026-10-01 12:00:00"
    }
}

Create an event

Needed permission: uni:write

Overlaps are allowed; the response lists them in conflicts so the client can warn.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
title required
startsAt required YYYY-MM-DD HH:mm
endsAt optional Default: one hour later; for all-day events the last day
type optional class, exam, study, personal (default), other
allDay optional
moduleId optional
assignmentId optional
description optional
location optional
color optional #rrggbb
notes optional Personal notes on the event
reminderMinutes optional Before the start; exams default to the preference
curl

POST /v1/uni/events

Example Request
{
    "type": "exam",
    "title": "Algorithms exam",
    "moduleId": 3,
    "startsAt": "2027-02-10 09:00",
    "endsAt": "2027-02-10 11:00"
}
Example Response
{
    "data": {
        "id": 5,
        "type": "exam",
        "title": "Algorithms exam",
        "description": null,
        "location": "Main, H1",
        "startsAt": "2027-02-10 09:00",
        "endsAt": "2027-02-10 11:00",
        "allDay": false,
        "color": null,
        "notes": null,
        "reminderMinutes": null,
        "source": "manual",
        "planKey": null,
        "module": {
            "id": 3,
            "code": "CS101",
            "name": "Algorithms",
            "color": "#4f46e5"
        },
        "assignment": null,
        "createdAt": "2026-10-01 12:00:00",
        "updatedAt": "2026-10-01 12:00:00"
    },
    "conflicts": []
}

Update an event

Needed permission: uni:write

Partial update; answers with conflicts like create.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
id required Record id
title optional
startsAt optional
endsAt optional
type optional
allDay optional
moduleId optional
assignmentId optional
description optional
location optional
color optional
notes optional
reminderMinutes optional
curl

PUT /v1/uni/events/:id

Example Request
{
    "notes": "Bring calculator"
}
Example Response
{
    "data": {
        "id": 5,
        "type": "exam",
        "title": "Algorithms exam",
        "description": null,
        "location": "Main, H1",
        "startsAt": "2027-02-10 09:00",
        "endsAt": "2027-02-10 11:00",
        "allDay": false,
        "color": null,
        "notes": null,
        "reminderMinutes": null,
        "source": "manual",
        "planKey": null,
        "module": {
            "id": 3,
            "code": "CS101",
            "name": "Algorithms",
            "color": "#4f46e5"
        },
        "assignment": null,
        "createdAt": "2026-10-01 12:00:00",
        "updatedAt": "2026-10-01 12:00:00"
    },
    "conflicts": []
}

Delete an event

Needed permission: uni:write

Delete an event.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
id required Record id
curl

DELETE /v1/uni/events/:id

Example Response
{
    "deleted": true,
    "id": 5
}

List notes

Needed permission: uni:read

Pinned notes first.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
q optional Search title, content, tags
moduleId optional
eventId optional
assignmentId optional
category optional lecture, study, homework, exam, project, general
priority optional low, medium, high
tag optional Exact tag
pinned optional true: pinned only
sort optional updated (default), created, title, priority, module
limit optional 1–200, default 50
offset optional
curl

GET /v1/uni/notes

Example Response
{
    "data": [
        {
            "id": 8,
            "title": "Lecture 2: sorting",
            "content": "…",
            "category": "lecture",
            "tags": [
                "sorting",
                "exam"
            ],
            "priority": "high",
            "links": [],
            "reminderAt": null,
            "pinned": false,
            "module": {
                "id": 3,
                "code": "CS101",
                "name": "Algorithms",
                "color": "#4f46e5"
            },
            "event": null,
            "assignment": null,
            "createdAt": "2026-10-13 12:00:00",
            "updatedAt": "2026-10-13 12:05:00"
        }
    ],
    "meta": {
        "total": 1,
        "limit": 50,
        "offset": 0
    }
}

Tags in use

Needed permission: uni:read

Tags in use.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
curl

GET /v1/uni/notes/tags

Example Response
{
    "data": [
        {
            "tag": "exam",
            "count": 4
        }
    ]
}

Get a note

Needed permission: uni:read

Get a note.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
id required Record id
curl

GET /v1/uni/notes/:id

Example Response
{
    "data": {
        "id": 8,
        "title": "Lecture 2: sorting",
        "content": "…",
        "category": "lecture",
        "tags": [
            "sorting",
            "exam"
        ],
        "priority": "high",
        "links": [],
        "reminderAt": null,
        "pinned": false,
        "module": {
            "id": 3,
            "code": "CS101",
            "name": "Algorithms",
            "color": "#4f46e5"
        },
        "event": null,
        "assignment": null,
        "createdAt": "2026-10-13 12:00:00",
        "updatedAt": "2026-10-13 12:05:00"
    }
}

Create a note

Needed permission: uni:write

Create a note.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
title required
content optional Plain text / Markdown, max 100 000
category optional Default general
moduleId optional
eventId optional
assignmentId optional
tags optional List of up to 20 tags
priority optional low, medium, high
links optional List of {label, url}
reminderAt optional YYYY-MM-DD HH:mm
pinned optional
curl

POST /v1/uni/notes

Example Request
{
    "title": "Lecture 2: sorting",
    "moduleId": 3,
    "category": "lecture",
    "tags": [
        "sorting",
        "exam"
    ]
}
Example Response
{
    "data": {
        "id": 8,
        "title": "Lecture 2: sorting",
        "content": "…",
        "category": "lecture",
        "tags": [
            "sorting",
            "exam"
        ],
        "priority": "high",
        "links": [],
        "reminderAt": null,
        "pinned": false,
        "module": {
            "id": 3,
            "code": "CS101",
            "name": "Algorithms",
            "color": "#4f46e5"
        },
        "event": null,
        "assignment": null,
        "createdAt": "2026-10-13 12:00:00",
        "updatedAt": "2026-10-13 12:05:00"
    }
}

Update a note

Needed permission: uni:write

Partial update. Send expectedUpdatedAt to be told (409) instead of overwriting a newer version.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
id required Record id
expectedUpdatedAt optional The updatedAt you loaded; 409 if the note changed since
title optional
content optional
category optional
moduleId optional
eventId optional
assignmentId optional
tags optional
priority optional
links optional
reminderAt optional
pinned optional
curl

PUT /v1/uni/notes/:id

Example Request
{
    "content": "…",
    "expectedUpdatedAt": "2026-10-13 12:05:00"
}
Example Response
{
    "data": {
        "id": 8,
        "title": "Lecture 2: sorting",
        "content": "…",
        "category": "lecture",
        "tags": [
            "sorting",
            "exam"
        ],
        "priority": "high",
        "links": [],
        "reminderAt": null,
        "pinned": false,
        "module": {
            "id": 3,
            "code": "CS101",
            "name": "Algorithms",
            "color": "#4f46e5"
        },
        "event": null,
        "assignment": null,
        "createdAt": "2026-10-13 12:00:00",
        "updatedAt": "2026-10-13 12:05:00"
    }
}

Delete a note

Needed permission: uni:write

Delete a note.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
id required Record id
curl

DELETE /v1/uni/notes/:id

Example Response
{
    "deleted": true,
    "id": 8
}

List grades with summaries

Needed permission: uni:read

Grades plus summary: per module (official grade or calculated weighted average, completion, target estimate) and overall per scale family, weighted by credits. Incompatible scales are never mixed.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
moduleId optional Only this module
curl

GET /v1/uni/grades

Example Response
{
    "data": [
        {
            "id": 9,
            "title": "Sheet 3",
            "kind": "assignment",
            "scale": "points",
            "value": 18,
            "maxPoints": 20,
            "weight": 1,
            "source": "manual",
            "gradedOn": "2026-10-25",
            "module": {
                "id": 3,
                "code": "CS101",
                "name": "Algorithms",
                "color": "#4f46e5"
            },
            "assignment": {
                "id": 12,
                "title": "Sheet 3"
            },
            "revisions": 1,
            "createdAt": "2026-10-25 10:00:00",
            "updatedAt": "2026-10-25 10:00:00"
        }
    ],
    "summary": {
        "modules": [
            {
                "id": 3,
                "code": "CS101",
                "name": "Algorithms",
                "color": "#4f46e5",
                "summary": {
                    "scale": "de",
                    "grade": 1.85,
                    "source": "calculated",
                    "average": 1.85,
                    "gradedWeight": 2,
                    "outstandingWeight": 1,
                    "completion": 67,
                    "incompatible": 0,
                    "target": {
                        "value": 1.7,
                        "required": 1.4,
                        "status": "reachable"
                    }
                }
            }
        ],
        "overall": [
            {
                "scale": "de",
                "average": 1.85,
                "modules": 1,
                "credits": 6
            }
        ]
    }
}

Grade summary only

Needed permission: uni:read

Grade summary only.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
curl

GET /v1/uni/grades/summary

Example Response
{
    "data": {
        "modules": [],
        "overall": []
    }
}

Get a grade with its history

Needed permission: uni:read

The grade plus every recorded value, oldest first.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
id required Record id
curl

GET /v1/uni/grades/:id

Example Response
{
    "data": {
        "id": 9,
        "title": "Sheet 3",
        "kind": "assignment",
        "scale": "points",
        "value": 18,
        "maxPoints": 20,
        "weight": 1,
        "source": "manual",
        "gradedOn": "2026-10-25",
        "module": {
            "id": 3,
            "code": "CS101",
            "name": "Algorithms",
            "color": "#4f46e5"
        },
        "assignment": {
            "id": 12,
            "title": "Sheet 3"
        },
        "revisions": 1,
        "createdAt": "2026-10-25 10:00:00",
        "updatedAt": "2026-10-25 10:00:00",
        "history": [
            {
                "scale": "points",
                "value": 18,
                "maxPoints": 20,
                "changedAt": "2026-10-25 10:00:00"
            }
        ]
    }
}

Record a grade

Needed permission: uni:write

Record a grade.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
moduleId required
title required
scale required percent (0–100), points (needs maxPoints), de (1.0–5.0), gpa (0–4)
value required On the scale
maxPoints optional For points
weight optional Default 1
kind optional assignment (default), exam, module (= the official module grade), other
assignmentId optional One grade per assignment
source optional manual (default) or imported
gradedOn optional YYYY-MM-DD
curl

POST /v1/uni/grades

Example Request
{
    "moduleId": 3,
    "title": "Midterm",
    "kind": "exam",
    "scale": "de",
    "value": 2,
    "weight": 2
}
Example Response
{
    "data": {
        "id": 9,
        "title": "Sheet 3",
        "kind": "assignment",
        "scale": "points",
        "value": 18,
        "maxPoints": 20,
        "weight": 1,
        "source": "manual",
        "gradedOn": "2026-10-25",
        "module": {
            "id": 3,
            "code": "CS101",
            "name": "Algorithms",
            "color": "#4f46e5"
        },
        "assignment": {
            "id": 12,
            "title": "Sheet 3"
        },
        "revisions": 1,
        "createdAt": "2026-10-25 10:00:00",
        "updatedAt": "2026-10-25 10:00:00"
    }
}

Update a grade

Needed permission: uni:write

Partial update. A changed value is appended to the history.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
id required Record id
moduleId optional
title optional
scale optional
value optional
maxPoints optional
weight optional
kind optional
assignmentId optional
source optional
gradedOn optional
curl

PUT /v1/uni/grades/:id

Example Request
{
    "value": 1.7
}
Example Response
{
    "data": {
        "id": 9,
        "title": "Sheet 3",
        "kind": "assignment",
        "scale": "points",
        "value": 18,
        "maxPoints": 20,
        "weight": 1,
        "source": "manual",
        "gradedOn": "2026-10-25",
        "module": {
            "id": 3,
            "code": "CS101",
            "name": "Algorithms",
            "color": "#4f46e5"
        },
        "assignment": {
            "id": 12,
            "title": "Sheet 3"
        },
        "revisions": 1,
        "createdAt": "2026-10-25 10:00:00",
        "updatedAt": "2026-10-25 10:00:00"
    }
}

Delete a grade

Needed permission: uni:write

Delete a grade.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
id required Record id
curl

DELETE /v1/uni/grades/:id

Example Response
{
    "deleted": true,
    "id": 9
}

Everything in a date range

Needed permission: uni:read

Class occurrences (kind=class, expanded from sessions), events (event) and assignment deadlines (deadline), sorted by start. Times are local wall-clock times in the student's time zone, written YYYY-MM-DD HH:mm.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
from required YYYY-MM-DD
to required YYYY-MM-DD, exclusive, max 120 days
curl

GET /v1/uni/calendar

Example Response
{
    "data": [
        {
            "kind": "class",
            "key": "session:4:2026-10-19",
            "id": 4,
            "type": "class",
            "title": "CS101 · Lecture",
            "subtitle": "Algorithms",
            "start": "2026-10-19 10:15",
            "end": "2026-10-19 11:45",
            "allDay": false,
            "location": "Main, H1",
            "notes": null,
            "module": {
                "id": 3,
                "code": "CS101",
                "name": "Algorithms",
                "color": "#4f46e5"
            },
            "sessionKind": "lecture"
        }
    ],
    "meta": {
        "from": "2026-10-19",
        "to": "2026-10-26",
        "now": "2026-10-15 18:42"
    }
}

Suggested study sessions

Needed permission: uni:read

Estimates, never confirmed events: suggestions, work that doesn't fit (unplanned), daily load with overload reasons, and the rules used. Deterministic: the same data always gives the same plan.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
curl

GET /v1/uni/planner

Example Response
{
    "data": {
        "suggestions": [
            {
                "key": "plan:assignment:12:2026-10-16 14:00",
                "planKey": "assignment:12",
                "title": "Study: Sheet 3",
                "start": "2026-10-16 14:00",
                "end": "2026-10-16 15:30",
                "minutes": 90,
                "module": {
                    "id": 3,
                    "code": "CS101",
                    "name": "Algorithms",
                    "color": "#4f46e5"
                },
                "assignmentId": 12,
                "eventId": null,
                "due": "2026-10-20 10:00",
                "priority": "high",
                "reason": "Due 2026-10-20 10:00 · about 4h of work left · high priority"
            }
        ],
        "unplanned": [],
        "load": [
            {
                "date": "2026-10-16",
                "busyMinutes": 180,
                "studyMinutes": 90,
                "deadlines": 0,
                "overloaded": false,
                "reasons": []
            }
        ],
        "rules": [
            "…"
        ]
    },
    "meta": {
        "now": "2026-10-15 18:42",
        "estimated": true
    }
}

Turn a suggestion into a study session

Needed permission: uni:write

Creates a study event (source planner) linked to the task; the planner then counts it as planned work.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
planKey required assignment:<id> or exam:<event id>
start required YYYY-MM-DD HH:mm (may differ from the suggestion)
end required YYYY-MM-DD HH:mm
title optional Default: "Study: <task>"
curl

POST /v1/uni/planner/accept

Example Request
{
    "planKey": "assignment:12",
    "start": "2026-10-16 14:00",
    "end": "2026-10-16 15:30"
}
Example Response
{
    "data": {
        "id": 5,
        "type": "exam",
        "title": "Algorithms exam",
        "description": null,
        "location": "Main, H1",
        "startsAt": "2027-02-10 09:00",
        "endsAt": "2027-02-10 11:00",
        "allDay": false,
        "color": null,
        "notes": null,
        "reminderMinutes": null,
        "source": "manual",
        "planKey": null,
        "module": {
            "id": 3,
            "code": "CS101",
            "name": "Algorithms",
            "color": "#4f46e5"
        },
        "assignment": null,
        "createdAt": "2026-10-01 12:00:00",
        "updatedAt": "2026-10-01 12:00:00"
    },
    "conflicts": []
}

Dismiss a suggestion

Needed permission: uni:write

Dismiss a suggestion.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
key required The suggestion key
curl

POST /v1/uni/planner/dismiss

Example Request
{
    "key": "plan:assignment:12:2026-10-16 14:00"
}
Example Response
{
    "dismissed": [
        "plan:assignment:12:2026-10-16 14:00"
    ]
}

Notifications due now

Needed permission: uni:read

Deadline reminders, overdue assignments, upcoming exams and events with reminders, and note reminders. Each key is deterministic, so polling never creates duplicates; dismissed keys are left out.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
curl

GET /v1/uni/notifications

Example Response
{
    "data": [
        {
            "key": "assignment:12:due:2026-10-20 10:00",
            "type": "deadline",
            "severity": "warning",
            "at": "2026-10-19 10:00",
            "title": "Due soon: Sheet 3",
            "message": "Due 2026-10-20 10:00",
            "link": {
                "type": "assignment",
                "id": 12
            },
            "module": {
                "id": 3,
                "code": "CS101",
                "name": "Algorithms",
                "color": "#4f46e5"
            }
        }
    ],
    "meta": {
        "total": 1,
        "now": "2026-10-19 10:05"
    }
}

Dismiss notifications

Needed permission: uni:write

Dismiss notifications.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
keys required List of notification keys
curl

POST /v1/uni/notifications/dismiss

Example Request
{
    "keys": [
        "assignment:12:due:2026-10-20 10:00"
    ]
}
Example Response
{
    "dismissed": [
        "assignment:12:due:2026-10-20 10:00"
    ]
}

Everything for the start page

Needed permission: uni:read

Today's schedule, upcoming classes, deadlines, overdue work, exams, events, recent and important notes, grades, planner highlights and counts, in one request.

NameDescription
student required Id of the logged-in student (set by the calling app, never by the end user)
curl

GET /v1/uni/dashboard

Example Response
{
    "data": {
        "now": "2026-10-15 18:42",
        "today": [
            {
                "kind": "class",
                "key": "session:4:2026-10-19",
                "id": 4,
                "type": "class",
                "title": "CS101 · Lecture",
                "subtitle": "Algorithms",
                "start": "2026-10-19 10:15",
                "end": "2026-10-19 11:45",
                "allDay": false,
                "location": "Main, H1",
                "notes": null,
                "module": {
                    "id": 3,
                    "code": "CS101",
                    "name": "Algorithms",
                    "color": "#4f46e5"
                },
                "sessionKind": "lecture"
            }
        ],
        "classes": [],
        "deadlines": [
            {
                "id": 12,
                "title": "Sheet 3",
                "description": null,
                "module": {
                    "id": 3,
                    "code": "CS101",
                    "name": "Algorithms",
                    "color": "#4f46e5"
                },
                "category": "homework",
                "dueAt": "2026-10-20 10:00",
                "priority": "high",
                "estimatedMinutes": 240,
                "status": "in_progress",
                "overdue": false,
                "notes": null,
                "reminderMinutes": 1440,
                "gradeWeight": 1,
                "grade": {
                    "id": 9,
                    "scale": "points",
                    "value": 18,
                    "maxPoints": 20,
                    "weight": 1,
                    "source": "manual"
                },
                "subtasks": [
                    {
                        "id": 1,
                        "title": "Task 1",
                        "done": true
                    }
                ],
                "progress": {
                    "done": 1,
                    "total": 1
                },
                "completedAt": null,
                "createdAt": "2026-10-10 09:00:00",
                "updatedAt": "2026-10-12 18:30:00"
            }
        ],
        "overdue": [],
        "exams": [
            {
                "id": 5,
                "type": "exam",
                "title": "Algorithms exam",
                "description": null,
                "location": "Main, H1",
                "startsAt": "2027-02-10 09:00",
                "endsAt": "2027-02-10 11:00",
                "allDay": false,
                "color": null,
                "notes": null,
                "reminderMinutes": null,
                "source": "manual",
                "planKey": null,
                "module": {
                    "id": 3,
                    "code": "CS101",
                    "name": "Algorithms",
                    "color": "#4f46e5"
                },
                "assignment": null,
                "createdAt": "2026-10-01 12:00:00",
                "updatedAt": "2026-10-01 12:00:00"
            }
        ],
        "events": [],
        "notes": [
            {
                "id": 8,
                "title": "Lecture 2: sorting",
                "content": "…",
                "category": "lecture",
                "tags": [
                    "sorting",
                    "exam"
                ],
                "priority": "high",
                "links": [],
                "reminderAt": null,
                "pinned": false,
                "module": {
                    "id": 3,
                    "code": "CS101",
                    "name": "Algorithms",
                    "color": "#4f46e5"
                },
                "event": null,
                "assignment": null,
                "createdAt": "2026-10-13 12:00:00",
                "updatedAt": "2026-10-13 12:05:00"
            }
        ],
        "importantNotes": [],
        "grades": {
            "recent": [
                {
                    "id": 9,
                    "title": "Sheet 3",
                    "kind": "assignment",
                    "scale": "points",
                    "value": 18,
                    "maxPoints": 20,
                    "weight": 1,
                    "source": "manual",
                    "gradedOn": "2026-10-25",
                    "module": {
                        "id": 3,
                        "code": "CS101",
                        "name": "Algorithms",
                        "color": "#4f46e5"
                    },
                    "assignment": {
                        "id": 12,
                        "title": "Sheet 3"
                    },
                    "revisions": 1,
                    "createdAt": "2026-10-25 10:00:00",
                    "updatedAt": "2026-10-25 10:00:00"
                }
            ],
            "overall": {
                "modules": [],
                "overall": []
            }
        },
        "planner": {
            "suggestions": [
                {
                    "key": "plan:assignment:12:2026-10-16 14:00",
                    "planKey": "assignment:12",
                    "title": "Study: Sheet 3",
                    "start": "2026-10-16 14:00",
                    "end": "2026-10-16 15:30",
                    "minutes": 90,
                    "module": {
                        "id": 3,
                        "code": "CS101",
                        "name": "Algorithms",
                        "color": "#4f46e5"
                    },
                    "assignmentId": 12,
                    "eventId": null,
                    "due": "2026-10-20 10:00",
                    "priority": "high",
                    "reason": "Due 2026-10-20 10:00 · about 4h of work left · high priority"
                }
            ],
            "unplanned": [],
            "overloaded": []
        },
        "notifications": 1,
        "counts": {
            "open": 3,
            "overdue": 0,
            "dueThisWeek": 2
        }
    }
}