Skip to content

Create a match (v2)

POST/v2/matches

POST
/v2/matches
curl --request POST \
--url https://api.ligr.live/rest/v2/matches \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "venueId": 1, "competitionId": 1, "date": "2026-04-15T12:00:00Z", "competitorsType": "singles", "competitors": [ { "entityId": 1, "entityType": "team", "meta": { "isHome": true } } ] }'

Create a new match for the organization.

Media typeapplication/json
object
name

Match name

string
>= 5 characters <= 42 characters
venueId
required

Entity identifier

integer format: int32
>= 1
competitionId
required

Entity identifier

integer format: int32
>= 1
date
required
string format: date-time
competitorsType
required

The match format: singles, doubles, teams or group. It is one value for the match. Each row in competitors has its own entityType. For example, a doubles match has competitorsType: doubles and four entityType: player rows. A group match has player rows.

string
Allowed values: singles doubles teams group
competitors
required
Array<object>
object
entityId
required

Entity identifier

integer format: int32
>= 1
entityType
required

The kind of one competitor row: team or player. A teams match has team rows. A singles, doubles or group match has player rows.

string
Allowed values: team player
meta
object
isHome
required
boolean
Media typeapplication/json
object
overlays
required
Array<object>
object
name
required
string
key
required

Stringified UUIDv4. See RFC 4112

string
/[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}/
id
required
number format: double
streams
required
Array<object>
object
name
required
string
id
required
number format: double
id
required
number format: double
Examplegenerated
{
"overlays": [
{
"name": "example",
"key": "example",
"id": 1
}
],
"streams": [
{
"name": "example",
"id": 1
}
],
"id": 1
}

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