PUT api/TournamentTypes/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

TournamentType
NameDescriptionTypeAdditional information
Type

Gets or sets the type id of the tournament.

integer

None.

Name

Gets or sets the name of the type.

string

Required

Code

Gets or sets the code.

string

Required

IsActive

Gets or sets a value indicating whether this type is still active.

boolean

None.

ZoneType

Gets or sets the type of the zone.

TournamentZones

None.

Ends

Gets or sets the number of ends this type uses by default.

integer

None.

SortOrder

Gets or sets the sort order to be used when sorting values for display purposes.

integer

None.

Links

Gets the relation links.

Collection of EntityLink

None.

Request Formats

application/json, text/json

Sample:
{
  "Type": 1,
  "Name": "sample string 2",
  "Code": "sample string 3",
  "IsActive": true,
  "ZoneType": 0,
  "Ends": 1,
  "SortOrder": 1,
  "Links": []
}

application/xml, text/xml

Sample:
<TournamentType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://worldcurling.org/statistics/data/tournamenttype">
  <Links xmlns:d2p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
  <Code>sample string 3</Code>
  <Ends>1</Ends>
  <IsActive>true</IsActive>
  <Name>sample string 2</Name>
  <SortOrder>1</SortOrder>
  <Type>1</Type>
  <ZoneType>All</ZoneType>
</TournamentType>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.