API:2/wvw/upgrades

From Guild Wars 2 Wiki
< API:2‎ | wvw
Jump to navigationJump to search

/v2/wvw/upgrades

HTTP method
GET
Format
json
API version
version 2
Release date
2017-03-01
Scope
none
Optional
none

This resource returns details about available World vs. World upgrades for objectives such as camps, towers, and keeps.

Parameters

  • lang (string, optional) – Request localized responses.

Response

If the root endpoint (/v2/wvw/upgrades) is accessed without specifying an id, a list of all ids is returned. When multiple ids are requested using the ids parameter, a list of response objects is returned.

For each objective requested, the following object is returned as a response:

  • id (string) – The upgrade id.
  • tiers (array of objects)
    • name (string) - The name of the upgrade tier.
    • yaks_required (integer) - The number of required yaks.
    • upgrades (array of objects)
      • name (string) - The name of the upgrade tier.
      • description (string) - The given description for this upgrade.
      • icon (string/url) - The url/image link for the upgrade's icon.

Example

https://api.guildwars2.com/v2/wvw/upgrades/14

{
 "id": 14,
 "tiers": [
   {
     "name": "Secured",
     "yaks_required": 20,
     "upgrades": [
       {
         "name": "Build Pot of Oil",
         "description": "Fortifies the objective with a pot of burning oil.",
         "icon": "https://render.guildwars2.com/file/F5AC92A6AE1503EE3B0A940EEE6768C928396663/587138.png"
       },
       {
         "name": "Build Cannon",
         "description": "Fortifies the objective with a cannon.",
         "icon": "https://render.guildwars2.com/file/CFA860C6D3AC505CFA2C4B644A64459E9FEED114/105217.png"
       },
       ...
     ]
   },
   ...
 ]
}