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. Includes: entryType ("PLAYER" or "GROUP"), description (desc), schedule type (scheduleType), id of template leaderboard (templateLeaderboardId), maximum number of players per division set instance (maxPlayers) for PLAYER type or maximum number of groups per division set instance (maxGroups) for GROUP type, number of days after which division set instance results are to be expired (expireResultsAfterDays), and optional customJson. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Roblox
- 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
// N/A
// PLAYER example
var divSetId = "uniqueDivSetId";
var configJson = {
"entryType": "PLAYER",
"desc": "Gold division",
"scheduleType": "Sync",
"templateLeaderboardId": "divTemplatePlayerLeaderboardId",
"maxPlayers": 100,
"expireResultsAfterDays": 15,
"customJson": null
};
var tournamentProxy = bridge.getTournamentServiceProxy();
var postResult = tournamentProxy.sysCreateDivisionSetConfig(divSetId, configJson);
// GROUP example
configJson = {
"entryType": "GROUP",
"desc": "Gold division",
"scheduleType": "Sync",
"templateLeaderboardId": "divTemplateGroupLeaderboardId",
"maxGroups": 100,
"expireResultsAfterDays": 15,
"customJson": null
};
postResult = tournamentProxy.sysCreateDivisionSetConfig(divSetId, configJson);
// PLAYER example
{
"service": "tournament",
"operation": "SYS_CREATE_DIVISION_SET_CONFIG",
"data": {
"divSetId": "uniqueDivSetId",
"configJson": {
"entryType": "PLAYER",
"desc": "Gold division",
"scheduleType": "Sync",
"templateLeaderboardId": "divTemplatePlayerLeaderboardId",
"maxPlayers": 100,
"expireResultsAfterDays": 15,
"customJson": null
}
}
}
// GROUP example
{
"service": "tournament",
"operation": "SYS_CREATE_DIVISION_SET_CONFIG",
"data": {
"divSetId": "uniqueDivSetId",
"configJson": {
"entryType": "GROUP",
"desc": "Gold division",
"scheduleType": "Sync",
"templateLeaderboardId": "divTemplateGroupLeaderboardId",
"maxGroups": 100,
"expireResultsAfterDays": 15,
"customJson": null
}
}
}
JSON Response
{
"data": {
"gameId": "23782",
"divSetId": "uniqueDivSetId",
"entryType": "PLAYER",
"desc": "Gold division",
"scheduleType": "Sync",
"lbTemplate": "l4",
"max": 100,
"expiryDays": 15,
"createdAt": 1654004481428,
"updatedAt": 1654004481428,
"version": 1
},
"status": 200
}