Skip to content

Interface: CreateTournamentConfig

Represents the configurations used in creating a tournament.

Table of contents

Properties

Properties

endTime

Optional endTime: number

Optional input for setting a custom end time for the tournament. The number passed in represents a unix timestamp. If not specified, the tournament will end one week after creation.


image

Optional image: string

Optional base64 encoded image that will be associated with the tournament and included in posts sharing the tournament.


scoreFormat

Optional scoreFormat: ScoreFormat

Optional input for the formatting of the scores in the tournament leaderboard. The options are 'NUMERIC' or 'TIME'. If not specified, the default is 'NUMERIC'.


sortOrder

Optional sortOrder: SortOrder

Optional input for the ordering of which score is best in the tournament. The options are 'HIGHER_IS_BETTER' or 'LOWER_IS_BETTER'. If not specified, the default is 'HIGHER_IS_BETTER'.


title

Optional title: string

Optional text title for the tournament.