-
Notifications
You must be signed in to change notification settings - Fork 2
Resource TournamentResource
CrucifiedPain edited this page Jun 26, 2026
·
9 revisions
Endpoints: • tournament.getLastTournament • tournamentTeam.getById • tournamentTeam.getByTournamentId
Get the latest tournament details.
await client.tournament.get_last_tournament() -> 'Tournament'| Field | Type | Required | Description |
|---|---|---|---|
_id |
string \| null |
❌ | |
__v |
integer \| null |
❌ | |
name |
string \| null |
❌ | |
description |
string \| null |
❌ | |
isActive |
boolean \| null |
❌ | |
status |
string \| null |
❌ | |
startAt |
string \| null |
❌ | |
teamSize |
number \| null |
❌ | |
teamCount |
integer \| null |
❌ | |
roundsCount |
integer \| null |
❌ | |
type |
string \| null |
❌ | |
maxRarity |
string \| null |
❌ | |
skillKey |
string \| null |
❌ | |
autoQualify1stRound |
array[string] |
❌ | |
registered |
TournamentRegistered \| null |
❌ | |
activeRound |
integer \| null |
❌ | |
rounds |
object |
❌ | |
winnerTournamentTeam |
string \| null |
❌ | |
createdAt |
string \| null |
❌ | |
updatedAt |
string \| null |
❌ |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
string \| null |
❌ | |
__v |
integer \| null |
❌ | |
matchIndex |
integer \| null |
❌ | |
predecessors |
TournamentMatchPredecessors \| null |
❌ | |
attacker |
string \| null |
❌ | |
defender |
string \| null |
❌ | |
isQualificationRound |
boolean \| null |
❌ | |
battle |
string \| null |
❌ | |
wonBy |
string \| null |
❌ | |
possibleAttackerTeamIds |
array[string] \| null |
❌ | |
possibleDefenderTeamIds |
array[string] \| null |
❌ |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
string \| null |
❌ | |
__v |
integer \| null |
❌ | |
attacker |
integer \| null |
❌ | |
defender |
integer \| null |
❌ |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
string \| null |
❌ | |
__v |
integer \| null |
❌ | |
countries |
array[string] |
❌ | |
mus |
array[string] |
❌ | |
users |
array[string] |
❌ |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
string \| null |
❌ | |
__v |
integer \| null |
❌ | |
roundNumber |
integer \| null |
❌ | |
cases |
number \| null |
❌ | |
skillValue |
number \| null |
❌ | |
isQualificationRound |
boolean \| null |
❌ | |
matches |
array[TournamentMatch] |
❌ |
Get a tournament team by its ID.
await client.tournament.get_team_by_id(tournament_team_id: 'str') -> 'TournamentTeam'| Name | Type | Default |
|---|---|---|
tournament_team_id |
str |
*Required* |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
string \| null |
❌ | |
__v |
integer \| null |
❌ | |
tournament |
string \| null |
❌ | |
number |
integer \| null |
❌ | |
countries |
array[string] |
❌ | |
mus |
array[string] |
❌ | |
users |
array[string] |
❌ | |
participants |
array[string] |
❌ | |
colorScheme |
string \| null |
❌ | |
estimatedUsers |
integer \| null |
❌ | |
status |
string \| null |
❌ | |
createdAt |
string \| null |
❌ | |
updatedAt |
string \| null |
❌ |
Get all teams for a specific tournament.
await client.tournament.get_teams_by_tournament(tournament_id: 'str') -> 'list[TournamentTeam]'| Name | Type | Default |
|---|---|---|
tournament_id |
str |
*Required* |
| Field | Type | Required | Description |
|---|---|---|---|
_id |
string \| null |
❌ | |
__v |
integer \| null |
❌ | |
tournament |
string \| null |
❌ | |
number |
integer \| null |
❌ | |
countries |
array[string] |
❌ | |
mus |
array[string] |
❌ | |
users |
array[string] |
❌ | |
participants |
array[string] |
❌ | |
colorScheme |
string \| null |
❌ | |
estimatedUsers |
integer \| null |
❌ | |
status |
string \| null |
❌ | |
createdAt |
string \| null |
❌ | |
updatedAt |
string \| null |
❌ |
Clear the SWR cache for all resources.
await client.tournament.invalidate_cache() -> 'None'- action_log
- alliance
- article
- battle
- battle_loot_summary
- battle_order
- battle_ranking
- company
- country
- donation
- election
- event
- game_config
- game_stat
- government
- inventory
- item_trading
- mercenary_contract_auction
- mu
- mu_member
- party
- ranking
- region
- round
- search
- tournament
- transaction
- upgrade
- user
- work
- work_offer
- worker