POST api/NationalCoaches

Request Information

URI Parameters

None.

Body Parameters

NationalCoach
NameDescriptionTypeAdditional information
Id

Gets or sets the id.

integer

None.

AssociationData

Gets or sets the association to which the club belongs

Association

None.

Person

Gets or sets the person information.

PersonKeyData

None.

StartYear

Gets or sets the start date.

integer

None.

EndYear

Gets or sets the end date.

integer

None.

Type

Gets or sets the coach type.

CoachType

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "AssociationData": {
    "AssociationId": 1,
    "Code": "sample string 2",
    "Name": "sample string 3",
    "FlagFileName": "sample string 4",
    "FlagFileX": 1,
    "FlagFileY": 1,
    "StartDate": "2017-05-21T11:03:22.5443017+00:00",
    "EndDate": "2017-05-21T11:03:22.5443017+00:00",
    "OfficialName": "sample string 5",
    "Links": []
  },
  "Person": {
    "FirstName": "sample string 1",
    "Initial": "sample string 2",
    "PersonId": 3,
    "SurName": "sample string 4",
    "Links": []
  },
  "StartYear": 1,
  "EndYear": 1,
  "Type": {
    "Id": 1,
    "Name": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<NationalCoach xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://worldcurling.org/statistics/data/nationalcoach">
  <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-05-21T11:03:22.5443017+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-05-21T11:03:22.5443017+00:00</d2p1:StartDate>
  </AssociationData>
  <EndYear>1</EndYear>
  <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>
  <StartYear>1</StartYear>
  <Type xmlns:d2p1="http://worldcurling.org/statistics/data/coachtype">
    <d2p1:Id>1</d2p1:Id>
    <d2p1:Name>sample string 2</d2p1:Name>
  </Type>
</NationalCoach>

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.