Updates the car with the specified key.
Request Information
URI Parameters :
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The car id. |
globally unique identifier |
Required |
Body Parameters :
car| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Primary Key |
globally unique identifier | |
| name |
Name of the car |
string |
Required Max length: 64 |
| licence_plate |
Licence Plate Of the car |
string | |
| initial_km |
Actual KM value of the car before starting to add car travel on odyssee |
integer | |
| mileage_mandatory |
Indicates that entering the mileage (km) is required when recording a for this car. |
boolean | |
| modified_dateutc |
Readonly system field managed by database, filled with GetUtcDate when adding,updating |
date | |
| current_km |
Current KM value of the car |
integer |
Request Formats :
application/json, text/json
Sample:
{
"id": "d5a6aded-e95b-44fc-b2f1-b84f349c3471",
"name": "sample string 2",
"licence_plate": "sample string 3",
"initial_km": 4,
"mileage_mandatory": true,
"modified_dateutc": "2026-09-16T08:37:01.9621409+00:00",
"current_km": 7
}
application/xml, text/xml
Sample:
<car xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <current_km>7</current_km> <id>d5a6aded-e95b-44fc-b2f1-b84f349c3471</id> <initial_km>4</initial_km> <licence_plate>sample string 3</licence_plate> <mileage_mandatory>true</mileage_mandatory> <modified_dateutc>2026-09-16T08:37:01.962Z</modified_dateutc> <name>sample string 2</name> </car>
Response Information
Resource Description :
IHttpActionResult containing the updated car.
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.