Skip to content

Update a fact

POST/v2/matches/{matchId}/facts/{factId}

POST
/v2/matches/{matchId}/facts/{factId}
curl --request POST \
--url https://api.ligr.live/rest/v2/matches/1/facts/1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "teamId": 1, "playerId": 1, "clockAtDate": "example", "date": "example", "data": "example", "tags": [ "example" ], "meta": "example" }'

Update an existing fact for a match.

matchId
required

Entity identifier

integer format: int32
>= 1

The match identifier

factId
required

Entity identifier

integer format: int32
>= 1

The fact identifier

Media typeapplication/json
object
name
string
teamId
integer format: int32
nullable
playerId
integer format: int32
nullable
clockAtDate

Format mm:ss

string
date
string
data

Sport-specific detail of the event. Replaces the stored value. Send null to clear it.

tags
Array<string>
meta

Free-form metadata that travels with the fact. Replaces the stored value. Send null to clear it.

Examplegenerated
{
"name": "example",
"teamId": 1,
"playerId": 1,
"clockAtDate": "example",
"date": "example",
"data": "example",
"tags": [
"example"
],
"meta": "example"
}

Ok

Media typeapplication/json
object
id
required

Entity identifier

integer format: int32
>= 1
matchId
required

Entity identifier

integer format: int32
>= 1
name
required
string
periodNumber
required
number format: double
createdAt
required
string
Examplegenerated
{
"id": 1,
"matchId": 1,
"name": "example",
"periodNumber": 1,
"createdAt": "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 or fact 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"
}