question

Cyrille Bousquet avatar image
Cyrille Bousquet asked

Update virtual currency types ?

Hi,

I can see that there are requests to add & remove virtual currencies (/Admin/AddVirtualCurrencyTypes & /Admin/RemoveVirtualCurrencyTypes)

But isn't there any way to update an existing one like we can through the website ? (/economy/currency/{code}/edit).

Would calling Add with an existing one (existing unique code) replace it ?

Or would Remove then Add be the way to go ? Sounds dangerous if possible at all though since as per documentation

Virtual currencies to be removed cannot have entries in any catalog nor store for the title. Note that this operation will not remove player balances for the removed currencies; if a deleted currency is recreated at any point, user balances will be in an undefined state.

The plan would be to integrate this into our own editor so users remain in their familiar tool to do so.

Cheers, Cyrille // Bousk

apis
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

·
Simon Cui avatar image
Simon Cui answered

You can use Add Virtual Currency Types - REST API (PlayFab Admin) to update existing currency configurations. The new configurations will replace the existing ones. It is not recommended to remove then add, as you mentioned which is risky.

10 |1200

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

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.