I want to add a tag to a player calling a cloud script to do this since its only exposed in the server api and this is what i did but it doesnt work so what is the correct way i saw somewhere instead of TagName it said TagValue so this might be the issue but i took TagName from here :
https://api.playfab.com/documentation/Server/method/AddPlayerTag
handlers.onRegister = function (args, context) { var tag = args.tag; var request = { PlayFabId: currentPlayerId, TagName : tag }; var playerStatResult = server.UpdatePlayerStatistics(request); };