POST api/Clubs

Request Information

URI Parameters

None.

Body Parameters

Club
NameDescriptionTypeAdditional information
Id

Gets or sets the id.

integer

None.

Name

Gets or sets the name of the club.

string

Required

AssociationData

Gets or sets the association to which the club belongs

Association

None.

Request Formats

application/json, text/json

Sample:
{
  "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-12-12T15:51:16.0838553+00:00",
    "EndDate": "2017-12-12T15:51:16.0838553+00:00",
    "OfficialName": "sample string 5",
    "Links": []
  }
}

application/xml, text/xml

Sample:
<Club xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://worldcurling.org/statistics/data/club">
  <AssociationData 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-12-12T15:51:16.0838553+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-12-12T15:51:16.0838553+00:00</d2p1:StartDate>
  </AssociationData>
  <Id>1</Id>
  <Name>sample string 2</Name>
</Club>

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.