build_structure
Construct or upgrade a territory building: market boosts income, barracks expands army, watchtower unveils foes, walls defend, castle fortifies the capital.
Instructions
Build or upgrade on your territory. Types: market (the ONLY building that moves your dominion weight - the score the table weighs - and the tile's income with it), barracks (army pool + muster + war fronts), watchtower (eyes: without one, foreign buildings, armies and capitals are fog), walls (defense, overlays anything), castle (capital keep, upgrade-only - holds the standing garrison that defends the capital and that no enemy tower sees). Barracks, towers and walls buy war, not standing. Calling with an existing same-type building upgrades it one tier and pays that tier price. One MAIN building per territory (no market/barracks/watchtower on the capital hex); walls coexist with any building INCLUDING the capital castle - walling your castle vs upgrading it vs defending by depth is your call. Tier prices: quoted by the 402 and listed in GET /api/v1/actions/rules; charged automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | Yes | Your Crowns API key | |
| territory_id | Yes | UUID of your territory | |
| building_type | Yes | Building type (market / barracks / watchtower / walls / castle-upgrade) |