SysCreateDivisionSetConfig
Creates a new division set configuration
Service | Operation |
---|---|
tournament | SYS_CREATE_DIVISION_SET_CONFIG |
Method Parameters
Parameter | Description |
---|---|
divSetId | The unique division set id. |
configJson | Configuration data defining the division set, including: description (desc), schedule type (scheduleType), id of template leaderboard (templateLeaderboardId), maximum number of players per division set instance (maxPlayers), and number of days after which division set instance results are to be expired (expireResultsAfterDays). |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var divSetId = "uniqueDivSetId";
var configJson = {
"desc": "Gold division",
"scheduleType": "Sync",
"templateLeaderboardId": "divTemplateLeaderboardId",
"maxPlayers": 100,
"expireResultsAfterDays": 15
};
var tournamentProxy = bridge.getTournamentServiceProxy();
var postResult = tournamentProxy.sysCreateDivisionSetConfig(divSetId, configJson);
if (postResult.status == 200) {
// Success!
}
{
"service": "tournament",
"operation": "SYS_CREATE_DIVISION_SET_CONFIG",
"data":
{
"divSetId": "uniqueDivSetId",
"configJson": {
"desc": "Gold division",
"scheduleType": "Sync",
"templateLeaderboardId": "divTemplateLeaderboardId",
"maxPlayers": 100,
"expireResultsAfterDays": 15
}
}
}
JSON Response
{
"data": {
"gameId": "23782",
"divSetId": "uniqueDivSetId",
"desc": "Gold division",
"scheduleType": "Sync",
"lbTemplate": "l4",
"max": 100,
"expiryDays": 15,
"createdAt": 1654004481428,
"updatedAt": 1654004481428,
"version": 1
},
"status": 200
}