Match Rounds
POST
/server/v1/matches/{matchId}/rounds
const url = 'https://example.com/server/v1/matches/1/rounds';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"wins":{"additionalProperty":1}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”matchId
required
Matchid
integer
Request Bodyrequired
Section titled “Request Bodyrequired”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 }}Responses
Section titled “Responses”Successful Response
Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
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": {} } ]}