Skip to main content
Version: 5.7.0

PostTournamentScoreOnBehalfOf

Post score to another user.

ServiceOperation
tournamentPOST_TOURNAMENT_SCORE_ON_BEHALF_OF

Method Parameters

ParameterDescription
profileIdProfile id of the target user
leaderboardIdThe leaderboard for the tournament
scoreThe score to post
dataOptional data attached to the leaderboard entry
roundStartedEpochTime the user started the match resulting in the score being posted. (date in millis)
forceCreateShould a new score be created? When false, the call can only modify a currently existing score.

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"data": {
"leaderboardId": "^D^div6^2",
"versionId": 1,
"playerId": "c5ecdbda-5f91-41a9-96aa-174f412f7657",
"score": 100,
"data": {
"nickname": "batman"
},
"createdAt": 1647877630346,
"updatedAt": 1647877788048,
"tCode": "tcode1",
"tRank": 0,
"tClaimedAt": 0,
"tNotifiedAt": 0,
"previousScore": 50
},
"status": 200
}