PUT api/v2/Users/{id}/Vehicles

Updates details of a Person Vehicle. Returns Success/Error code.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

User Id

globally unique identifier

Required

Body Parameters

PersonUpdateVehicleViewModel
NameDescriptionTypeAdditional information
VehicleId

Required: Represents Vehicle Id of the Vehicle

globally unique identifier

None.

PersonVehicleId

Required: Represents PersonVehicleId of the Person

globally unique identifier

None.

PersonId

Required: Represents Person Id of the Vehicle

globally unique identifier

None.

sRegionId

Required: Represents sRegionId of the Vehicle

globally unique identifier

None.

Description

Required: Represents Description of the Vehicle

string

None.

Year

Optional: Represents Year of manufacturing of the Vehicle

string

None.

Make

Optional: Represents Make of the Vehicle

string

None.

Model

Optional: Represents Model of the Vehicle

string

None.

Color

Optional: Represents color of the Vehicle

string

None.

PlateNumber

Required: Represents Plate Number of the Vehicle

string

None.

sVehicleTypeId

Required: Represents sVehicleTypeId of the Vehicle

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "VehicleId": "03c3a7fa-603f-4c5e-9cd2-f377c0e6acde",
  "PersonVehicleId": "163f1270-59db-4712-872c-46ee9c6fcbce",
  "PersonId": "f0eade5c-b5bc-4b6b-ba06-d33856e04deb",
  "sRegionId": "b69762a0-3896-47fe-9d48-bf70e7247abd",
  "Description": "sample string 5",
  "Year": "sample string 6",
  "Make": "sample string 7",
  "Model": "sample string 8",
  "Color": "sample string 9",
  "PlateNumber": "sample string 10",
  "sVehicleTypeId": "f01df28b-650f-466f-a762-aa24d2d7a47f"
}

application/xml, text/xml

Sample:
<PersonUpdateVehicleViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIWebRole.Controllers">
  <Color>sample string 9</Color>
  <Description>sample string 5</Description>
  <Make>sample string 7</Make>
  <Model>sample string 8</Model>
  <PersonId>f0eade5c-b5bc-4b6b-ba06-d33856e04deb</PersonId>
  <PlateNumber>sample string 10</PlateNumber>
  <Year>sample string 6</Year>
  <sRegionId>b69762a0-3896-47fe-9d48-bf70e7247abd</sRegionId>
  <sVehicleTypeId>f01df28b-650f-466f-a762-aa24d2d7a47f</sVehicleTypeId>
  <PersonVehicleId>163f1270-59db-4712-872c-46ee9c6fcbce</PersonVehicleId>
  <VehicleId>03c3a7fa-603f-4c5e-9cd2-f377c0e6acde</VehicleId>
</PersonUpdateVehicleViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Result
NameDescriptionTypeAdditional information
ResultCode

Represents the result code

integer

None.

Description

Represents a description of the result code

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ResultCode": 1,
  "Description": "sample string 2"
}

application/xml, text/xml

Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIWebRole.Controllers">
  <Description>sample string 2</Description>
  <HttpStatusCode>Continue</HttpStatusCode>
  <ResultCode>1</ResultCode>
</Result>