PUT api/Games/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

GameDTO
NameDescriptionTypeAdditional information
ID

integer

None.

Title

string

None.

Note

string

None.

Start

date

None.

End

date

None.

BookingCourtID

integer

None.

Player1

PlayerDTO

None.

Player2

PlayerDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Title": "sample string 2",
  "Note": "sample string 3",
  "Start": "2025-04-28T15:39:59.7170891+02:00",
  "End": "2025-04-28T15:39:59.7170891+02:00",
  "BookingCourtID": 6,
  "Player1": {
    "Id": 1,
    "UserId": "sample string 2",
    "Strength": "sample string 3",
    "MatchingAll": true,
    "ELO": 5,
    "ELODouble": 6,
    "Picture": "QEA=",
    "User": {
      "ID": "sample string 1",
      "Email": "sample string 2",
      "Username": "sample string 3",
      "Firstname": "sample string 4",
      "Lastname": "sample string 5"
    }
  },
  "Player2": {
    "Id": 1,
    "UserId": "sample string 2",
    "Strength": "sample string 3",
    "MatchingAll": true,
    "ELO": 5,
    "ELODouble": 6,
    "Picture": "QEA=",
    "User": {
      "ID": "sample string 1",
      "Email": "sample string 2",
      "Username": "sample string 3",
      "Firstname": "sample string 4",
      "Lastname": "sample string 5"
    }
  }
}

application/xml, text/xml

Sample:
<GameDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GRUBER.Tennis.App.Server.DTOs">
  <BookingCourtID>6</BookingCourtID>
  <End>2025-04-28T15:39:59.7170891+02:00</End>
  <ID>1</ID>
  <Note>sample string 3</Note>
  <Player1>
    <ELO>5</ELO>
    <ELODouble>6</ELODouble>
    <Id>1</Id>
    <MatchingAll>true</MatchingAll>
    <Picture>QEA=</Picture>
    <Strength>sample string 3</Strength>
    <User>
      <Email>sample string 2</Email>
      <Firstname>sample string 4</Firstname>
      <ID>sample string 1</ID>
      <Lastname>sample string 5</Lastname>
      <Username>sample string 3</Username>
    </User>
    <UserId>sample string 2</UserId>
  </Player1>
  <Player2>
    <ELO>5</ELO>
    <ELODouble>6</ELODouble>
    <Id>1</Id>
    <MatchingAll>true</MatchingAll>
    <Picture>QEA=</Picture>
    <Strength>sample string 3</Strength>
    <User>
      <Email>sample string 2</Email>
      <Firstname>sample string 4</Firstname>
      <ID>sample string 1</ID>
      <Lastname>sample string 5</Lastname>
      <Username>sample string 3</Username>
    </User>
    <UserId>sample string 2</UserId>
  </Player2>
  <Start>2025-04-28T15:39:59.7170891+02:00</Start>
  <Title>sample string 2</Title>
</GameDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.