Asset classes
Since the asset API is not localized, the return values are provided in an english format. The asset class is a CHG internal mechanism to define the type of asset. The asset API will only return the CHG asset class code, e.g. NTB which is the short code for Notebook. Since these asset classes are different in every language, they are translated using the /v1/metadata/assetclasses endpoint. Depending on the Accept-Language header provided, the returned result will be different, e.g.
{
"data": [
{
"key": "3DP",
"description": "3D Printer"
},
{
"key": "ZCT",
"description": "Access control system"
},
{
"key": "ACP",
"description": "Access Point"
},
[...]
],
"totalCount": 333
}
These values can be used as a lookup to the class property in the assets endpoint.
Hint: Since these values rarely change, it is recommended to load all asset classes and cache the result in your application.