Skip to main content
Version: 5.7.0

SysListTournamentTemplates

Lists all tournament templates.

ServiceOperation
tournamentSYS_LIST_TOURNAMENT_TEMPLATES

Method Parameters

ParameterDescription
optionsJsonOptional json to sort the list of tournament templates. Valid values for sort field are \"ASCENDING\" or \"DESCENDING\"; defaults to ASCENDING

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"data": {
"tournamentTemplatesCount": 2,
"tournamentTemplates": [
{
"tournamentCode": "testTournamentId",
"version": 9,
"description": {
"name": {
"en": "testTournamentName"
},
"desc": {
"en": ""
},
"notifications": {
"startingSoon": {
"enabled": true,
"pushId": 1,
"mail": {
"en": "d-86bc9796d49b45f8a1833c6ee6216c06"
}
},
"start": {
"enabled": true,
"pushId": 1,
"mail": {
"en": "d-86bc9796d49b45f8a1833c6ee6216c06"
}
},
"scorePassed": {
"enabled": true,
"pushId": 1,
"mail": {}
},
"endingSoon": {
"enabled": true,
"pushId": 1,
"mail": {
"en": "d-86bc9796d49b45f8a1833c6ee6216c06"
}
},
"complete": {
"enabled": true,
"pushId": 1,
"mail": {
"en": "d-86bc9796d49b45f8a1833c6ee6216c06"
}
}
},
"calcScript": "",
"postScript": "",
"customJson": {},
"payoutRules": [
{
"rank": {
"rankAbs": 1
},
"reward": {
"currency": {
"gems": 1
}
}
}
],
"entryFee": {},
"createdAt": 1590674004863,
"updatedAt": 1590674295500
},
{
"tournamentCode": "uniqueTournamentCode",
"version": 1,
"description": {
"name": {
"en": "tFree"
},
"desc": {
"en": "Free tournament. Pays out for rankings: 1st, 2nd and top 10%. Push notifications for start and complete."
}
},
"notifications": {
"startingSoon": {
"enabled": false,
"pushId": null,
"mail": {}
},
"start": {
"enabled": true,
"pushId": 1,
"mail": {}
},
"scorePassed": {
"enabled": false,
"pushId": null,
"mail": {}
},
"endingSoon": {
"enabled": false,
"pushId": null,
"mail": {}
},
"complete": {
"enabled": true,
"pushId": 1,
"mail": {}
}
},
"calcScript": "",
"postScript": "",
"customJson": {},
"payoutRules": [
{
"rank": {
"rankAbs": 1
},
"reward": {
"experiencePoints": 10,
"currency": {
"coins": 100
}
}
},
{
"rank": {
"rankAbs": 2
},
"reward": {
"experiencePoints": 5,
"currency": {
"coins": 50
}
}
},
{
"rank": {
"rankToPercent": 10
},
"reward": {
"experiencePoints": 1,
"currency": {
"coins": 5
}
}
}
],
"entryFee": {},
"createdAt": 1632511327924,
"updatedAt": 1632511327924
}
]
},
"status": 200
}