Saves a car
Request Information
URI Parameters :
None.
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 | 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": "f3a1aea6-1abd-434b-9d9b-578b63c4d45e",
"name": "sample string 2",
"licence_plate": "sample string 3",
"initial_km": 4,
"mileage_mandatory": true,
"modified_dateutc": "2026-01-11T21:07:36.6482225+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>f3a1aea6-1abd-434b-9d9b-578b63c4d45e</id> <initial_km>4</initial_km> <licence_plate>sample string 3</licence_plate> <mileage_mandatory>true</mileage_mandatory> <modified_dateutc>2026-01-11T21:07:36.648Z</modified_dateutc> <name>sample string 2</name> </car>
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.