-
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 |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
name |
string |
Optional |
description |
string |
Optional |
isActive |
boolean |
Optional |
status |
string |
Optional |
startAt |
string |
Optional |
teamSize |
number |
Optional |
teamCount |
integer |
Optional |
roundsCount |
integer |
Optional |
type |
string |
Optional |
maxRarity |
string |
Optional |
skillKey |
string |
Optional |
autoQualify1stRound |
array[string] |
Optional |
registered |
TournamentRegistered |
Optional |
activeRound |
integer |
Optional |
rounds |
object |
Optional |
winnerTournamentTeam |
string |
Optional |
createdAt |
string |
Optional |
updatedAt |
string |
Optional |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
matchIndex |
integer |
Optional |
predecessors |
TournamentMatchPredecessors |
Optional |
attacker |
string |
Optional |
defender |
string |
Optional |
isQualificationRound |
boolean |
Optional |
battle |
string |
Optional |
wonBy |
string |
Optional |
possibleAttackerTeamIds |
array[string] |
Optional |
possibleDefenderTeamIds |
array[string] |
Optional |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
attacker |
integer |
Optional |
defender |
integer |
Optional |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
countries |
array[string] |
Optional |
mus |
array[string] |
Optional |
users |
array[string] |
Optional |
| Field | Type | Required |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
roundNumber |
integer |
Optional |
cases |
number |
Optional |
skillValue |
number |
Optional |
isQualificationRound |
boolean |
Optional |
matches |
array[TournamentMatch] |
Optional |
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 |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
tournament |
string |
Optional |
number |
integer |
Optional |
countries |
array[string] |
Optional |
mus |
array[string] |
Optional |
users |
array[string] |
Optional |
participants |
array[string] |
Optional |
colorScheme |
string |
Optional |
estimatedUsers |
integer |
Optional |
status |
string |
Optional |
createdAt |
string |
Optional |
updatedAt |
string |
Optional |
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 |
|---|---|---|
_id |
string |
Optional |
__v |
integer |
Optional |
tournament |
string |
Optional |
number |
integer |
Optional |
countries |
array[string] |
Optional |
mus |
array[string] |
Optional |
users |
array[string] |
Optional |
participants |
array[string] |
Optional |
colorScheme |
string |
Optional |
estimatedUsers |
integer |
Optional |
status |
string |
Optional |
createdAt |
string |
Optional |
updatedAt |
string |
Optional |
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