PUT api/v2/Users/{id}/Vehicles
Updates details of a Person Vehicle. Returns Success/Error code.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
User Id |
globally unique identifier |
Required |
Body Parameters
PersonUpdateVehicleViewModel| Name | Description | Type | Additional 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
{
"VehicleId": "5c6b246d-01ef-4ba7-9437-6e3a8287d3a1",
"PersonVehicleId": "df3ad9f5-918d-4973-a4e8-5b3a2bd5c417",
"PersonId": "f736fac0-e800-413c-a734-5219d559441b",
"sRegionId": "3765a8fa-68d9-4b16-a93a-266c79fb30a8",
"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": "15a64cad-270f-46f4-9971-8e4846c31689"
}
application/xml, text/xml
<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>f736fac0-e800-413c-a734-5219d559441b</PersonId> <PlateNumber>sample string 10</PlateNumber> <Year>sample string 6</Year> <sRegionId>3765a8fa-68d9-4b16-a93a-266c79fb30a8</sRegionId> <sVehicleTypeId>15a64cad-270f-46f4-9971-8e4846c31689</sVehicleTypeId> <PersonVehicleId>df3ad9f5-918d-4973-a4e8-5b3a2bd5c417</PersonVehicleId> <VehicleId>5c6b246d-01ef-4ba7-9437-6e3a8287d3a1</VehicleId> </PersonUpdateVehicleViewModel>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
Result| Name | Description | Type | Additional information |
|---|---|---|---|
| ResultCode |
Represents the result code |
integer |
None. |
| Description |
Represents a description of the result code |
string |
None. |
Response Formats
application/json, text/json
{
"ResultCode": 1,
"Description": "sample string 2"
}
application/xml, text/xml
<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>