Documentation

SetPublisherData

Updates the key-value store of custom publisher settings

Request Details

This API is designed to store publisher-specific values which can be read, but not written to, by the client. This data is shared across all titles assigned to a particular publisher, and can be used for cross-game coordination. Only titles assigned to a publisher can use this API. 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. For more information email devrel@playfab.com

SetPublisherDataRequest
Request Properties
Key (required) 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

POST https://{{TitleID}}.playfabapi.com/Admin/SetPublisherData
    Content-Type: application/json
    X-SecretKey: <developer_secret_key>
{
  "Key": "Running Speed",
  "Value": "1.03"
}
        

Response Details

SetPublisherDataResult
Result Properties

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8


Authentication

SecretKey

Possible Error Codes

Name Code
PublisherNotSet 1122