question

Jérémie Fouché avatar image
Jérémie Fouché asked

Custom Key in CloudScript for UpdateData

Hello,

i need to change name of the key data as i want.

I can do it with UpdateStatistic but here i dont know how can i customise the Key Data : "nameData"

Thanks for your help.

CloudScriptdata
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

·
Hernando avatar image
Hernando answered

PlayFab does not provide an API to directly modify the key name, but you can with KeysToRemove field of UpdateUserData Request to remove the key from UserData, and create a new Key-Value Data, make the key name as you want and the value is the same as before.

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.