POST api/runner/onboard

Request Information

URI Parameters

None.

Body Parameters

RunnerOnboardRequest
NameDescriptionTypeAdditional information
HomeCityId

integer

None.

TransportTypeId

integer

None.

MaxDistanceKm

decimal number

None.

Bio

string

None.

CoverageCityIds

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "HomeCityId": 1,
  "TransportTypeId": 2,
  "MaxDistanceKm": 1.0,
  "Bio": "sample string 3",
  "CoverageCityIds": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<RunnerOnboardRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RunnerMe.Controllers">
  <Bio>sample string 3</Bio>
  <CoverageCityIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </CoverageCityIds>
  <HomeCityId>1</HomeCityId>
  <MaxDistanceKm>1</MaxDistanceKm>
  <TransportTypeId>2</TransportTypeId>
</RunnerOnboardRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'RunnerOnboardRequest'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.