Skip to content

Abandon a match

POST/v2/matches/{matchId}/abandon

POST
/v2/matches/{matchId}/abandon
curl --request POST \
--url https://api.ligr.live/rest/v2/matches/1/abandon \
--header 'Authorization: Bearer <token>'

Set the match’s finished status to abandoned.

matchId
required

Entity identifier

integer format: int32
>= 1

The match identifier

Ok

Media typeapplication/json
object
id
required

Entity identifier

integer format: int32
>= 1
finishedStatus
required
string
Examplegenerated
{
"id": 1,
"finishedStatus": "example"
}

Request is invalid

Media typeapplication/json
object
message
required
string
details
required
object
key
additional properties
Examplegenerated
{
"message": "example",
"details": {
"additionalProperty": "example"
}
}

Missing or invalid api key

Media typeapplication/json
object
message
required
string
Examplegenerated
{
"message": "example"
}

Api key provides insufficient access for the request

Media typeapplication/json
object
message
required
string
Examplegenerated
{
"message": "example"
}

Match not found

Media typeapplication/json
object
message
required
string
Examplegenerated
{
"message": "example"
}

Api key has made too many requests

Media typeapplication/json
object
message
required
string
Examplegenerated
{
"message": "example"
}

An unexpected error has occured. If problems persist please contact support

Media typeapplication/json
object
message
required
string
Examplegenerated
{
"message": "example"
}