We are trying to script as much Title configuration as possible for our PlayFab titles.
It seems like the API is excellent for configuring subsystems (great job!), but not so much the title itself?
I've scanned through the API documentation but can't find a way to configure these two Title settings:
Is there a way to modify these (and other title-related) settings from API?
Thanks
Joel
Answer by Citrus Yan · Nov 04, 2019 at 08:04 AM
Hi @Joel Malone,
For configuring the "Allow non-unique player display names" setting, there is no API can do that, you’ll need to configure it via the Game Manager. If you think it’s really important for you, you can make a feature request about it.
About the “Allow client to post player statistics” setting”, a possible way to configure it through API is to set up a policy that will deny the Client/UpdatePlayerStatistics API request from the client. Please note this operation is not fully equivalent to the one performed in the Game Manager, but it will generate a similar outcome. Here is the example for you to set it up:
Call UpdatePolicy with the following parameters in the request body:
{ "PolicyName": "ApiPolicy", "Statements": [ { "Resource": "pfrn:api--/Client/UpdatePlayerStatistics", "Action": "*", "Effect": "Deny", "Principal": "*", "Comment": "Client cannot update statistics" } ], "OverwritePolicy": false }
This will disable the Client/UpdatePlayerStatistics API access from the client, making them unable to post statistics. You can use this method to configure other settings like “Allow client to subtract virtual currency” (simply disable the Client/SubtractUserVirtualCurrency API access from the client), you get the idea. Here is the tutorial on API access policy you may find helpful.
Thanks for the information! Have create a feature request for managing Title settings via Admin API.