Forums / Support / Halo API Support

Missing commendation levels?

OP fr33h33l

Endpoint:

Halo 5 - Commendations

Issue:

Some requiredLevel elements seem to be referencing level element( id)s that do not exist.

Assumptions:

The id field of the requiredLevel elements inside the returned commendation elements reference level elements.

These referenced level elements should all be found inside the returned commendations.

Reproduction:

# Extract all level ids
curl -s -H 'Ocp-Apim-Subscription-Key: KEY_REMOVED' https://www.haloapi.com/metadata/h5/metadata/commendations | jq '.[].levels[].id' | uniq | sort > levelIds.txt

# Number of level ids
cat levelIds.txt | wc -l
513

# Extract all level ids referenced by requiredLevel elements
curl -s -H 'Ocp-Apim-Subscription-Key: KEY_REMOVED' https://www.haloapi.com/metadata/h5/metadata/commendations | jq '.[].requiredLevels[].id' | uniq | sort > requiredLevels_levelIds.txt

# Number of referenced level ids
cat requiredLevels_levelIds.txt | wc -l
87

join levelIds.txt requiredLevels_levelIds.txt | wc -l
79

Question:

So, there are 8 level ids referenced that do not exist (in the data returned from the Halo 5 - Commendations endpoint).

Does this mean that the corresponding required levels are no longer used and should be removed or can these level elements be fetched from somewhere else (e.g. through the Halo 5 - Company Commendations endpoint)?