Retrieve a single match by ID, including the complete list of match events (goals, cards, penalty kicks). The response shape is identical to the list endpoint with the addition of anDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Danielsl4/TFG_DAM_2526_Consulta2/llms.txt
Use this file to discover all available pages before exploring further.
events array. Responses are Redis-cached per match and user.
Endpoint
Authentication
Optional. Pass aBearer token to receive userVote for the authenticated user.
Path parameters
Unique match ID.
Response
All fields from the list endpoint are present, plus:Ordered list of match events (ascending by event ID).
Event types are mapped from internal Spanish names before being returned. The internal values (
gol, tarjeta_amarilla, tarjeta_roja, penalti_tanda_marcado, penalti_tanda_fallado) are only relevant when writing events via the referee endpoints.Examples
Admin endpoints
The following endpoints require authentication with theadmin role.
Create a match
pendiente. Invalidates the relevant season and current-season caches.
Body parameters
Match date and time (ISO 8601, e.g.
"2026-06-01T18:00:00").Home team ID. Omit or pass
null for unresolved knockout slots.Away team ID. Omit or pass
null for unresolved knockout slots.Venue field ID.
Group ID the match belongs to.
Season ID.
Competition phase. Defaults to
fase_de_grupos.Text label for an unresolved home slot (e.g.
"Winner Group B").Text label for an unresolved away slot.
201 with { message, id } on success.
Soft-delete a match
is_active = false (logical deletion). The match is moved to the trash and no longer appears in public responses. Cache entries for the affected season are invalidated.
Returns { message: "Partido enviado a la papelera correctamente" } on success, 404 if not found.
Restore a match from trash
is_active = true, making the match visible again. Only works on matches that have already been soft-deleted.
Returns { message: "Partido restaurado correctamente" } on success.
Permanently delete a match
is_active = false); attempting to permanently delete an active match returns 400.
Update team assignments
Body parameters
New home team ID. Pass
null to clear.New away team ID. Pass
null to clear.Updated placeholder label for the home slot.
Updated placeholder label for the away slot.
{ message, success: true } on success.