question

Jon avatar image
Jon asked

GetPlayerInventory Api doc bug

There is a small bug in the documentation for GetPlayerInventory from server

https://docs.microsoft.com/en-us/rest/api/playfab/server/player-item-management/getuserinventory?view=playfab-rest#iteminstance

The field UsesIncrementedBy should be RemainingUses

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Sarah Zhang avatar image
Sarah Zhang answered

This API reference also contains this field -- RemainingUses. You can find it on this list. In our API reference, some classes are reused. So, sometimes you would find the field that doesn’t appear in this API response. UsesIncrementedBy and RemainingUses are both fields of ItemInstance. They are for different usages.

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jon avatar image Jon commented ·

I don't think that is correct though, as RemainingUses is not just for consumables as the doc says. It also applies to non-consumable but stackable items.

0 Likes 0 ·
Sarah Zhang avatar image Sarah Zhang Jon commented ·

Yes. This description is inaccurate, apologies for the confusion.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.