次の方法で共有


Title-Wide Data Management - Set Title Internal Data

Updates the key-value store of custom title settings which cannot be read by the client. These values can be used to tweak settings used by game servers and Cloud Scripts without the need to update and re-deploy.

POST https://titleId.playfabapi.com/Admin/SetTitleInternalData

Request Header

Name Required Type Description
X-SecretKey True

string

This API requires a title secret key, available to title admins, from PlayFab Game Manager.

Request Body

Name Required Type Description
Key True

string

key we want to set a value on (note, this is additive - will only replace an existing key's value if they are the same name.) Keys are trimmed of whitespace. Keys may not begin with the '!' character.

Value

string

new value to set. Set to null to remove a value

Responses

Name Type Description
200 OK

SetTitleDataResult

400 Bad Request

ApiErrorWrapper

This is the outer wrapper for all responses with errors

Security

X-SecretKey

This API requires a title secret key, available to title admins, from PlayFab Game Manager.

Type: apiKey
In: header

Definitions

Name Description
ApiErrorWrapper

The basic wrapper around every failed API response

SetTitleDataRequest

This operation is additive. If a Key does not exist in the current dataset, it will be added with the specified Value. If it already exists, the Value for that key will be overwritten with the new Value.

SetTitleDataResult

ApiErrorWrapper

The basic wrapper around every failed API response

Name Type Description
code

integer

Numerical HTTP code

error

string

Playfab error code

errorCode

integer

Numerical PlayFab error code

errorDetails

object

Detailed description of individual issues with the request object

errorMessage

string

Description for the PlayFab errorCode

status

string

String HTTP code

SetTitleDataRequest

This operation is additive. If a Key does not exist in the current dataset, it will be added with the specified Value. If it already exists, the Value for that key will be overwritten with the new Value.

Name Type Description
Key

string

key we want to set a value on (note, this is additive - will only replace an existing key's value if they are the same name.) Keys are trimmed of whitespace. Keys may not begin with the '!' character.

Value

string

new value to set. Set to null to remove a value

SetTitleDataResult

Error Codes

Name Code
DataLengthExceeded 1146
TooManyKeys 1147