Lucra-Owned Tournaments Backend Integration

This requires the Server to Server API Integration, you can check how to implement it here.

Update Users Scores

Update the scores of the users inside a tournament. Can be called with the full list of users or with only the users that need to be updated. Scores can be updated more than once per user during the lifespan of the tournament If the attemptFinished property is passed as true, then the user round will be marked as finished and it will no longer accept new updates (it will fail the request). This is also a requirement to the Replay functionality to allow players to join a tournament more than once, it enables the Join action once again. If it's passed as false it will just update the first available/open score attempt and it will not prevent further updates If, no round complete logic can be implemented, a way to disable this attempt complete check is to pass the omitAttemptCompletedCheck when creating the tournament, thus ignoring the closure of the attempt when a Player tries to join again (this is useful when the scoring attempt logic is fully controlled on the tenant side)

See user.canSubmitNewScore to determine if a user can have a new score submited

PUT | PATCH /api/rest/pool-tournament/${matchupId}/users-scores

{
  "apiKey": "your-Lucra-assigned-api-key", // contact account manager for details
  "object" {
    "userScores": [
      {
        "userId": "user-uuid-string"
        "score": 100, // integer with the score of the user (can be negative)
        "metadataString": "{}",  // JSON string with optional custom metadata
        "attemptFinished": true, // Marks the end of this user round (optional)
      }
    ]
  }
}

Retrieve Existing Tournament Info

Returns the data related a specific tournament ID.

GET /api/rest/pool-tournament/:matchupId?apiKey=your-Lucra-assigned-api-key

Last updated