Skip to main content
Version: 6.0.0

EditLeaderboard

caution

WARNING: This call, EditLeaderboard(), will be deprecated and replaced with SysEditLeaderboard().

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
dataOptional user-defined data to relevant to the edited leaderboard
leaderboardTypeLeaderboard type
rotationTypeType of rotation
rotationResetDate to start the rotation (date in millis)
retainedCountHow many previous rotations to keep
numDaysToRotateOptional parameter for use only with DAYS rotation type

Usage​

http://localhost:3000
//cloud code only
JSON Response
{
"status": 200,
"data": null
}
Common Error Code

Status Codes​

CodeNameDescription
40499NO_LEADERBOARD_FOUNDNo leaderboard with given leaderboardId