PUT api/Names/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

Name
NameDescriptionTypeAdditional information
EndDate

Gets or sets the end date when this name is valid.

date

None.

Id

Gets or sets the Id of the name record.

integer

None.

StartDate

Gets or sets the start date from which this name is valid

date

None.

FirstName

Gets or sets the first name of the person.

string

None.

Initial

Gets or sets the initial of the person (normally blank). May be up to three characters.

string

None.

PersonId

Gets or sets the Person Id. This is the data key used in the database.

integer

None.

SurName

Gets or sets the surname of the person.

string

Required

Links

Gets the relation links.

Collection of EntityLink

None.

Request Formats

application/json, text/json

Sample:
{
  "EndDate": "2017-03-23T14:16:12.9215517+00:00",
  "Id": 1,
  "StartDate": "2017-03-23T14:16:12.9215517+00:00",
  "FirstName": "sample string 2",
  "Initial": "sample string 3",
  "PersonId": 4,
  "SurName": "sample string 5",
  "Links": []
}

application/xml, text/xml

Sample:
<Name xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://worldcurling.org/statistics/data/name">
  <Links xmlns:d2p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
  <FirstName xmlns="http://worldcurling.org/statistics/data/personkeydata">sample string 2</FirstName>
  <Initial xmlns="http://worldcurling.org/statistics/data/personkeydata">sample string 3</Initial>
  <PersonId xmlns="http://worldcurling.org/statistics/data/personkeydata">4</PersonId>
  <SurName xmlns="http://worldcurling.org/statistics/data/personkeydata">sample string 5</SurName>
  <EndDate>2017-03-23T14:16:12.9215517+00:00</EndDate>
  <Id>1</Id>
  <StartDate>2017-03-23T14:16:12.9215517+00:00</StartDate>
</Name>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.