Endpoints
Leaderboard API Documentation
This endpoint is used to update the leaderboard with the player's latest skill data. It requires several pieces of information about the player and the game mode they are playing in.
Endpoint URL
POST
https://api.teamgames.io/v3/leaderboard/metrics/update
Headers
Authorization
string
Bearer token for API key authentication
Request Body
gameMode
string
Game mode identifier
Yes
playerName
string
Player name
Yes
ipAddress
string
Player's IP address (optional)
No
userRole
string
Player's role (optional)
No
metrics
array
Array of player's skill or activity data (see below)
Yes
Each object in the skills
array should have the following structure:
name
string
Metric name
value
integer
Metric value
progress
integer
Metric progress
Response
The endpoint will return a response indicating the status of the leaderboard update.
Example Request
CURL Example
Here is an example of how to make a request to the Vote API using CURL:
Last updated
Was this helpful?