POST Caravan/SaveCaravan
Request Information
URI Parameters
None.
Body Parameters
CaravanModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| UserID | integer |
None. |
|
| BrandID | integer |
None. |
|
| ModelID | integer |
None. |
|
| Year | integer |
None. |
|
| FuelType | string |
None. |
|
| TransmissionType | string |
None. |
|
| DailyPrice | decimal number |
None. |
|
| Plate | string |
None. |
|
| BedCount | integer |
None. |
|
| Capacity | integer |
None. |
|
| KM | string |
None. |
|
| Note | string |
None. |
|
| Title | string |
None. |
|
| WeeklyDiscount | integer |
None. |
|
| MonthlyDiscount | integer |
None. |
|
| MinimumRentDay | integer |
None. |
|
| IsRentLongTerm | boolean |
None. |
|
| AvailableStartDate | date |
None. |
|
| AvailableEndDate | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"ID": 1,
"UserID": 2,
"BrandID": 1,
"ModelID": 1,
"Year": 1,
"FuelType": "sample string 3",
"TransmissionType": "sample string 4",
"DailyPrice": 1.0,
"Plate": "sample string 5",
"BedCount": 1,
"Capacity": 1,
"KM": "sample string 6",
"Note": "sample string 7",
"Title": "sample string 8",
"WeeklyDiscount": 1,
"MonthlyDiscount": 1,
"MinimumRentDay": 1,
"IsRentLongTerm": true,
"AvailableStartDate": "2025-11-08T13:19:43.03579+03:00",
"AvailableEndDate": "2025-11-08T13:19:43.03579+03:00"
}
application/xml, text/xml
Sample:
<Caravan.CaravanModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RentekerAPIProject.Models"> <AvailableEndDate>2025-11-08T13:19:43.03579+03:00</AvailableEndDate> <AvailableStartDate>2025-11-08T13:19:43.03579+03:00</AvailableStartDate> <BedCount>1</BedCount> <BrandID>1</BrandID> <Capacity>1</Capacity> <DailyPrice>1</DailyPrice> <FuelType>sample string 3</FuelType> <ID>1</ID> <IsRentLongTerm>true</IsRentLongTerm> <KM>sample string 6</KM> <MinimumRentDay>1</MinimumRentDay> <ModelID>1</ModelID> <MonthlyDiscount>1</MonthlyDiscount> <Note>sample string 7</Note> <Plate>sample string 5</Plate> <Title>sample string 8</Title> <TransmissionType>sample string 4</TransmissionType> <UserID>2</UserID> <WeeklyDiscount>1</WeeklyDiscount> <Year>1</Year> </Caravan.CaravanModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ApiResponseWithID| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| Success | boolean |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ID": 1,
"Success": true,
"Message": "sample string 3"
}
application/xml, text/xml
Sample:
<Boat.ApiResponseWithID xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RentekerAPIProject.Models"> <ID>1</ID> <Message>sample string 3</Message> <Success>true</Success> </Boat.ApiResponseWithID>