Gestor Deportivo uses a reservation system to manage how teams join tournaments and how players join teams. There are two distinct reservation flows: event reservations, where a team requests a spot in a tournament, and team membership reservations, where a player requests to join a team. Each type has its own set of endpoints and status lifecycle.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/fredy-rizo/gestor-backend/llms.txt
Use this file to discover all available pages before exploring further.
Reservation Status Flow
Both reservation types share the same status enum, moving from a pending state to a terminal outcome:| Status | Meaning |
|---|---|
"Pendiente" | Request submitted, awaiting review |
"Aceptado" | Request approved — the team or player is admitted |
"Rechazado" | Request denied by the organizer or team |
"Cancelado" | Request withdrawn or cancelled |
New reservations always start with
statusType: "Pendiente". Only the relevant owner (event organizer for event reservations, team manager for membership reservations) can change the status.Event Reservations
Event reservations allow a team to request a spot in a tournament. The event organizer reviews pending requests and accepts, rejects, or cancels them.POST /api/reserve/agregate/:eventId/:teamId/reserve
Creates a new reservation request for a team to participate in an event. The reservation is created withstatusType: "Pendiente" and must be approved by the event organizer before the team can be added to the bracket.
Authentication: access-token: <jwt_token> — required
The
_id of the event the team wants to join.The
_id of the team making the reservation request.true on success.The newly created reservation document.
POST /api/reserve/activate/:reserveId
Updates the status of an event reservation. Only the event organizer can call this endpoint. Use this to accept, reject, or cancel a team’s reservation request. Authentication:access-token: <jwt_token> — required (event owner only)
The
_id of the reservation to update.The new status. Must be one of
"Pendiente", "Aceptado", "Rechazado", or "Cancelado".true on success.POST /api/reserve/list/:eventId/reserve-accepts/:pag?/:perpage?
Returns a paginated list of accepted reservations for a specific event — teams that have been admitted into the tournament. Authentication:access-token: <jwt_token> — required
The
_id of the event.Page number (1-based). Defaults to
1.Items per page.
true on success.Array of accepted reservation documents for the event.
Pagination metadata.
POST /api/reserve/list/:typeStatus/reserves/:pag?/:perpage?
Returns a paginated list of reservations filtered by their status. Useful for an organizer’s dashboard to review all pending, accepted, rejected, or cancelled requests at once. Authentication:access-token: <jwt_token> — required
Status filter. Must be one of
"Pendiente", "Aceptado", "Rechazado", or "Cancelado".Page number (1-based).
Items per page.
true on success.Array of reservation documents matching the given
typeStatus.Pagination metadata (same shape as the accepted-list endpoint).
POST /api/reserve/remove/:eventId/reserve
Removes a reservation associated with an event. Use this to delete a reservation record entirely, as opposed to simply changing its status. Authentication:access-token: <jwt_token> — required
The
_id of the event whose reservation to remove.true on success.Team Membership Reservations
Team membership reservations handle the player-to-team joining process. A player submits a request to join a team, and the team manager reviews and activates (approves) it. Both parties can query their respective views of outstanding requests.POST /api/reserve-accepts-team/create/:playerId/:teamId
Creates a join request from a player to a team. The request starts in a pending state and must be activated by the team before the player is added to the team roster. Authentication:access-token: <jwt_token> — required
The
_id of the player requesting to join.The
_id of the team the player wants to join.true on success.POST /api/reserve-accepts-team/:reserveId/activate
Activates (approves) a player-team membership reservation. Once activated, the player is officially added to the team roster. Authentication:access-token: <jwt_token> — required
The
_id of the player-team reservation to activate.Only the team manager or an authorized account should call this endpoint to prevent unauthorized roster additions.
true on success.POST /api/reserve-accepts-team/get/:playerId/reservation-by-player/:pag?/:perpage?
Returns a paginated list of all join requests that a specific player has created — the player’s outgoing requests across all teams. Authentication:access-token: <jwt_token> — required
The
_id of the player.Page number (1-based).
Items per page.
true on success.Array of reservation documents created by the player.
Pagination metadata.
POST /api/reserve-accepts-team/get/:playerId/reservation-from-team/:pag?/:perpage?
Returns the team-side view of reservations involving a specific player — requests that teams have received from or sent to this player. Authentication:access-token: <jwt_token> — required
The
_id of the player.Page number (1-based).
Items per page.
true on success.Array of team-side reservation records for this player.
Pagination metadata.
POST /api/reserve-accepts-team/get/:teamId/reservation-by-team/:pag?/:perpage?
Returns all join requests that a specific team has received — the team’s incoming player requests waiting for review. Authentication:access-token: <jwt_token> — required
The
_id of the team.Page number (1-based).
Items per page.
true on success.Array of reservation documents where this team is the target.
Pagination metadata.
POST /api/reserve-accepts-team/get/:teamId/reservation-from-player/:pag?/:perpage?
Returns the player-side view of reservations for a specific team — how players see their own requests targeted at this team. Authentication:access-token: <jwt_token> — required
The
_id of the team.Page number (1-based).
Items per page.
true on success.Array of player-perspective reservation records for this team.
Pagination metadata.
Status Enum Reference
| Value | Used in | Description |
|---|---|---|
"Pendiente" | Both reservation types | Initial state; awaiting a decision |
"Aceptado" | Both reservation types | Approved — team admitted to event, or player added to team |
"Rechazado" | Both reservation types | Denied by the reviewing party |
"Cancelado" | Both reservation types | Withdrawn before a decision was made |