Skip to content

Resource BattleOrderResource

CrucifiedPain edited this page Jun 26, 2026 · 10 revisions

BattleOrderResource (client.battle_order)

Endpoints: • battleOrder.getByBattle

.get_by_battle()

Get active battle orders for a specific battle and side.

Args: battle_id: The unique identifier of the battle. side: Which side — attacker or defender.

Signature

await client.battleorder.get_by_battle(battle_id: 'str', side: 'BattleOrderSide | str') -> 'list[BattleOrder]'

Parameters

Name Type Default
battle_id str *Required*
side BattleOrderSide | str *Required*

Return Models

BattleOrder

A battle order placed by a military unit for a specific battle and side.

Field Type Required Description
_id string \| null
__v integer \| null
battleId string \| null
side string \| null
muId string \| null
muName string \| null
countryId string \| null
details object \| null

.invalidate_cache()

Clear the SWR cache for all resources.

Signature

await client.battleorder.invalidate_cache() -> 'None'

Clone this wiki locally