POST api/SocialDriver/UpdateVehicleDetails

Update a user's vehicle

Request Information

URI Parameters

None.

Body Parameters

UpdateVehicleDetailsRequest

UpdateVehicleDetailsRequest
NameDescriptionTypeAdditional information
VehicleRegistration

The user's vehicle registration

string

None.

CurrentOdometerReading

The user's vehicle odometer in meters

integer

None.

LastServiceMileage

The last service mileage

integer

None.

LastServiceDate

The last service date

date

None.

CarType

The user's car type

string

None.

PetrolCostPerMile

The petrol cost per mile of this vehicle

decimal number

None.

DefaultJourneyType

The vehicles default journey type

DefaultJourneyType

None.

VehicleOrigin

The origin of the vehicle

VehicleOrigin

None.

InsuranceRenewalDate

The insurance renewal date

date

None.

NextServiceDate

The next service date

date

None.

Request Formats

application/json, text/json

Sample:
{
  "VehicleRegistration": "sample string 1",
  "CurrentOdometerReading": 2,
  "LastServiceMileage": 3,
  "LastServiceDate": "2025-04-27T15:48:19.2672014+00:00",
  "CarType": "sample string 5",
  "PetrolCostPerMile": 6.0,
  "DefaultJourneyType": 0,
  "VehicleOrigin": 0,
  "InsuranceRenewalDate": "2025-04-27T15:48:19.2672014+00:00",
  "NextServiceDate": "2025-04-27T15:48:19.2672014+00:00"
}

application/xml, text/xml

Sample:
<UpdateVehicleDetailsRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <VehicleRegistration>sample string 1</VehicleRegistration>
  <CurrentOdometerReading>2</CurrentOdometerReading>
  <LastServiceMileage>3</LastServiceMileage>
  <LastServiceDate>2025-04-27T15:48:19.2672014+00:00</LastServiceDate>
  <CarType>sample string 5</CarType>
  <PetrolCostPerMile>6</PetrolCostPerMile>
  <DefaultJourneyType>None</DefaultJourneyType>
  <VehicleOrigin>GreatBritain</VehicleOrigin>
  <InsuranceRenewalDate>2025-04-27T15:48:19.2672014+00:00</InsuranceRenewalDate>
  <NextServiceDate>2025-04-27T15:48:19.2672014+00:00</NextServiceDate>
</UpdateVehicleDetailsRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.