API:2/wvw/upgrades

From Guild Wars 2 Wiki
< API:2‎ | wvw
Jump to: navigation, 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.
    • description (string) - The given description for this upgrade tier.
    • 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/15
{
   "id": 15,
   "tiers": [
       {
           "name": "Secured",
           "yaks_required": 20,
           "upgrades": [
               {
                   "name": "Caravan Guards",
                   "description": "Recruits guards to escort the camp's dolyak caravans.",
                   "icon": "https://render.guildwars2.com/file/A81310D55E7BEA075E2F739A43E223070414EFE3/105225.png"
               },
               {
                   "name": "Storage Expansion",
                   "description": "Increases the objective's maximum supply hold size by 100.",
                   "icon": "https://render.guildwars2.com/file/A73BF1A307D62B047B913DBBAE7409089DFE4DC9/544540.png"
               }
           ]
       },
       ...
   ]

}