POST api/Ride

Saves a ride entry: Always make sure that the bike is linked to a ride by setting BikeID

Request Information

URI Parameters

None.

Body Parameters

RideModel
NameDescriptionTypeAdditional information
ID

integer

None.

CyclistID

integer

None.

BikeID

integer

None.

BikeDescription

string

None.

DateTimeStart

date

None.

Name

string

None.

Distance

you only have to add 2 of the three : Time, distance, AverageSpeed. Saving will calculate the other Note that distance is in Meters

decimal number

None.

DistanceKm

decimal number

None.

MovingTime

The moving time in seconds. You only have to add 2 of the three : Time, distance, AverageSpeed. Saving will calculate the other

integer

None.

AverageHeartRate

decimal number

None.

AverageSpeed

you only have to add 2 of the three : Time, distance, AverageSpeed. Saving will calculate the other This is in KM!

decimal number

None.

MaxHeartRate

decimal number

None.

MaxSpeed

decimal number

None.

TypeID

integer

None.

Type

string

None.

ItWasAWetRide

boolean

None.

ItWasARace

boolean

None.

Strava_Id

string

None.

CanCreateRoute

boolean

None.

UnitsOfMeasureID

integer

None.

ElevationGain

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "CyclistID": 2,
  "BikeID": 3,
  "BikeDescription": "sample string 4",
  "DateTimeStart": "2025-09-05T16:05:44.0040548+00:00",
  "Name": "sample string 6",
  "Distance": 7.1,
  "DistanceKm": 8.1,
  "MovingTime": 9,
  "AverageHeartRate": 10.1,
  "AverageSpeed": 11.1,
  "MaxHeartRate": 12.1,
  "MaxSpeed": 13.1,
  "TypeID": 14,
  "Type": "sample string 15",
  "ItWasAWetRide": true,
  "ItWasARace": true,
  "Strava_Id": "sample string 18",
  "CanCreateRoute": true,
  "UnitsOfMeasureID": 20,
  "ElevationGain": 21.1
}

application/xml, text/xml

Sample:
<RideModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Hub.Server.Models.DTO">
  <AverageHeartRate>10.1</AverageHeartRate>
  <AverageSpeed>11.1</AverageSpeed>
  <BikeDescription>sample string 4</BikeDescription>
  <BikeID>3</BikeID>
  <CanCreateRoute>true</CanCreateRoute>
  <CyclistID>2</CyclistID>
  <DateTimeStart>2025-09-05T16:05:44.0040548+00:00</DateTimeStart>
  <Distance>7.1</Distance>
  <DistanceKm>8.1</DistanceKm>
  <ElevationGain>21.1</ElevationGain>
  <ID>1</ID>
  <ItWasARace>true</ItWasARace>
  <ItWasAWetRide>true</ItWasAWetRide>
  <MaxHeartRate>12.1</MaxHeartRate>
  <MaxSpeed>13.1</MaxSpeed>
  <MovingTime>9</MovingTime>
  <Name>sample string 6</Name>
  <Strava_Id>sample string 18</Strava_Id>
  <Type>sample string 15</Type>
  <TypeID>14</TypeID>
  <UnitsOfMeasureID>20</UnitsOfMeasureID>
</RideModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

RideModel
NameDescriptionTypeAdditional information
ID

integer

None.

CyclistID

integer

None.

BikeID

integer

None.

BikeDescription

string

None.

DateTimeStart

date

None.

Name

string

None.

Distance

you only have to add 2 of the three : Time, distance, AverageSpeed. Saving will calculate the other Note that distance is in Meters

decimal number

None.

DistanceKm

decimal number

None.

MovingTime

The moving time in seconds. You only have to add 2 of the three : Time, distance, AverageSpeed. Saving will calculate the other

integer

None.

AverageHeartRate

decimal number

None.

AverageSpeed

you only have to add 2 of the three : Time, distance, AverageSpeed. Saving will calculate the other This is in KM!

decimal number

None.

MaxHeartRate

decimal number

None.

MaxSpeed

decimal number

None.

TypeID

integer

None.

Type

string

None.

ItWasAWetRide

boolean

None.

ItWasARace

boolean

None.

Strava_Id

string

None.

CanCreateRoute

boolean

None.

UnitsOfMeasureID

integer

None.

ElevationGain

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "CyclistID": 2,
  "BikeID": 3,
  "BikeDescription": "sample string 4",
  "DateTimeStart": "2025-09-05T16:05:44.0196814+00:00",
  "Name": "sample string 6",
  "Distance": 7.1,
  "DistanceKm": 8.1,
  "MovingTime": 9,
  "AverageHeartRate": 10.1,
  "AverageSpeed": 11.1,
  "MaxHeartRate": 12.1,
  "MaxSpeed": 13.1,
  "TypeID": 14,
  "Type": "sample string 15",
  "ItWasAWetRide": true,
  "ItWasARace": true,
  "Strava_Id": "sample string 18",
  "CanCreateRoute": true,
  "UnitsOfMeasureID": 20,
  "ElevationGain": 21.1
}

application/xml, text/xml

Sample:
<RideModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Hub.Server.Models.DTO">
  <AverageHeartRate>10.1</AverageHeartRate>
  <AverageSpeed>11.1</AverageSpeed>
  <BikeDescription>sample string 4</BikeDescription>
  <BikeID>3</BikeID>
  <CanCreateRoute>true</CanCreateRoute>
  <CyclistID>2</CyclistID>
  <DateTimeStart>2025-09-05T16:05:44.0196814+00:00</DateTimeStart>
  <Distance>7.1</Distance>
  <DistanceKm>8.1</DistanceKm>
  <ElevationGain>21.1</ElevationGain>
  <ID>1</ID>
  <ItWasARace>true</ItWasARace>
  <ItWasAWetRide>true</ItWasAWetRide>
  <MaxHeartRate>12.1</MaxHeartRate>
  <MaxSpeed>13.1</MaxSpeed>
  <MovingTime>9</MovingTime>
  <Name>sample string 6</Name>
  <Strava_Id>sample string 18</Strava_Id>
  <Type>sample string 15</Type>
  <TypeID>14</TypeID>
  <UnitsOfMeasureID>20</UnitsOfMeasureID>
</RideModel>