POST api/Teams?tournamentId={tournamentId}&teamNumber={teamNumber}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
tournamentId

integer

Required

teamNumber

integer

None.

Body Parameters

TeamMember
NameDescriptionTypeAdditional information
Person

Gets or sets the person data.

PersonKeyData

None.

Club

Gets or sets information about the club the player represents at the tournament.

Club

None.

Id

Gets or sets the database identifier of the team member.

integer

None.

PersonalAssociation

Gets or sets the association of the individual.

Association

None.

TeamPosition

Gets or sets the position within the team.

Position

None.

RoundRobinLosses

Gets or sets the round robin losses for the individual player.

integer

None.

RoundRobinRanking

Gets or sets the round robin ranking.

integer

None.

RoundRobinWins

Gets or sets the round robin wins for the individual player.

integer

None.

Skip

Gets or sets a value indicating whether the player is the skip for the team.

boolean

None.

TournamentLosses

Gets or sets the number of losses in the tournament for the individual player.

integer

None.

TournamentRanking

Gets or sets the tournament ranking.

integer

None.

TournamentWins

Gets or sets the tournament wins for the individual player.

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Person": {
    "FirstName": "sample string 1",
    "Initial": "sample string 2",
    "PersonId": 3,
    "SurName": "sample string 4",
    "Links": []
  },
  "Club": {
    "Id": 1,
    "Name": "sample string 2",
    "AssociationData": {
      "AssociationId": 1,
      "Code": "sample string 2",
      "Name": "sample string 3",
      "FlagFileName": "sample string 4",
      "FlagFileX": 1,
      "FlagFileY": 1,
      "StartDate": "2017-06-24T18:53:57.7950973+00:00",
      "EndDate": "2017-06-24T18:53:57.7950973+00:00",
      "OfficialName": "sample string 5",
      "Links": []
    }
  },
  "Id": 1,
  "PersonalAssociation": {
    "AssociationId": 1,
    "Code": "sample string 2",
    "Name": "sample string 3",
    "FlagFileName": "sample string 4",
    "FlagFileX": 1,
    "FlagFileY": 1,
    "StartDate": "2017-06-24T18:53:57.7950973+00:00",
    "EndDate": "2017-06-24T18:53:57.7950973+00:00",
    "OfficialName": "sample string 5",
    "Links": []
  },
  "TeamPosition": {
    "Number": 1,
    "Name": "sample string 2",
    "IsSkip": true,
    "IsPlayer": true,
    "ShortName": "sample string 5"
  },
  "RoundRobinLosses": 2,
  "RoundRobinRanking": 3,
  "RoundRobinWins": 4,
  "Skip": true,
  "TournamentLosses": 6,
  "TournamentRanking": 7,
  "TournamentWins": 8
}

application/xml, text/xml

Sample:
<TeamMember xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://worldcurling.org/statistics/data/teammember">
  <Club xmlns:d2p1="http://worldcurling.org/statistics/data/club">
    <d2p1:AssociationData 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-06-24T18:53:57.7950973+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-06-24T18:53:57.7950973+00:00</d3p1:StartDate>
    </d2p1:AssociationData>
    <d2p1:Id>1</d2p1:Id>
    <d2p1:Name>sample string 2</d2p1:Name>
  </Club>
  <Id>1</Id>
  <Person xmlns:d2p1="http://worldcurling.org/statistics/data/personkeydata">
    <Links xmlns:d3p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
    <d2p1:FirstName>sample string 1</d2p1:FirstName>
    <d2p1:Initial>sample string 2</d2p1:Initial>
    <d2p1:PersonId>3</d2p1:PersonId>
    <d2p1:SurName>sample string 4</d2p1:SurName>
  </Person>
  <PersonalAssociation xmlns:d2p1="http://worldcurling.org/statistics/data/association">
    <Links xmlns:d3p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
    <d2p1:AssociationId>1</d2p1:AssociationId>
    <d2p1:Code>sample string 2</d2p1:Code>
    <d2p1:EndDate>2017-06-24T18:53:57.7950973+00:00</d2p1:EndDate>
    <d2p1:FlagFileName>sample string 4</d2p1:FlagFileName>
    <d2p1:FlagFileX>1</d2p1:FlagFileX>
    <d2p1:FlagFileY>1</d2p1:FlagFileY>
    <d2p1:Name>sample string 3</d2p1:Name>
    <d2p1:OfficialName>sample string 5</d2p1:OfficialName>
    <d2p1:StartDate>2017-06-24T18:53:57.7950973+00:00</d2p1:StartDate>
  </PersonalAssociation>
  <RoundRobinLosses>2</RoundRobinLosses>
  <RoundRobinRanking>3</RoundRobinRanking>
  <RoundRobinWins>4</RoundRobinWins>
  <Skip>true</Skip>
  <TeamPosition xmlns:d2p1="http://worldcurling.org/statistics/data/position">
    <d2p1:IsPlayer>true</d2p1:IsPlayer>
    <d2p1:IsSkip>true</d2p1:IsSkip>
    <d2p1:Name>sample string 2</d2p1:Name>
    <d2p1:Number>1</d2p1:Number>
    <d2p1:ShortName>sample string 5</d2p1:ShortName>
  </TeamPosition>
  <TournamentLosses>6</TournamentLosses>
  <TournamentRanking>7</TournamentRanking>
  <TournamentWins>8</TournamentWins>
</TeamMember>

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.