Player Properties
Player Properties are strings or numbers associated with each player of your game in Teak. Player Properties have several uses, including
-
Targeting players for a send by using the player properties Audience rule
-
Personalizing push notification content using custom tags
-
Personalizing email content using custom tags
-
Personalizing deep links from Links, push notifications, and emails to take players to a meaningful location in your game
Player Properties must be configured on the Teak dashboard before they can be updated or used. Additionally, the property must permit server updates before you can set it using this API. If you attempt to set a property that is not configured in the dashboard or does not permit server updates, this endpoint will indicate that it is an unknown property but will process updates for all known properties in the same request.
Please note that
-
Number Player Properties can store values between -999999999999999999999999999.999999999 and 999999999999999999999999999.999999999.
-
String Player Properties can store up to 16,384 unicode characters (including emoji)
Updating
Endpoint |
|
Request Type |
POST |
Rate Limiting |
1000 requests per second |
Required Parameters
game_id |
Your Teak App ID |
secret_key |
Your Teak Server Secret |
user_id |
The Game Assigned Player ID of the player you are updating player properties for. This must match the value provided by the game client’s Teak SDK integration. |
properties |
A map of player property names to the values of those properties for the given player. |
Success Response
Status Code |
200 |
||||||||
Response Body |
JSON dictionary with 'status' and 'exclusions' keys. If pagination is possible, the dictionary will include a 'paging' key,
|
||||||||
Example |
|
Error Responses
Not Found
Status Code |
404 |
Response Body |
JSON dictionary with 'status' and 'errors' keys. 'status' will be 'error'. 'errors' will be a dictionary containing keys indicating which resources were not found, with values being an array of human readable error messages. |
Example |
|
Rate Limit Response
Status Code |
429 |
Response Body |
JSON dictionary with 'status' and 'errors' keys. 'status' will be 'rate_limit'. 'errors' will contain the key 'rate_limit' |
Example |
|