POST api/Vehicle/UpdateVehicles
Request Information
URI Parameters
None.
Body Parameters
VehiclesUpdateModel| Name | Description | Type | Additional information |
|---|---|---|---|
| VehicleID | globally unique identifier |
None. |
|
| UserId | globally unique identifier |
None. |
|
| Brand | string |
None. |
|
| Model | string |
None. |
|
| PlateNumber | string |
None. |
|
| Color | string |
None. |
|
| Year | integer |
None. |
|
| BatteryCapacity | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"VehicleID": "204a2864-8e92-4a14-a8c5-ffb2eaedffc2",
"UserId": "dc8656dc-84fd-453b-818b-133da0b21838",
"Brand": "sample string 2",
"Model": "sample string 3",
"PlateNumber": "sample string 4",
"Color": "sample string 5",
"Year": 6,
"BatteryCapacity": 7.0
}
text/html, multipart/form-data
Sample:
{"VehicleID":"204a2864-8e92-4a14-a8c5-ffb2eaedffc2","UserId":"dc8656dc-84fd-453b-818b-133da0b21838","Brand":"sample string 2","Model":"sample string 3","PlateNumber":"sample string 4","Color":"sample string 5","Year":6,"BatteryCapacity":7.0}
application/xml, text/xml
Sample:
<VehiclesUpdateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VarCharge.MobilApi.Models.Vehicles"> <BatteryCapacity>7</BatteryCapacity> <Brand>sample string 2</Brand> <Color>sample string 5</Color> <Model>sample string 3</Model> <PlateNumber>sample string 4</PlateNumber> <UserId>dc8656dc-84fd-453b-818b-133da0b21838</UserId> <VehicleID>204a2864-8e92-4a14-a8c5-ffb2eaedffc2</VehicleID> <Year>6</Year> </VehiclesUpdateModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of ObjectNone.
Response Formats
application/json, text/json, text/html, multipart/form-data
Sample:
Sample not available.