POST api/Cyclist/SavePreference

Saves a key value pair entry for this cyclist, which can be used to store user preferences

Request Information

URI Parameters

None.

Body Parameters

CyclistPreference
NameDescriptionTypeAdditional information
CyclistID

integer

None.

Key

string

None.

Value

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CyclistID": 1,
  "Key": "sample string 2",
  "Value": "sample string 3"
}

application/xml, text/xml

Sample:
<CyclistPreference xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Hub.Server.Models.DTO">
  <CyclistID>1</CyclistID>
  <Key>sample string 2</Key>
  <Value>sample string 3</Value>
</CyclistPreference>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CyclistPreference
NameDescriptionTypeAdditional information
CyclistID

integer

None.

Key

string

None.

Value

string

None.

Response Formats

application/json, text/json

Sample:
{
  "CyclistID": 1,
  "Key": "sample string 2",
  "Value": "sample string 3"
}

application/xml, text/xml

Sample:
<CyclistPreference xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Hub.Server.Models.DTO">
  <CyclistID>1</CyclistID>
  <Key>sample string 2</Key>
  <Value>sample string 3</Value>
</CyclistPreference>