Skip to content

Update

Update a leaderboard with the given ID.

Note

Once a leaderboard has been created, you can only update the reset frequency and aggregation method.

HTTP request

PUT https://megamify.com/api/v1/game/:game_id/leaderboard/:leaderboard_id/

Parameters

Name Required Type Description
game_id True int The Game ID
leaderboard_id True int The Leaderboard ID

Headers

See Security section of the API Reference.

Body

Name Required Type Description
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: 200 OK

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