Skip to main content
Version: 5.7.0

SysEditAdhocTournamentPeriod

Updates a future ADHOC tournament period scheduled for the leaderboard configuration, identified by the existing period's UTC startingAt time, in milliseconds. Period being edited must be scheduled in the future, not in-progress. Tournament settings may include tournament period ('tPeriod'), tournament configs and associated flags ('tTournament') and tournament phases ('tPhases').

Configuration fields of tSettingsJson

ParameterDescription
tPeriodRequired. Defines the UTC 'startingAt' time and the duration: 'durationDays', 'durationDays', 'durationDays'. Period cannot overlap with any other ADHOC period(s), future or in-progress.
tTournamentRequired. Must specify 'tConfigs' defining the tournament configuration code(s) ('tConfigCode') and tournament template version(s) ('activeUpUntil', set to -1 to pick up latest version of tournament template at time of rotation, or optionally set to a maximum fixed version) for the ADHOC period, as well as 'tAutoClaim' flag indicating whether users can automatically claim tournament rewards on login, and 'tAutoJoin' flag indicating whether users automatically join the tournament on posting score (must be free entry and only 1 tournament configured).
tPhasesRequired. Defines the phases, in minutes, within the start and end period times. The total time for the enabled phases cannot exceed the overall length of the period. The competition minutes are calculated and must be greater than 0. Configurable phases: 'enrolMins', 'disallowMins', 'minMins', 'bufferMins', 'announcementMins'; and, if ADHOC tournament in progress, tournament settings may include 'tPeriod' duration settings: 'durationDays', 'durationDays', 'durationDays', which may affect endingAt time and cannot overlap with any future ADHOC periods scheduled.
ServiceOperation
leaderboardSYS_EDIT_ADHOC_TOURNAMENT_PERIOD

Method Parameters

ParameterDescription
leaderboardIdID uniquely identifying the leaderboard configuration to edit. Leaderboard must be configured with ADHOC rotation type.
dbVersionThe database version of the leaderboard config being edited. For any version, specify -1.
periodStartingAtUtcMillisThe exact startingAt UTC timestamp, in milliseconds, identifying the ADHOC period being edited.
tSettingsJsonTournament settings for the new ADHOC tournament period being scheduled.

Usage

http://localhost:3000
//cloud code only
JSON Response
{
"data": {
"aLeaderboardIdC": {
"leaderboardId": "aLeaderboardId",
"dbVersion": 4,
"resetAt": 1635895835000,
"leaderboardType": "HIGH_VALUE",
"rotationType": "ADHOC",
"retainedCount": 5,
"data": {},
"numDaysToRotate": 0,
"entryType": "PLAYER",
"tEnabled": true,
"tScheduled": [
{
"startingAt": 1635895835000,
"endingAt": 1636155035000,
"tConfigs": {
"bronzeLevel": {
"activeUpUntil": -1,
"tConfigCode": "bronzeLevel"
},
"silverLevel": {
"activeUpUntil": -1,
"tConfigCode": "silverLevel"
},
"goldLevel": {
"activeUpUntil": -1,
"tConfigCode": "goldLevel"
}
},
"tStates": {
"enrolMins": 60,
"disallowMins": 30,
"minMins": 4305,
"compMins": 4235,
"bufferMins": 10,
"announcementMins": 15
},
"tAutoJoin": false,
"tAutoClaim": false
}
],
"tTemplateOnly": false,
"currentVersionId": 1,
"currentPeriod": {
"versionId": 1,
"startingAt": 1632253445307,
"endingAt": 1635895835000,
"rotationType": "ADHOC",
"numDaysToRotate": 0
}
}
},
"status": 200
}