Get Leaderboard

Get the leaderboard for a specific challenge.

Args: request (LeaderboardRequest): Contains challenge_id and challenge_month_label for which to fetch leaderboard

Returns: LeaderboardResponse: Contains challenge_id and challenge_month_label and leaderboard data if available, or message indicating insufficient data if leaderboard isn't ready yet.

Raises: HTTPException: With appropriate status code for various error cases

post/api/leaderboard

Request

  • Base URL
    https://backend.praktiki.io (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Request body

challenge_idstring required
challenge_month_labelstring required
force_refreshboolean

Response

Successful Response

challenge_idstring required
challenge_month_labelstring required
statusstring
messagestring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.