| GET | /api/v1/feedback?kind=feature|issue&status= | everyone — the feedback board (website → Feedback): { items: [{ id, kind, title, body, status (open|planned|in_progress|done|declined), author, authorId, createdAt, updatedAt, votes, comments, voted }], statuses }, most voted first |
| POST | /api/v1/feedback | signed in — { kind, title (5–120), body (10–4000) }; at most 10 new items per account per day (429) |
| GET | /api/v1/feedback/:id | everyone — { item, comments: [{ id, author, authorId, admin, body, createdAt }] } (admin: a MakeReady admin's answer) |
| PATCH / DELETE | /api/v1/feedback/:id | status (MakeReady admin), title/body (the author while the item is open); delete by the author while nobody commented, or a MakeReady admin |
| POST | /api/v1/feedback/:id/vote | signed in — toggles the vote; { voted, votes } |
| POST | /api/v1/feedback/:id/comments | signed in — { body (2–2000) }; returns the comments |
| GET | /api/v1/competitions/calendar?year= | everyone — the calendar (website → Calendar): every match linked to a competition set up by MakeReady (a club's own competitions stay out), oldest first: { matches: [{ id, name, discipline, kind, startDate, endDate, status, visibility, clubName, competitionId, competitionName, competitionYear }], external }; external is the federation calendar (label, page URL, last read, events with name, dates, discipline, level, cancelled, links) when it is switched on, else null |
| GET | /api/v1/competitions | { competitions: [{ id, name, discipline, year, rules: { minMatches: 'majority' | n, countBest: null | n | 'required', format?: 'series' | 'combined', stages?: 'same' | 'separate' }, clubId?, clubName?, visibility: 'public' | 'club', matchCount, canManage }] }. Everyone gets the public ones; a club's internal competition (visibility: 'club') is listed for the members of that club only |
| POST / PATCH / DELETE | /api/v1/competitions[/:id] | name, discipline, year, rules, and on creation clubId with visibility. Without a club: MakeReady admin, always public. With clubId: the admins of that club (the club does not change afterwards). Deleting unlinks the events |
| GET | /api/v1/competitions/:id | the competition and its events (not archived), with canManage; 404 for an internal competition of a club you are no member of |
| GET | /api/v1/competitions/:id/events | admins of the club — the club's trainings and matches of the competition's discipline and year (also those from the club portal), each with the competition it is in now and the numbers of its stages (stageNumbers) |
| PUT / DELETE | /api/v1/competitions/:id/events/:matchId | admins of the club — put an event of the club in its competition, or take it out. The same is done with competitionId on PATCH /matches/:id: a competition of MakeReady takes matches only, a club's competition the trainings and matches of that club; same discipline and year in both cases |
| GET | /api/v1/competitions/:id/export.psc | those who manage the competition — a combined competition as one .psc file: all its events together as a single match (hit-factor disciplines), the events as squads; see docs/psc-export.md |
| GET | /api/v1/competitions/:id/ranking?division= | as the competition itself. format: 'combined': the events ranked as one match: { scoring: { method, ranking }, matches (the events), stages: [{ id, number, name, source: { matchId, number } }], rows: [{ rank, key, name, division, club, sessions: matchId[], total, percent, stagesScored, disqualified, stages: { [stageId]: stage line } }], warnings[] } (see docs/scoring.md). format: 'series' — live ranking: per match the percentage every competitor reached (overall or within the division), summed per the rules; rows[] with results per match, played, counted, total, eligible (shot at least half of the matches plus one, or the fixed number) and rank; competitors are matched across matches by name (case, accents, punctuation and spaces ignored) and ranked in the division of their first match of the competition; other wordings of a division are resolved through the admin's division names |
| POST | /api/v1/matches/:id/claim | staff/admin of clubId — a club claims a club-less match |
| GET | /api/v1/matches/:id/stages · PUT /stages/:stageId | stage upsert (number, name, targets[], parTimeSeconds?, dnfTimeSeconds?, briefing?, active); the stage type always follows the match scoring method (Comstock or time plus). A target is { id, kind, requiredHits, label?, seconds?, missSeconds? } (seconds and missSeconds may have decimals, e.g. 2.5): kinds paper, disappearing and bonus are scored by zone, popper and plate are hit or miss. Time-based disciplines have four more kinds, each with label as its name: time_bonus (a bonus: seconds taken off the time every time it is awarded), bonus_target (to be hit requiredHits times: seconds off per hit, missSeconds added per missing hit), objective (seconds added when it is not met) and procedural (a procedural error of this stage alone: seconds added every time it is given). A time-based stage does not need a target of the first kinds: these four alone are a stage. In a score the hit of such a target is 1 for a met objective, the number of times a bonus was awarded (at most 10), the number of hits on a bonus target, and the number of times a stage procedural was given. On a discipline with a time limit per stage (brutality) parTimeSeconds is that limit and is required. Once a competitor has a score on the stage, only active can change: anything else is refused with 409 |
| POST | /api/v1/matches/:id/stages/copy | match admin — body { fromMatchId }: takes over the stages of another event of the same discipline that the caller can open. Only the stages whose number this event does not have yet are added (new ids; name, targets, times, briefing and active flag as they are); nothing is overwritten. Returns { copied: [{ id, number, name }], skipped: [{ number, reason: 'exists' | 'drill' }] } (a drill is only taken over by a training) |
| PUT | /api/v1/matches/:id/squads/:squadId | match admin: { name, startsAt?, endsAt? } (the end must be after the start; dashboards count down to it); on a club-portal squad the changed name, start or end is kept on later syncs |
| GET/PUT | /api/v1/matches/:id/competitors[/:competitorId] | competitor upsert; number is optional: left out, an existing competitor keeps the number it has and a new one gets the next free number, so send it only to change it (a number sent along from an older copy would undo a redeal of the shooting order); noShow (optional boolean) marks a registered competitor who did not turn up: out of the shooting order and, without a score, out of the standings. Staff (ROs) may change the number and noShow only (an unchanged chrono sent along is accepted). Saving stores the division as the linked account's division for the discipline |
| POST | /api/v1/matches/:id/scoring-started | staff — a tablet opened the scoring screen: a draft or an event open for registration goes live ({ status, changed }); finished and archived events stay as they are |
| GET | /api/v1/matches/:id/attachments | everyone who may view the event — its documents: { attachments: [{ id, name, contentType, size, sha256, externalId?, updatedAt }] }; the same list is part of the bundle the app syncs |
| GET | /api/v1/matches/:id/attachments/:attachmentId | the content of a document (a download; ?inline=1 shows a PDF or image in the browser) |
| PUT / DELETE | /api/v1/matches/:id/attachments/:attachmentId | match admin — add or replace (:attachmentId = a UUID chosen by the uploader; body = the file with ?name=, or JSON { name, data } in base64) or remove a document; type, size and count are limited (Settings) |
| GET | /api/v1/matches/:id/results | standings per division + overall |
| DELETE | /api/v1/matches/:id | delete a match or training with its stages, squads, competitors, scores and bracket (match admin; the web portal asks to type the name, the tablet confirms) |
| PATCH | /api/v1/matches/:id | name, kind, status, visibility, dates, divisions, categories; clubId (null releases the event, a club id claims or transfers it to a club you are staff of; visibility "club" falls back to "private" without a club); discipline (only while no approved score or decided bout exists: the scoring profile, divisions and categories are re-applied from the new discipline's central rules, stage types follow, a shootoff bracket is removed) |
| GET | /api/v1/matches/:id/competitors/suggest?q= | autocomplete for the competitor form: names this club (or, for a club-less event, this organiser) registered before, with club, division, power factor, categories and linked account; never another club's entries (staff) |
| GET | /api/v1/matches/:id/log?limit= | change log (staff): { createdBy, entries: [{ at, actor, action, text, device? }] }, newest first: settings, stages, squads, competitors, account links, bracket and club-portal changes plus every score revision (who, when, which tablet); at most 1000 entries |
| GET | /api/v1/matches/:id/members/suggest?q= | autocomplete for the "MakeReady account email" field: active accounts whose e-mail address or name starts with the query (at least 3 characters, at most 8 results) (match admins) |
| GET | /api/v1/matches/:id/competitors/:cid/account | the account a competitor is linked to, or null (match admins) |
| PUT | /api/v1/matches/:id/competitors/:cid/account | { userEmail } links the competitor to that account, { userEmail: null } removes the link; allowed in every match status, also after the match finished and for club-portal registrations (match admins; audited) |
| GET | /api/v1/clubs/:id/roster?q= | the club's competitor directory (staff) |
| GET | /api/v1/admin/users?q= | MakeReady admin: all users with their club memberships (platform admin only) |
| PATCH | /api/v1/admin/users/:id | MakeReady admin: platformAdmin, active (deactivating revokes sessions), name |
| POST | /api/v1/admin/users/:id/password | MakeReady admin: set a new password (sessions revoked) |
| POST | /api/v1/admin/users/:id/impersonate | MakeReady admin, from their own website session: a one-hour web session as that user (cookie), the admin's own session kept in a second cookie; audited admin.user.impersonate |
| POST | /api/v1/auth/impersonate/stop | Ends an impersonation session and returns to the admin's own session when it is still alive (restored) |
| POST | /api/v1/admin/users/:id/verify-link | MakeReady admin, for an account that has not confirmed its e-mail address: mails a fresh verification link when a mail provider is configured (mailed: true), otherwise returns the link to pass on by hand; verified: true when nothing was needed |
| POST | /api/v1/admin/users/:id/reset-link | MakeReady admin: a password reset link valid for two hours, to pass on to the user when no e-mail is configured |
| PUT/DELETE | /api/v1/admin/users/:id/memberships/:clubId | MakeReady admin: set a role in any club / remove the membership |
| GET | /api/v1/admin/deletion-requests?status= | MakeReady admin: deletion requests with the matching account |
| PATCH | /api/v1/admin/deletion-requests/:id | MakeReady admin: { status: open|done|rejected, note? } |
| POST | /api/v1/contact | Public: the website's contact form (name, email, subject, message, turnstile when Turnstile is on); one mail to the contact address (Settings → Platform) with the sender as reply-to; 5 messages per address and per IP per hour; 503 when no mail provider is configured |
| POST | /api/v1/admin/calendar/refresh | MakeReady admin: reads the federation calendar page (Settings → Platform) again right now; { refreshed, count }, 503 with the stored matches kept when the page cannot be read |
| POST | /api/v1/admin/settings/test-mail | MakeReady admin: sends a test mail to the admin's own address with the configured provider; 422 with the provider's message when it fails |
| GET / PUT | /api/v1/admin/settings | MakeReady admin: the global settings (website → Settings) — GET { settings: [{ key, group, label, type (text|number|boolean|secret), description, value (secrets: ''), set (secrets), default, stored, readOnly, min, max }] }; PUT { key: value | null } stores values (null or '' = back to the default; 422 on an invalid or read-only key) and returns the list. Keys: mail.m365_tenant_id, mail.m365_client_id, mail.m365_client_secret, mail.m365_sender, mail.from (Resend fallback), mail.verification_required, mail.verification_hours, mail.reset_hours, auth.registration_open, auth.session_days, auth.device_token_days, auth.login_failures, auth.login_window_minutes, turnstile.site_key, turnstile.secret, platform.privacy_contact, events.trash_days, feedback.daily_limit |
| GET / PUT / DELETE | /api/v1/admin/division-aliases[/:id]?discipline= | MakeReady admin: division names — other wordings of a division (alias, compared without case against a match's division code and name) mapped to the discipline's own code; PUT { discipline, alias, code } upserts. Used by the competition ranking and the PractiScore import |
| DELETE | /api/v1/admin/users/:id | MakeReady admin: delete a deactivated account for good (?anonymiseRegistrations=1 also removes the name from its registrations). The account is erased as below; the record itself is removed unless it created events or API keys or last edited discipline rules, in which case an anonymous "Deleted user" record stays for those. Returns { deleted, keptFor, registrations }; erased accounts no longer appear in the user list. Not for yourself or configured admins |
| POST | /api/v1/admin/users/:id/erase | MakeReady admin: erase an account, irreversible ({ anonymiseRegistrations, requestId? }): name, e-mail and password emptied, account deactivated, sign-ins, tokens and memberships deleted, registrations unlinked (or anonymised); not for yourself or configured admins |
| GET | /api/v1/matches/:id/bracket | shootoff: the bracket with all results plus the resolved view (named sides, status, placements) |
| GET | /api/v1/matches/:id/bracket/seeding | shootoff: the order of the entrants (staff): `{ seeding: { mode: 'manual' | 'competition', competitionId?, division? }, competition, divisions[], entrants: [{ id, number, name, division, place }], inOrder, started }; place` is the place in the competition's ranking |
| PUT | /api/v1/matches/:id/bracket/seeding | shootoff: set the order (staff); body { mode, competitionId?, division?, order? }. Mode competition puts the competitor numbers in the order of the competition's ranking (overall, or division), now and again whenever the bracket is generated; mode manual with order (every competitor id, best first) renumbers 1, 2, 3, … in that order |
| POST | /api/v1/matches/:id/bracket/start | shootoff: generate the bracket once (staff); body `{ lives: 1 | 2 | 3, bestOf: 1 | 3 | 5, finalBestOf: 1 | 3 | 5, pairing?: 'ends' | 'halves', firstRoundSecondChance?: boolean }, defaults 2/1/1, ends (1 against the last; halves` = 1 against the first of the second half), no second chance (single elimination only) |
| POST | /api/v1/matches/:id/bracket/results | shootoff: bout decisions `{ results: [{ boutId, winnerId | null, heats?: competitorId[], decidedAt, deviceId }] }`; best-of bouts send the heat winners in order; latest per bout wins, each validated (staff; tablets and the portal) |
| POST | /api/v1/matches/:id/bracket/restart | shootoff: regenerate the bracket from the current competitors with a new format (same body as start; defaults to the current format), discarding all decisions (admin; the UIs confirm first) |
| DELETE | /api/v1/matches/:id/bracket | shootoff: remove the bracket while no bout is decided (admin) |
| GET | /api/v1/matches/:id/results | standings results (ALL + per division) and categories (per category code, overall population) |
| GET | /api/v1/matches/:id/results/detail?division=&category= | standings with the result per stage (time, hits, penalties with the procedural reasons, hit factor, stage points, rank, revision, competitor approval, shot times) plus teams (best three per team name within the selected ranking); feeds the detail view, the stage results and the side-by-side comparison |
| GET | /api/v1/matches/:id/export.psc | staff: the whole hit-factor event as a .psc file (ZIP with match_def.json and match_scores.json, the format of the PractiScore apps; docs/psc-export.md); 422 for time-plus events |
| GET | /api/v1/matches/:id/results.csv?division=&category= | the same standings as CSV (semicolon separated, UTF-8 with BOM): one line per competitor with a column group per stage, team standings below |
| GET | /api/v1/matches/:id/bundle | everything for tablets/dashboards |
| POST | /api/v1/matches/:id/live/refresh | staff: recalculate live standings |