Skip to content

Decline a League + Knockout invitation

POST
/api/tournaments/{id}/invitation/decline
curl --request POST \
--url https://foxleague.ai/api/tournaments/1/invitation/decline \
--header 'Authorization: Bearer <token>'

Declines your pending invitation. Its seat goes to the next invitation wave and the invitation cannot be accepted any more. An accepted invitation is not declined: leave the tournament with POST /api/tournaments/{id}/leave instead.

Who: a signed-in player.

Refusals:

  • Not registered: the wallet has no player account.
  • You have no pending invitation to this tournament.: no invitation, an invitation already accepted, declined or expired, a tournament that no longer takes entries.
id
required
integer format: int64

The tournament id.

Success or a refusal: read success (the refusals are in the description).

Media type application/json
object
code

A machine-readable reason next to error, set only where the caller must act differently. tx_pending: the payment was not refused but could not be verified yet; keep the transaction hash and confirm again with the same hash, never pay twice.

string | null
data

The answer. Present when success is true.

object
state
required

declined.

string
tournament_id
required

The tournament id.

integer format: int64
error

Why the request was refused, in plain words. Present when success is false.

string | null
success
required

true when the request did what it asked. false is a refusal: read error.

boolean
Example
{
"data": {
"state": "declined",
"tournament_id": 602
},
"success": true
}

No valid session. The body is plain text: Missing Authorization header, Invalid Authorization format, Invalid session token or Session expired or invalid. Sign in again.

Media type text/plain
string
Example
Session expired or invalid