API:2/account/masteries. is level one off?

API:2/account/masteries. is level one off?

in API Development

Posted by: Zok.4956

Zok.4956

The Wiki in https://wiki.guildwars2.com/wiki/API:2/account/masteries says:

“level (integer) (default/null value: 0) – Indicates the level at which the mastery is on the account.”

So I would expect that the value level=0 means “no level”.

But that seems not to be true. Level=0 seems to mean “the first mastery level”.
Because on a maxed mastery-line that has five levels, the /account/masteries gives for the account level:4

Maybe /v2/accounts could also include the level as a number to make things clearer.

Will the API data change and level will start with “1” in the future or should the wiki-article be changed?

API:2/account/masteries. is level one off?

in API Development

Posted by: Lawton Campbell

Lawton Campbell

Web Programmer

The mastery level in /v2/account/masteries is a 0-indexed reference to the /v2/masteries.levels array — so 0 is the first level, totally omitted is “haven’t started”. I should update the wiki page to be more accurate.

API:2/account/masteries. is level one off?

in API Development

Posted by: Zok.4956

Zok.4956

Ok, thanks for the response.