POST api/Games

Request Information

URI Parameters

None.

Body Parameters

Game
NameDescriptionTypeAdditional information
Id

integer

None.

TournamentId

integer

None.

GroupInformation

Group

None.

Round

DrawType

None.

TossWinner

integer

None.

DrawInfo

Draw

None.

Sheet

integer

None.

Team1

GameTeamInfo

None.

Team2

GameTeamInfo

None.

Ends

Collection of End

None.

PlayoffGameNumber

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": "2019-09-20T17:18:43.916659+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": "2019-09-20T17:18:43.916659+00:00",
      "EndDate": "2019-09-20T17:18:43.916659+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": "2019-09-20T17:18:43.916659+00:00",
      "EndDate": "2019-09-20T17:18:43.916659+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>2019-09-20T17:18:43.916659+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>2019-09-20T17:18:43.916659+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>2019-09-20T17:18:43.916659+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>2019-09-20T17:18:43.916659+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>2019-09-20T17:18:43.916659+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

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.