Modifier les utilisations de l'objet
NOTE: This is a Legacy Economy API, and is in bugfix-only mode. All new Economy features are being developed only for version 2. Modifies the number of remaining uses of a player’s inventory item
Error codes
This operation may return the following PlayFab errors:
| Error | Code |
|---|---|
| InvalidItemProperties | 1091 |
| NoRemainingUses | 1062 |
| ProductDisabledForTitle | 1609 |
Autorisations
This API requires a title secret key, available to title admins, from PlayFab Game Manager.
Corps
This function can both add and remove uses of an inventory item. If the number of uses drops below zero, the item will be removed from active inventory.
This function can both add and remove uses of an inventory item. If the number of uses drops below zero, the item will be removed from active inventory.
Unique instance identifier of the item to be modified.
PlayFab unique identifier of the user whose item is being modified.
Number of uses to add to the item. Can be negative to remove uses.
The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
Sujets connexes
Utilisation de l'inventaire des joueursMise à l'échelle par programmationÉtat des objets et modérationRubriques avancées sur les sessions multijoueursActivités