SysJoinGroupDivision
Enrolls a group in a division set and assigns an initial score. Unlike JoinGroupDivision, this sys call does not require the caller to be a member of the group.
| Service | Operation |
|---|---|
| tournament | SYS_JOIN_GROUP_DIVISION |
Method Parameters
| Parameter | Description |
|---|---|
| groupId | The group id. |
| divisionSetId | The division set id to join. |
| tournamentCode | Tournament code for the division. |
| initialScore | Initial score for the group. |
Usage
http://localhost:3000
- C#
- C++
- Obj-C
- Java
- JavaScript
- Dart
- Roblox
- GDScript
- 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
// Cloud Code only. To view example, switch to the Cloud Code tab
N/A
var groupId = "the-group-id";
var divisionSetId = "exampleDivSetId";
var tournamentCode = "exampleTournamentCode1";
var initialScore = 0;
var tournamentProxy = bridge.getTournamentServiceProxy();
var postResult = tournamentProxy.sysJoinGroupDivision(groupId, divisionSetId, tournamentCode, initialScore);
{
"service":"tournament",
"operation":"SYS_JOIN_GROUP_DIVISION",
"data":{
"groupId":"the-group-id",
"divisionSetId":"exampleDivSetId",
"tournamentCode":"exampleTournamentCode1",
"initialScore":0
}
}
JSON Response
{
"data": {
"createdAt": 1772655480000,
"leaderboardId": "^D^exampleDivSetId^1",
"enrolled": true
},
"status": 200
}