question

Joel Malone avatar image
Joel Malone asked

Configure "Allow non-unique player display names" (etc) via API

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:

  • General -> "Allow non-unique player display names"
  • API Features -> "Allow client to post player statistics"

Is there a way to modify these (and other title-related) settings from API?

Thanks

Joel

apisdocumentation
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

·
Citrus Yan avatar image
Citrus Yan answered

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.

2 comments
10 |1200

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

Joel Malone avatar image Joel Malone commented ·

Thanks for the information! Have create a feature request for managing Title settings via Admin API.

0 Likes 0 ·
Citrus Yan avatar image Citrus Yan Joel Malone commented ·

Glad it helped:)

0 Likes 0 ·

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.