> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# APISettings

> APISettings 数据类型。

## 属性

| 名称                                   | 类型      | 描述                                                    |
| :----------------------------------- | :------ | :---------------------------------------------------- |
| AllowClientToAddVirtualCurrency      | Boolean | 允许游戏客户端通过 API 增加虚拟货币余额。                               |
| AllowClientToPostPlayerStatistics    | Boolean | 允许游戏客户端通过 API 更新统计值。                                  |
| AllowClientToStartGames              | Boolean | 允许客户端通过 API 启动多人游戏会话。                                 |
| AllowClientToSubtractVirtualCurrency | Boolean | 允许游戏客户端通过 API 从虚拟货币余额中扣减。                             |
| AllowNonUniquePlayerDisplayNames     | Boolean | 允许玩家选择可能已被其他玩家使用的显示名称，即不强制要求显示名称唯一。注意：如果启用此选项，稍后无法禁用。 |
| AllowServerToDeleteUsers             | Boolean | 允许游戏服务器通过 API 删除玩家账户。                                 |
| DefaultLanguage                      | String  | 与玩家沟通时使用的默认语言                                         |
| DisableAPIAccess                     | Boolean | 通过对所有 API 请求返回错误来禁用 API 访问。                           |
| DisplayNameRandomSuffixLength        | int32   | 显示名称随机生成的后缀长度。                                        |
| EnableClientIPAddressObfuscation     | Boolean | 在从玩家设备收集的 IP 地址被存储或用于估算地理位置之前，降低其精度。                  |
| RequireCustomDataJSONFormat          | Boolean | 要求与玩家、角色、库存和共享组关联的数据值采用 JSON 格式。                      |
| UseExternalGameServerProvider        | Boolean | 多人游戏会话托管在 PlayFab 之外的服务器上。                            |
| UseSandboxPayments                   | Boolean | 对真实货币购买使用付款提供商的沙盒模式（如果可用）。这在测试游戏内购买时可能非常有用，以避免产生费用。   |


## Related topics

- [title_api_settings_changed](/zh-CN/services/playfab/api-references/events/ApiAccessPolicy/title-api-settings-changed.md)
- [Settings 命令](/zh-CN/build/core-features/common/game-streaming/tak-command-line-tool/game-streaming-tak-command-line-settings-command.md)
- [HCConfigSetting](/zh-CN/reference/live/httpclient/httpclient/enums/hcconfigsetting.md)
- [IXtfConfigSettingsCallback::OnFoundSetting](/zh-CN/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConfigSettingsCallback/methods/ixtfconfigsettingscallback_onfoundsetting.md)
- [XNetworkingConfigurationSetting](/zh-CN/reference/networking/xnetworking/enums/xnetworkingconfigurationsetting.md)
