Skip to main content
Version: 5.7.0

GetTournamentConfigs

{
"packetId": 1,
"messages": [
{
"service": "tournament",
"operation": "GET_TOURNAMENT_CONFIGS",
"data": {
"leaderboardId": "leaderboard1",
"leaderboardVersionId": 1
}
}
]
}

Get tournament configs associated with a leaderboard.

ServiceOperation
tournamentGET_TOURNAMENT_CONFIGS

Method Parameters

ParameterDescription
leaderboardIdThe leaderboard to retrieve tournament info from.
leaderboardVersionIdThe version of the leaderboard to retrieve tournament info from. Use -1 for current version.

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": {
"tournamentConfigsCount": 1,
"tournamentConfigs": [
{
"version": 8,
"gameId": "123456",
"tournamentCode": "testTournament",
"description": {
"name": {
"en": "Test Tournament"
},
"desc": {
"en": "Test Tournament"
}
},
"notifications": {
"startingSoon": {
"enabled": false,
"pushId": null,
"mail": null
},
"start": {
"enabled": false,
"pushId": null,
"mail": {}
},
"scorePassed": {
"enabled": false,
"pushId": null,
"mail": {}
},
"endingSoon": {
"enabled": false,
"pushId": null,
"mail": {}
},
"complete": {
"enabled": false,
"pushId": null,
"mail": {}
}
},
"calcScript": "",
"postScript": "",
"customJson": {},
"payoutRules": [
{
"reward": {
"currency": {
"credits": 1
}
},
"rank": {
"rankAbs": 1
}
},
{
"reward": {},
"rank": {
"rankRemainder": -1
}
}
],
"entryFee": {},
"createdAt": 1483479902614,
"updatedAt": 1483560895428
}
]
}
}
]
}