LogoLogo
ProductsUse casesDocsSupport
  • Introducing DriveKit
  • DriveKit Guides
  • Get started with drivekit
    • Trip recording lifecycle
    • iOS
      • ๐Ÿš€Quick start
      • Advanced configurations
      • References
      • iOS DriveKit Demo App
    • Android
      • ๐Ÿš€Quick start
      • Advanced configurations
      • References
      • Android DriveKit Demo App
      • Android 15 Migration guide
      • Android 14 Migration guide
      • Troubleshooting
  • Trip analysis
    • Introduction
    • iOS
      • Permissions
      • Trip management
      • TripListener
      • Crash Detection
      • Beacon usage
      • Bluetooth usage
      • Custom metadata
      • References (iOS)
    • Android
      • Runtime permissions
      • Trip management
      • TripListener
      • Crash Detection
      • Beacon usage
      • Bluetooth usage
      • Custom metadata
      • References (Android)
    • User interface
      • iOS
        • Get started
        • Working hours
        • Driver alert in case of crash
        • Trip recording widget
        • Location sharing
      • Android
        • Get started
        • Working hours
        • Driver alert in case of crash
        • Trip recording widget
        • Location sharing
    • REST services
      • Trip
      • References
    • Trip Simulator
      • iOS
      • Android
  • PERMISSIONS UTILS
    • Introduction
    • User interface
      • iOS
        • Get started
        • Main configurations
      • Android
        • Get started
        • Main configurations
  • COMMON UI
    • Introduction
    • iOS
      • Get started
    • Android
      • Get started
    • References
  • DRIVER DATA
    • Introduction
    • iOS
      • Get started
      • References (iOS)
    • Android
      • Get started
      • References (Android)
    • User interface
      • iOS
        • Get started
        • Advanced configurations
        • Trips widgets
        • My Synthesis
        • My Driver Profile
      • Android
        • Get Started
        • Advanced configurations
        • Trips widgets
        • My Synthesis
        • My Driver Profile
  • Driver Data Timeline UI
    • Introduction
    • iOS
      • Get started
    • Android
      • Get started
  • Vehicle
    • Introduction
    • iOS
      • Get started
      • Vehicle management
      • Beacon management
      • Bluetooth device management
      • Odometer
      • References (iOS)
    • Android
      • Get started
      • Vehicle management
      • Beacon management
      • Bluetooth device management
      • Odometer
      • References (Android)
    • User interface
      • iOS
        • Get started
        • Main configurations
        • Advanced configurations
      • Android
        • Get started
        • Main configurations
        • Advanced configurations
  • DRIVER ACHIEVEMENT
    • Introduction
    • iOS
      • Get started
    • Android
      • Get Started
    • User interface
      • iOS
      • Android
  • CHALLENGE
    • Introduction
    • Important challenge rules
    • iOS
      • Get started
      • References (iOS)
    • Android
      • Get started
      • References (Android)
    • User interface
      • iOS
        • Get started
      • Android
        • Get started
  • GROUP
    • Introduction
    • iOS
      • Get started
    • Android
      • Get started
  • React Native
    • Get started
    • Integration
  • Flutter
    • Get started
    • Integration
  • Push services
    • Introduction
    • Push Trip Data
    • Push Deleted trip
    • Push Crash Data
    • Push Diagnosis Data
  • ADMIN SERVICES
    • Beacon
      • Add
      • Replace
      • Delete
      • Configuration
    • Challenges
      • List of challenges
      • Challenge details
      • Registered users
      • Challenge ranking
      • Users' progress
      • Definitions
    • Customer
      • Activity timeline
    • Driver
      • Timeline
      • Synthesis
      • Identity
      • Status
      • Add or update a metadata
      • Vehicles
      • Profile
      • Application diagnoses
    • Drivers
      • Account
      • Statistics
      • Ranking
      • Expired accounts
    • Group
      • Timeline
      • Synthesis
    • Trips
      • Add or update a metadata
      • Delete a metadata
    • Vehicle
      • Create
      • Characteristics
      • Configuration
      • Statistics
      • Update mileage
      • Tire and brake wear update
      • References
  • Crashes
    • Annotate a crash
    • Revoke crash location URL
  • ENTERPRISE SERVICES
    • Introduction
    • Teams
      • Create a team
      • List of teams
      • Enable or disable a team
    • Hyper-admins
      • Create a hyper-admin
      • List of hyper-admins
      • Delete a hyper-admin
    • Monitoring
      • Get a push trip data report
      • Get a push crash data report
      • Request to retry failed trips
      • Request to retry failed crashes
      • Get the status of a task
  • Release notes
    • Changelog
      • iOS
      • Android
      • UI iOS
      • UI Android
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. ADMIN SERVICES
  2. Challenges

Challenge ranking

PreviousRegistered usersNextUsers' progress

Last updated 1 year ago

Was this helpful?

This service returns the list of all the users registered to the challenge, along with their rankings and ranking details (i.e., number of trips and total distance driven during the challenge).

If the challenge has not yet started, the service will return a HTTP 204 (no body) response, along with a Retry-After header containing the date at which the response will be available:

Retry-After: Wed, 21 Oct 2022 07:28:00 GMT

The usersRanked list contains the list of all registered users who have met the requirements for the challenge. These users have a rank, and a score.

The usersNotRanked list contains the list of registered users who have not yet met the requirements, but who might already have started accumulating challenge data. The users do not have a score yet, but their number of trips and distance driven are returned in order to evaluate their progress.

If the challenge only concerns a specific group (or groups), then the service also accepts a group request parameter to retrieve the rankings for a single group. If no value is provided, then the global ranking is returned.

If you have your admin API key, you can try the API via this .


Response

The table below summarizes the elements included in the ChallengeRankingsResponse object.

Field
Type
Description

challengeId

string

Unique identifier of the challenge

group

string

If present, indicates that the rankings are specific for this group label

conditions

Conditions that need to be filled for a user to be ranked

registeredUsers

int

Total number of users registered to the challenge

rankedUsers

int

Total number of users ranked in the challenge

totalDistance

int

Total distance driven by the users for the challenge

totalNumberTrips

int

Total number of trips made by the users for the challenge

usersNotRanked

array[object]

usersRanked

array[object]

ChallengeConditions

The table below summarizes the elements included in the ChallengeConditions object.

Field
Type
Description

km

int

Minimum distance required to be ranked (in km)

nbTrip

int

Minimum number of trips required to be ranked

UserNotRanked

The table below summarizes the elements included in the UserNotRanked object.

Field
Type
Description

username

string

Unique identifier of the user

firstname

string

First name of the user

lastname

string

Last name of the user

registerDate

string

Date at which the user entered the challenge Date format: YYYY-MM-ddโ€™Tโ€™HH:mm:ss.SSSZ

numberTrips

int

Number of trips since the user registered to the challenge

distance

int

Distance since the user registered to the challenge

UserRanked

The table below summarizes the elements included in the UserRanked object.

Field
Type
Description

username

string

Unique identifier of the user

firstname

string

First name of the user

lastname

string

Last name of the user

registerDate

string

Date at which the user entered the challenge Date format: YYYY-MM-ddโ€™Tโ€™HH:mm:ss.SSSZ

numberTrips

int

Number of trips since the user registered to the challenge

distance

int

Distance since the user registered to the challenge

rank

int

Current rank of the user

score

double

Score of the user during the challenge

List of users not ranked in the challenge (see )

List of users ranked in the challenge (see )

ChallengeConditions
UserNotRanked
UserRanked
link

List all ranked users

get
Authorizations
Path parameters
challengeIdstringRequired

Unique identifier of the challenge

Query parameters
groupstringOptional

For SINGLE_GROUP and MULTIPLE_GROUPS challenge only: if specified, get the rankings for this specific group label only

Header parameters
DriveKit-Admin-API-KeystringRequired

Drivekit Admin API key

Responses
200
OK
application/json
204
Ranking not yet computed
400
Not applicable for challenge
application/json
401
Unauthorized
application/json
404
Not Found
application/json
get
GET /v3/drivekit/admin/challenges/{challengeId}/rankings HTTP/1.1
Host: service.drivequant.com
DriveKit-Admin-API-Key: text
Accept: */*
{
  "challengeId": "text",
  "group": "text",
  "conditions": {
    "km": 1,
    "nbTrip": 1
  },
  "registeredUsers": 1,
  "rankedUsers": 1,
  "totalDistance": 1,
  "totalNumberTrips": 1,
  "usersRanked": [
    {
      "username": "text",
      "firstname": "text",
      "lastname": "text",
      "registerDate": "2025-05-09T05:00:45.367Z",
      "numberTrips": 1,
      "distance": 1
    },
    {
      "rank": 1,
      "score": 1
    }
  ],
  "usersNotRanked": [
    {
      "username": "text",
      "firstname": "text",
      "lastname": "text",
      "registerDate": "2025-05-09T05:00:45.367Z"
    },
    {
      "numberTrips": 1,
      "distance": 1
    }
  ]
}
  • GETList all ranked users
  • Response
  • ChallengeConditions
  • UserNotRanked
  • UserRanked