PUT api/Games/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

Game
NameDescriptionTypeAdditional information
Id

Gets or sets the id of the game.

integer

None.

TournamentId

Gets or sets the tournament id where the game was played.

integer

None.

GroupInformation

Gets or sets the group id of the game.

Group

None.

Round

Gets or sets the round.

DrawType

None.

TossWinner

Gets or sets the toss winner.

integer

None.

DrawInfo

Gets or sets the draw info.

Draw

None.

Sheet

Gets or sets the sheet where the game was played (if recorded).

integer

None.

Team1

Gets or sets the information about team 1.

GameTeamInfo

None.

Team2

Gets or sets the information about team 2.

GameTeamInfo

None.

Ends

Gets or sets the end-by-end results of the game.

Collection of End

None.

PlayoffGameNumber

Gets or sets the playoff game number.

integer

None.

OdfId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "TournamentId": 2,
  "GroupInformation": {
    "Id": 1,
    "Name": "sample string 2"
  },
  "Round": {
    "Id": 1,
    "DrawNumber": 2,
    "Name": "sample string 3",
    "GameType": 0,
    "Abbreviation": "sample string 4",
    "OdfId": "sample string 5"
  },
  "TossWinner": 1,
  "DrawInfo": {
    "Id": 1,
    "TournamentId": 2,
    "GameStart": "2017-03-19T15:11:17.382764+00:00",
    "DrawNumber": 4,
    "OdfId": "sample string 5"
  },
  "Sheet": 1,
  "Team1": {
    "Team": {
      "AssociationId": 1,
      "Code": "sample string 2",
      "Name": "sample string 3",
      "FlagFileName": "sample string 4",
      "FlagFileX": 1,
      "FlagFileY": 1,
      "StartDate": "2017-03-19T15:11:17.382764+00:00",
      "EndDate": "2017-03-19T15:11:17.382764+00:00",
      "OfficialName": "sample string 5",
      "Links": []
    },
    "Result": 1,
    "LeftOnClock": "00:00:00.1234567",
    "Percentage": 1.0,
    "TeamNumber": 1,
    "LastShotDraw": 1.0,
    "Participants": [
      {
        "Id": 1,
        "Person": {
          "FirstName": "sample string 1",
          "Initial": "sample string 2",
          "PersonId": 3,
          "SurName": "sample string 4",
          "Links": []
        },
        "PlayerPosition": {
          "Number": 1,
          "Name": "sample string 2",
          "IsSkip": true,
          "IsPlayer": true,
          "ShortName": "sample string 5"
        },
        "PlayedStones": 1,
        "Points": 1,
        "Score": 1.0,
        "Skip": true
      },
      {
        "Id": 1,
        "Person": {
          "FirstName": "sample string 1",
          "Initial": "sample string 2",
          "PersonId": 3,
          "SurName": "sample string 4",
          "Links": []
        },
        "PlayerPosition": {
          "Number": 1,
          "Name": "sample string 2",
          "IsSkip": true,
          "IsPlayer": true,
          "ShortName": "sample string 5"
        },
        "PlayedStones": 1,
        "Points": 1,
        "Score": 1.0,
        "Skip": true
      }
    ]
  },
  "Team2": {
    "Team": {
      "AssociationId": 1,
      "Code": "sample string 2",
      "Name": "sample string 3",
      "FlagFileName": "sample string 4",
      "FlagFileX": 1,
      "FlagFileY": 1,
      "StartDate": "2017-03-19T15:11:17.382764+00:00",
      "EndDate": "2017-03-19T15:11:17.382764+00:00",
      "OfficialName": "sample string 5",
      "Links": []
    },
    "Result": 1,
    "LeftOnClock": "00:00:00.1234567",
    "Percentage": 1.0,
    "TeamNumber": 1,
    "LastShotDraw": 1.0,
    "Participants": [
      {
        "Id": 1,
        "Person": {
          "FirstName": "sample string 1",
          "Initial": "sample string 2",
          "PersonId": 3,
          "SurName": "sample string 4",
          "Links": []
        },
        "PlayerPosition": {
          "Number": 1,
          "Name": "sample string 2",
          "IsSkip": true,
          "IsPlayer": true,
          "ShortName": "sample string 5"
        },
        "PlayedStones": 1,
        "Points": 1,
        "Score": 1.0,
        "Skip": true
      },
      {
        "Id": 1,
        "Person": {
          "FirstName": "sample string 1",
          "Initial": "sample string 2",
          "PersonId": 3,
          "SurName": "sample string 4",
          "Links": []
        },
        "PlayerPosition": {
          "Number": 1,
          "Name": "sample string 2",
          "IsSkip": true,
          "IsPlayer": true,
          "ShortName": "sample string 5"
        },
        "PlayedStones": 1,
        "Points": 1,
        "Score": 1.0,
        "Skip": true
      }
    ]
  },
  "Ends": [
    {
      "Id": 1,
      "GameId": 2,
      "EndNumber": 3,
      "Team1": 4,
      "Team2": 5
    },
    {
      "Id": 1,
      "GameId": 2,
      "EndNumber": 3,
      "Team1": 4,
      "Team2": 5
    }
  ],
  "PlayoffGameNumber": 1,
  "OdfId": "sample string 3"
}

application/xml, text/xml

Sample:
<Game xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://worldcurling.org/statistics/data/game">
  <DrawInfo xmlns:d2p1="http://worldcurling.org/statistics/data/draw">
    <d2p1:DrawNumber>4</d2p1:DrawNumber>
    <d2p1:GameStart>2017-03-19T15:11:17.382764+00:00</d2p1:GameStart>
    <d2p1:Id>1</d2p1:Id>
    <d2p1:OdfId>sample string 5</d2p1:OdfId>
    <d2p1:TournamentId>2</d2p1:TournamentId>
  </DrawInfo>
  <Ends xmlns:d2p1="http://worldcurling.org/statistics/data/end">
    <d2p1:End>
      <d2p1:EndNumber>3</d2p1:EndNumber>
      <d2p1:GameId>2</d2p1:GameId>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Team1>4</d2p1:Team1>
      <d2p1:Team2>5</d2p1:Team2>
    </d2p1:End>
    <d2p1:End>
      <d2p1:EndNumber>3</d2p1:EndNumber>
      <d2p1:GameId>2</d2p1:GameId>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Team1>4</d2p1:Team1>
      <d2p1:Team2>5</d2p1:Team2>
    </d2p1:End>
  </Ends>
  <GroupInformation xmlns:d2p1="http://worldcurling.org/statistics/data/group">
    <d2p1:Id>1</d2p1:Id>
    <d2p1:Name>sample string 2</d2p1:Name>
  </GroupInformation>
  <Id>1</Id>
  <OdfId>sample string 3</OdfId>
  <PlayoffGameNumber>1</PlayoffGameNumber>
  <Round xmlns:d2p1="http://worldcurling.org/statistics/data/drawtype">
    <d2p1:Abbreviation>sample string 4</d2p1:Abbreviation>
    <d2p1:DrawNumber>2</d2p1:DrawNumber>
    <d2p1:GameType>Roundrobin</d2p1:GameType>
    <d2p1:Id>1</d2p1:Id>
    <d2p1:Name>sample string 3</d2p1:Name>
    <d2p1:OdfId>sample string 5</d2p1:OdfId>
  </Round>
  <Sheet>1</Sheet>
  <Team1 xmlns:d2p1="http://worldcurling.org/statistics/data/gameteaminfo">
    <d2p1:LastShotDraw>1</d2p1:LastShotDraw>
    <d2p1:LeftOnClock>PT0.1234567S</d2p1:LeftOnClock>
    <d2p1:Participants xmlns:d3p1="http://worldcurling.org/statistics/data/participant">
      <d3p1:Participant>
        <d3p1:Id>1</d3p1:Id>
        <d3p1:Person xmlns:d5p1="http://worldcurling.org/statistics/data/personkeydata">
          <Links xmlns:d6p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
          <d5p1:FirstName>sample string 1</d5p1:FirstName>
          <d5p1:Initial>sample string 2</d5p1:Initial>
          <d5p1:PersonId>3</d5p1:PersonId>
          <d5p1:SurName>sample string 4</d5p1:SurName>
        </d3p1:Person>
        <d3p1:PlayedStones>1</d3p1:PlayedStones>
        <d3p1:PlayerPosition xmlns:d5p1="http://worldcurling.org/statistics/data/position">
          <d5p1:IsPlayer>true</d5p1:IsPlayer>
          <d5p1:IsSkip>true</d5p1:IsSkip>
          <d5p1:Name>sample string 2</d5p1:Name>
          <d5p1:Number>1</d5p1:Number>
          <d5p1:ShortName>sample string 5</d5p1:ShortName>
        </d3p1:PlayerPosition>
        <d3p1:Points>1</d3p1:Points>
        <d3p1:Score>1</d3p1:Score>
        <d3p1:Skip>true</d3p1:Skip>
      </d3p1:Participant>
      <d3p1:Participant>
        <d3p1:Id>1</d3p1:Id>
        <d3p1:Person xmlns:d5p1="http://worldcurling.org/statistics/data/personkeydata">
          <Links xmlns:d6p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
          <d5p1:FirstName>sample string 1</d5p1:FirstName>
          <d5p1:Initial>sample string 2</d5p1:Initial>
          <d5p1:PersonId>3</d5p1:PersonId>
          <d5p1:SurName>sample string 4</d5p1:SurName>
        </d3p1:Person>
        <d3p1:PlayedStones>1</d3p1:PlayedStones>
        <d3p1:PlayerPosition xmlns:d5p1="http://worldcurling.org/statistics/data/position">
          <d5p1:IsPlayer>true</d5p1:IsPlayer>
          <d5p1:IsSkip>true</d5p1:IsSkip>
          <d5p1:Name>sample string 2</d5p1:Name>
          <d5p1:Number>1</d5p1:Number>
          <d5p1:ShortName>sample string 5</d5p1:ShortName>
        </d3p1:PlayerPosition>
        <d3p1:Points>1</d3p1:Points>
        <d3p1:Score>1</d3p1:Score>
        <d3p1:Skip>true</d3p1:Skip>
      </d3p1:Participant>
    </d2p1:Participants>
    <d2p1:Percentage>1</d2p1:Percentage>
    <d2p1:Result>1</d2p1:Result>
    <d2p1:Team xmlns:d3p1="http://worldcurling.org/statistics/data/association">
      <Links xmlns:d4p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
      <d3p1:AssociationId>1</d3p1:AssociationId>
      <d3p1:Code>sample string 2</d3p1:Code>
      <d3p1:EndDate>2017-03-19T15:11:17.382764+00:00</d3p1:EndDate>
      <d3p1:FlagFileName>sample string 4</d3p1:FlagFileName>
      <d3p1:FlagFileX>1</d3p1:FlagFileX>
      <d3p1:FlagFileY>1</d3p1:FlagFileY>
      <d3p1:Name>sample string 3</d3p1:Name>
      <d3p1:OfficialName>sample string 5</d3p1:OfficialName>
      <d3p1:StartDate>2017-03-19T15:11:17.382764+00:00</d3p1:StartDate>
    </d2p1:Team>
    <d2p1:TeamNumber>1</d2p1:TeamNumber>
  </Team1>
  <Team2 xmlns:d2p1="http://worldcurling.org/statistics/data/gameteaminfo">
    <d2p1:LastShotDraw>1</d2p1:LastShotDraw>
    <d2p1:LeftOnClock>PT0.1234567S</d2p1:LeftOnClock>
    <d2p1:Participants xmlns:d3p1="http://worldcurling.org/statistics/data/participant">
      <d3p1:Participant>
        <d3p1:Id>1</d3p1:Id>
        <d3p1:Person xmlns:d5p1="http://worldcurling.org/statistics/data/personkeydata">
          <Links xmlns:d6p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
          <d5p1:FirstName>sample string 1</d5p1:FirstName>
          <d5p1:Initial>sample string 2</d5p1:Initial>
          <d5p1:PersonId>3</d5p1:PersonId>
          <d5p1:SurName>sample string 4</d5p1:SurName>
        </d3p1:Person>
        <d3p1:PlayedStones>1</d3p1:PlayedStones>
        <d3p1:PlayerPosition xmlns:d5p1="http://worldcurling.org/statistics/data/position">
          <d5p1:IsPlayer>true</d5p1:IsPlayer>
          <d5p1:IsSkip>true</d5p1:IsSkip>
          <d5p1:Name>sample string 2</d5p1:Name>
          <d5p1:Number>1</d5p1:Number>
          <d5p1:ShortName>sample string 5</d5p1:ShortName>
        </d3p1:PlayerPosition>
        <d3p1:Points>1</d3p1:Points>
        <d3p1:Score>1</d3p1:Score>
        <d3p1:Skip>true</d3p1:Skip>
      </d3p1:Participant>
      <d3p1:Participant>
        <d3p1:Id>1</d3p1:Id>
        <d3p1:Person xmlns:d5p1="http://worldcurling.org/statistics/data/personkeydata">
          <Links xmlns:d6p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
          <d5p1:FirstName>sample string 1</d5p1:FirstName>
          <d5p1:Initial>sample string 2</d5p1:Initial>
          <d5p1:PersonId>3</d5p1:PersonId>
          <d5p1:SurName>sample string 4</d5p1:SurName>
        </d3p1:Person>
        <d3p1:PlayedStones>1</d3p1:PlayedStones>
        <d3p1:PlayerPosition xmlns:d5p1="http://worldcurling.org/statistics/data/position">
          <d5p1:IsPlayer>true</d5p1:IsPlayer>
          <d5p1:IsSkip>true</d5p1:IsSkip>
          <d5p1:Name>sample string 2</d5p1:Name>
          <d5p1:Number>1</d5p1:Number>
          <d5p1:ShortName>sample string 5</d5p1:ShortName>
        </d3p1:PlayerPosition>
        <d3p1:Points>1</d3p1:Points>
        <d3p1:Score>1</d3p1:Score>
        <d3p1:Skip>true</d3p1:Skip>
      </d3p1:Participant>
    </d2p1:Participants>
    <d2p1:Percentage>1</d2p1:Percentage>
    <d2p1:Result>1</d2p1:Result>
    <d2p1:Team xmlns:d3p1="http://worldcurling.org/statistics/data/association">
      <Links xmlns:d4p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
      <d3p1:AssociationId>1</d3p1:AssociationId>
      <d3p1:Code>sample string 2</d3p1:Code>
      <d3p1:EndDate>2017-03-19T15:11:17.382764+00:00</d3p1:EndDate>
      <d3p1:FlagFileName>sample string 4</d3p1:FlagFileName>
      <d3p1:FlagFileX>1</d3p1:FlagFileX>
      <d3p1:FlagFileY>1</d3p1:FlagFileY>
      <d3p1:Name>sample string 3</d3p1:Name>
      <d3p1:OfficialName>sample string 5</d3p1:OfficialName>
      <d3p1:StartDate>2017-03-19T15:11:17.382764+00:00</d3p1:StartDate>
    </d2p1:Team>
    <d2p1:TeamNumber>1</d2p1:TeamNumber>
  </Team2>
  <TossWinner>1</TossWinner>
  <TournamentId>2</TournamentId>
</Game>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.