POST api/Client/Definition/SaveVehicle
Request Information
URI Parameters
None.
Body Parameters
VehicleRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Plate | string |
None. |
|
| Brand | string |
None. |
|
| Model | string |
None. |
|
| ModelYear | string |
None. |
|
| GearType | integer |
None. |
|
| FuelType | integer |
None. |
|
| DrivingLicenseTypes | string |
None. |
|
| CompanyId | integer |
None. |
|
| Id | integer |
None. |
|
| CreatedOn | date |
None. |
|
| ModifiedOn | date |
None. |
|
| Status | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Plate": "sample string 1",
"Brand": "sample string 2",
"Model": "sample string 3",
"ModelYear": "sample string 4",
"GearType": 1,
"FuelType": 1,
"DrivingLicenseTypes": "sample string 5",
"CompanyId": 6,
"Id": 7,
"CreatedOn": "2025-10-25T21:04:37.208328+03:00",
"ModifiedOn": "2025-10-25T21:04:37.208328+03:00",
"Status": 8
}
application/xml, text/xml
Sample:
<VehicleRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Entities.Models.Client.Definition"> <CreatedOn xmlns="http://schemas.datacontract.org/2004/07/Entities.Models">2025-10-25T21:04:37.208328+03:00</CreatedOn> <Id xmlns="http://schemas.datacontract.org/2004/07/Entities.Models">7</Id> <ModifiedOn xmlns="http://schemas.datacontract.org/2004/07/Entities.Models">2025-10-25T21:04:37.208328+03:00</ModifiedOn> <Status xmlns="http://schemas.datacontract.org/2004/07/Entities.Models">8</Status> <Brand>sample string 2</Brand> <CompanyId>6</CompanyId> <DrivingLicenseTypes>sample string 5</DrivingLicenseTypes> <FuelType>1</FuelType> <GearType>1</GearType> <Model>sample string 3</Model> <ModelYear>sample string 4</ModelYear> <Plate>sample string 1</Plate> </VehicleRequestModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ResultModelOfVehicleResponseModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Response | boolean |
None. |
|
| Message | string |
None. |
|
| Exception | string |
None. |
|
| Data | VehicleResponseModel |
None. |
Response Formats
application/json, text/json
Sample:
{
"Response": true,
"Message": "sample string 2",
"Exception": "sample string 3",
"Data": {
"Plate": "sample string 1",
"Brand": "sample string 2",
"Model": "sample string 3",
"ModelYear": "sample string 4",
"GearType": 1,
"FuelType": 1,
"DrivingLicenseTypes": "sample string 5",
"CompanyId": 6,
"Id": 7,
"CreatedOn": "2025-10-25T21:04:37.208328+03:00",
"ModifiedOn": "2025-10-25T21:04:37.208328+03:00",
"Status": 8
}
}
application/xml, text/xml
Sample:
<ResultModelOfVehicleResponseModelIjrq4xa9 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Entities.Models">
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Entities.Models.Client.Definition">
<CreatedOn>2025-10-25T21:04:37.208328+03:00</CreatedOn>
<Id>7</Id>
<ModifiedOn>2025-10-25T21:04:37.208328+03:00</ModifiedOn>
<Status>8</Status>
<d2p1:Brand>sample string 2</d2p1:Brand>
<d2p1:CompanyId>6</d2p1:CompanyId>
<d2p1:DrivingLicenseTypes>sample string 5</d2p1:DrivingLicenseTypes>
<d2p1:FuelType>1</d2p1:FuelType>
<d2p1:GearType>1</d2p1:GearType>
<d2p1:Model>sample string 3</d2p1:Model>
<d2p1:ModelYear>sample string 4</d2p1:ModelYear>
<d2p1:Plate>sample string 1</d2p1:Plate>
</Data>
<Exception>sample string 3</Exception>
<Message>sample string 2</Message>
<Response>true</Response>
</ResultModelOfVehicleResponseModelIjrq4xa9>