Skip to main content
Version: 6.0.0

PostGroupTournamentScore

Posts the given score for member's group to the group leaderboard. Group's score is updated, if applicable, based on leaderboard type (best score, latest score, cumulative score).

ServiceOperation
tournamentPOST_GROUP_TOURNAMENT_SCORE

Method Parameters

ParameterDescription
leaderboardIdThe leaderboard for the tournament.
groupIdMember's group id.
scoreThe score to post for group.
dataOptional data attached to the group leaderboard entry, if updated.
roundStartedEpochUTC timestamp the member started the match resulting in the score being posted. (date in millis.)

Usage

http://localhost:3000
string leaderboardId = "the-leaderboard-id";
string groupId = "the-group-id";
int score = 0;
string data = "{\"memberNickname\": \"batman\"}";
int roundStartedEpoch = [[#ts]];
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.TournamentService.PostGroupTournamentScore(leaderboardId, groupId, score, data, roundStartedEpoch, successCallback, failureCallback);
JSON Response
{
"data": {
"leaderboardId": "lbg",
"versionId": 513,
"groupId": "55e701b7-6230-4536-9dfb-47f74524a09e",
"score": 20,
"data": {
"memberNickname": "batman"
},
"createdAt": 1772654392327,
"updatedAt": 1772654759855,
"tCode": "myGroupTournamentCode",
"isInitialTScore": false,
"tRank": 0,
"previousScore": 10
},
"status": 200
}