Skip to main content
Version: 5.7.0

CreateLeaderboard

caution

WARNING: This call, CreateLeaderboard(), has been deprecated and replaced with SysCreateLeaderboardConfig().

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

ServiceOperation
leaderboardCREATE_LEADERBOARD

Method Parameters

ParameterDescription
leaderboardIdThe leaderboard to create
leaderboardTypeLeaderboard type
rotationTypeType of rotation
rotationResetDate to start the rotation (date in millis)
retainedCountHow many previous rotations to keep
dataOptional user-defined data to relevant to the created leaderboard
numDaysToRotateOptional parameter for use only with DAYS rotation type

Usage

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