Skip to content

Create

Insert a new leaderboard in this game.

HTTP request

POST https://megamify.com/api/v1/game/:game_id/leaderboard/

Parameters

Name Required Type Description
game_id True int The Game ID

Headers

See Security section of the API Reference.

Body

Name Required Type Description
game True int The Game ID
statistic_name True string The Statistic name
reset_frequency True string The reset frequency (MA=Manually, DA=Daily, MO=Monthly)
aggregation_method True string The aggregation method (MI=Mininum, MA=Maximum, SU=Sum, LA=Last)

Response

Status: 201 Created

If successful, this method returns a Leaderboard object in the response body.