Skip to content

Update a match (v1)

POST/v1/matches/{matchId}

POST
/v1/matches/{matchId}
curl --request POST \
--url https://api.ligr.live/rest/v1/matches/1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "venueId": 1, "competitionId": 1, "date": "2026-04-15T12:00:00Z", "homeTeamId": 1, "awayTeamId": 1 }'

Update an existing match. Changing competitionId on a tennis match is not supported in v1; use v2 instead.

matchId
required

Entity identifier

integer format: int32
>= 1

The match properties to update

Media typeapplication/json
object
name

Match name

string
>= 5 characters <= 42 characters
venueId

Entity identifier

integer format: int32
>= 1
competitionId

Entity identifier

integer format: int32
>= 1
date
string format: date-time
homeTeamId

Entity identifier

integer format: int32
>= 1
awayTeamId

Entity identifier

integer format: int32
>= 1
Examplegenerated
{
"name": "example",
"venueId": 1,
"competitionId": 1,
"date": "2026-04-15T12:00:00Z",
"homeTeamId": 1,
"awayTeamId": 1
}

No content

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"
}