🏆 Creating and Managing Tournaments
This guide explains how developers can create and manage tournaments in their games using Nexra. All prize pools, entry fees, and payouts are handled automatically.🔑 Prerequisites
- You must have a Game API Key from the Nexra Dashboard.
- Ensure your game is integrated and ready to make API requests.
🛠 Create a Tournament
Use thePOST /tournament/create endpoint to create a new tournament.
Required fields:
game– ID of your game.name– Tournament name.description– Short description.entryFee– Optional entry fee for players.startTime/endTime– Tournament start and end times.
201 Created– Tournament created successfully, returned with all tournament details.
📤 Publish a Tournament
A tournament remains pending until published. UsePATCH /tournament/{tournamentId}/publish to make it live.
Example Request:
200 OK– Tournament is now published and can accept gamer entries.
✏️ Update a Tournament
Pending tournaments can be updated before they start usingPATCH /tournament/{tournamentId}/update.
Fields you can update:
name,description,entryFee,startTime,endTime
200 OK– Tournament updated successfully.
🎯 Summary Workflow
- Create a tournament → it starts in pending status.
- Update details if needed before publishing.
- Publish the tournament → gamers can join.
- Nexra automatically handles entry fees, prize pool updates, and payouts.