Skip to main content
Version: 5.7.0

EditLeaderboard

{
"packetId": 1,
"messages": [
{
"service": "leaderboard",
"operation": "EDIT_LEADERBOARD",
"data": {
"leaderboardId": "default",
"leaderboardType": "HIGH_VALUE",
"rotationType": "WEEKLY",
"rotationReset": "31-01-2015 15:00",
"rotationResetTime": 1437478586586,
"retainedCount": 2,
"data": {
"street": "1309 Carling"
}
}
}
]
}

Edits a existing leaderboard under the context of the current game. You can optionally send a user-defined json string of data with the edit leaderboard. This string could include information relevant to the edited leaderboard.

ServiceOperation
leaderboardEDIT_LEADERBOARD

Method Parameters

ParameterDescription
leaderboardIdThe leaderboard to edit.
leaderboardTypeOptional user-defined data relevant to the edited leaderboard.
rotationTypeThe leaderboard type.
rotationResetTimeType of rotation.
retainedCountDate to start the rotation (Date is in millis.)
numDaysToRotateHow many previous rotations to keep.
dataOptional parameter for use only with DAYS rotation type.

Usage

http://localhost:3000
// S2S call: to view example, switch to the Cloud Code or Raw tab.
JSON Response
{
"packetId": 1,
"messageResponses": [
{
"status": 200,
"data": null
}
]
}