Competier
  1. invite
Competier
  • api-key
    • Creates and returns a new api key, invalidating the previous one.
      POST
  • ladder
    • Adds a ladder to an account.
      POST
    • Deletes a ladder from an account, including all its entries, ratings and results.
      DELETE
    • Gets ladders of an account.
      GET
  • ladder-entry
    • Adds a self-managed entry to a ladder.
      POST
    • Deletes a ladder-entry from a ladder, including all its ratings and results.
      DELETE
    • Gets ladder entries.
      GET
  • result
    • Adds a game result for a played game.
      POST
    • Deletes a game result by rolling it back, reverting rating changes.
      DELETE
    • Gets game results.
      GET
  • invite
    • Adds an invite.
      POST
    • Accepts an invite.
      PUT
    • Deletes an invite.
      DELETE
    • Gets invites.
      GET
  • account
    • Updates account data.
      PATCH
  • credit
    • Fetches credit info.
      GET
  • matchmaking
  • bulk
  1. invite

Accepts an invite.

PUT
/v1/invite
invite
Accepts an invite, creating a ladder-entry which represents the account calling this route. This action is idempotent since an account can only have one self-representing ladder-entry in a single ladder.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Query Params
code
array[integer]
required
The code of the invite to accept.

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.competier.net/v1/invite?code'

Responses

🟢200OK
application/json
Body
id
number 
read-onlyoptional
References a ladder-entry.
Example:
0
ladderId
integer 
required
id of the ladder that this ladder-entry belongs to.
Example:
0
name
string 
required
The display name for this ladder entry.
Example:
Jane Doe
rating
integer 
optional
Allows manually setting rating, for example when moving already existing ladders with ongoing ratings to Competier. Leave as default otherwise.
Example:
1500
reliabilityDeviation
integer 
optional
For Glicko algorithms: Allows manually setting relaibility deviation, for example when moving already existing ladders with ongoing ratings to Competier. Leave as default otherwise.
Example:
350
accountIds
array[integer]
read-onlyoptional
IDs of accounts represented by this entry. A ladder-entry representing real accounts will be generated in your ladder if those accounts accept invites to your ladder.
Example
{
  "id": 0,
  "ladderId": 0,
  "name": "Jane Doe",
  "rating": 1500,
  "reliabilityDeviation": 350,
  "accountIds": [
    0
  ]
}
🟠400Bad request
🟠401Unauthorized
🟠429Too Many Requests
Previous
Adds an invite.
Next
Deletes an invite.
Built with