Skip to content

Match Rounds

POST
/server/v1/matches/{matchId}/rounds
curl --request POST \
--url https://example.com/server/v1/matches/1/rounds \
--header 'Content-Type: application/json' \
--data '{ "wins": { "additionalProperty": 1 } }'

Rounds won per team, sent each time a round is decided.

Body: {"wins": {"<team name>": <rounds won>, ...}}. Each report replaces the last, so a lost one is covered by the next.

matchId
required
Matchid
integer
Media typeapplication/json
RoundWinsReport

POST /matches/{matchId}/rounds. Each report replaces the last, so a lost one is covered by the next.

object
wins
required
Wins

Team name -> rounds won

object
key
additional properties
integer
Examplegenerated
{
"wins": {
"additionalProperty": 1
}
}

Successful Response

Media typeapplication/json
Status

What a write answers. status says which of the two things happened, so a retried write can be told apart from a first one.

object
status
required
Status
string
matchId
Any of:
integer
Examplegenerated
{
"status": "example",
"matchId": 1
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}