SysEditDivisionSetConfig
Updates a division set configuration with specified changes
Service | Operation |
---|---|
tournament | SYS_EDIT_DIVISION_SET_CONFIG |
Method Parameters
Parameter | Description |
---|---|
divSetId | The division set id uniquely identifying the division set configuration to be updated. |
version | Current version number of division set config to update. Use -1 to disable version checking. |
configJson | Configuration data defining the division set configuration changes, which may include changes to: 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 = "aDivSetId";
var version = 2;
var configJson = {
"desc": "Gold division",
"scheduleType": "Sync",
"templateLeaderboardId": "divTemplateLeaderboardId",
"maxPlayers": 100,
"expireResultsAfterDays": 15
};
var tournamentProxy = bridge.getTournamentServiceProxy();
var postResult = tournamentProxy.sysEditDivisionSetConfig(divSetId, version, configJson);
if (postResult.status == 200) {
// Success!
}
{
"service": "tournament",
"operation": "SYS_EDIT_DIVISION_SET_CONFIG",
"data":
{
"divSetId": "aDivSetId",
"version": 2,
"configJson": {
"desc": "Gold division",
"scheduleType": "Sync",
"templateLeaderboardId": "divTemplateLeaderboardId",
"maxPlayers": 100,
"expireResultsAfterDays": 15
}
}
}
JSON Response
{
"data": {
"gameId": "23782",
"divSetId": "uniqueDivSetId",
"desc": "Gold division updated",
"scheduleType": "Sync",
"lbTemplate": "l4",
"max": 80,
"expiryDays": 15,
"createdAt": 1654004481428,
"updatedAt": 1654004783858,
"version": 2
},
"status": 200
}