Viewing enrolled teams
Navigate to /torneo/<id>/equipos/ to see the full list of teams currently enrolled in a tournament.Access is restricted to:
- The Organizer who owns the tournament.
- Any Administrator.
- Teams or players already enrolled in that tournament (read-only view).
Removing a team
To remove a team from a tournament, send a POST request to:POST /torneo/<torneo_id>/equipos/borrar/<equipo_id>/
This action is only available to Organizers (for their own tournaments) and Administrators.What happens when a team is removed:
- The team’s enrollment record (
TorneoEquipo) is deleted.
- All match history involving that team is cleaned up.
- Standings (
Clasificacion) are recalculated automatically for all remaining teams.
Removing a team is irreversible. All of that team’s match results and statistics within the tournament are permanently deleted and standings are recalculated.
The endpoint supports both standard form submissions and AJAX requests. For AJAX calls (header X-Requested-With: XMLHttpRequest), the response is JSON:On failure:{ "ok": false, "error": "El equipo no está en el torneo" }
Browsing available tournaments
A team can view tournaments open for enrollment at:GET /equipo/listado-torneos/<equipo_id>/
The list shows only tournaments that:
- Match the team’s sport.
- The team is not already enrolled in.
- Have not yet started (no scored matches recorded).
A tournament is considered started once any points have been recorded in the standings (Liga / group stage) or any match result has been scored (Eliminatoria). Once started, the tournament no longer appears in the available list and enrollment is closed.
Enrolling in a tournament
To enroll, send a POST request to:POST /equipo/listado-torneos/<equipo_id>/inscribir/<torneo_id>/
A team can only enroll itself — you cannot enroll another team’s account.What happens on enrollment:
- A
TorneoEquipo record is created linking the team to the tournament.
- For Liga tournaments, a
Clasificacion entry is created immediately with all counters set to zero and the team placed at the bottom of the standings.
- For Fútbol and Baloncesto tournaments, individual player statistics records are created automatically for every player currently on the team’s roster.
- Pádel teams have no separate player roster, so no player statistics records are created.
On success, the team is redirected to their dashboard.Withdrawing from a tournament
To leave a tournament the team is enrolled in, send a POST request to:POST /equipo/dar-baja/<torneo_id>/
The authenticated user must be the team account for that equipo.Withdrawing triggers the same cleanup as an organizer removal: match history is deleted and standings are recalculated. This action cannot be undone.
On success, the team is redirected to their dashboard.