POST api/Associations

Request Information

URI Parameters

None.

Body Parameters

Association
NameDescriptionTypeAdditional information
AssociationId

integer

None.

Code

string

Required

String length: inclusive between 0 and 3

Name

string

Required

FlagFileName

string

None.

FlagFileX

integer

None.

FlagFileY

integer

None.

StartDate

date

Data type: Date

EndDate

date

Data type: Date

OfficialName

string

None.

Links

Collection of EntityLink

None.

Request Formats

application/json, text/json

Sample:
{
  "AssociationId": 1,
  "Code": "sample string 2",
  "Name": "sample string 3",
  "FlagFileName": "sample string 4",
  "FlagFileX": 1,
  "FlagFileY": 1,
  "StartDate": "2019-09-20T17:16:48.4172989+00:00",
  "EndDate": "2019-09-20T17:16:48.4172989+00:00",
  "OfficialName": "sample string 5",
  "Links": []
}

application/xml, text/xml

Sample:
<Association xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://worldcurling.org/statistics/data/association">
  <Links xmlns:d2p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
  <AssociationId>1</AssociationId>
  <Code>sample string 2</Code>
  <EndDate>2019-09-20T17:16:48.4172989+00:00</EndDate>
  <FlagFileName>sample string 4</FlagFileName>
  <FlagFileX>1</FlagFileX>
  <FlagFileY>1</FlagFileY>
  <Name>sample string 3</Name>
  <OfficialName>sample string 5</OfficialName>
  <StartDate>2019-09-20T17:16:48.4172989+00:00</StartDate>
</Association>

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.