What do you want to achieve?
My main aim is to call the inventory API collectible/assets endpoint, but should return the items with the correct asset type.
What is the issue?
I’ve been experimenting and calling the inventory v1 API (specifically the assets/collectibles endpoint) and specifically for some reason, the ‘EarAccessory’ and ‘EyeAccessory’ asset types return the items with the ‘Hat’ asset type:
-
URL with EarAccessory asset type as request parameter: https://inventory.roblox.com/v1/users/1/assets/collectibles?assetType=EarAccessory&sortOrder=Asc&limit=10
-
URL with EyeAccessory asset type as request parameter: https://inventory.roblox.com/v1/users/1/assets/collectibles?assetType=EyeAccessory&sortOrder=Asc&limit=10
But the actual result should be nothing, since to my knowledge, no collectible items with EarAccessory and EyeAccessory as its asset type exists currently.
Also using the asset types shown below in the assetType parameter of the request return an invalid response:
- TShirtAccessory
- ShirtAccessory
- PantsAccessory
- JacketAccessory
- SweaterAccessory
- ShortsAccessory
- LeftShoeAccessory
- RightShoeAccessory
- DressSkirtAccessory
Example Here (ShortsAccessory): https://inventory.roblox.com/v1/users/1/assets/collectibles?assetType=ShortsAccessory&sortOrder=Asc&limit=10
Which according to the Roblox docs, should exist: AssetType | Roblox Creator Documentation
What solutions have you tried so far?
I’ve had to put conditions in my code (developing in a NodeJS app) to handle these errors from occurring.
I wasn’t even sure whether to put this in scripting support or report it as some kind of bug, but it may be a deliberate design choice and not a bug. Because of this I thought I’d ask here.