Adds an invite to a ladder or tournament. Either ladderId or tournamentId needs to be specified.
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Query Params
ladderId
array[integer]
optional
Id of the ladder to create an invite for.
tournamentId
array[integer]
optional
Id of the tournament to create an invite for. Currently unused.
uses
array[integer]
optional
Amount of uses before this invite expires automatically.
teamInvite
array[integer]
optional
Whether this invite should be a "team invite" where all accounts accepting the same invite act as a single ladder-entry in a competition. This is useful if you intend to rate a team constellation as a whole, instead of each player by themselves. Creating a team invite will simultaneously create the preliminary team-ladder-entry, contrary to normal invites which create ladder-entries upon accepting them instead of creating them.
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 POST 'https://api.competier.net/v1/invite'
Responses
🟢200OK
application/json
Body
code
stringÂ
required
References an invite and forms an invite link for use through the Competier App.
Example:
HHLCdISYcyU=
ladderId
integerÂ
optional
Which ladder this invites to.
Example:
0
tournamentId
integerÂ
optional
Which tournament this invites to.
Example:
0
uses
integerÂ
optional
How many uses are left for this invite (if it's use-limited).
Example:
100
teamLadderEntryId
integerÂ
optional
Which ladder-entry id this invites to. This allows for "team invites" where all accounts accepting the same invite act as a single ladder-entry in a competition. This is useful if you intend to rate a team constellation as a whole, instead of each player by themselves.