POST TinyHouse/SaveTinyHouses

Request Information

URI Parameters

None.

Body Parameters

TinyHouseModel
NameDescriptionTypeAdditional information
ID

integer

None.

UserID

integer

None.

BedCount

integer

None.

RoomCount

integer

None.

Capacity

integer

None.

DailyPrice

decimal number

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,
  "BedCount": 1,
  "RoomCount": 1,
  "Capacity": 1,
  "DailyPrice": 1.0,
  "Note": "sample string 3",
  "Title": "sample string 4",
  "WeeklyDiscount": 1,
  "MonthlyDiscount": 1,
  "MinimumRentDay": 1,
  "IsRentLongTerm": true,
  "AvailableStartDate": "2025-11-08T13:19:41.0357228+03:00",
  "AvailableEndDate": "2025-11-08T13:19:41.0357228+03:00"
}

application/xml, text/xml

Sample:
<TinyHouse.TinyHouseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RentekerAPIProject.Models">
  <AvailableEndDate>2025-11-08T13:19:41.0357228+03:00</AvailableEndDate>
  <AvailableStartDate>2025-11-08T13:19:41.0357228+03:00</AvailableStartDate>
  <BedCount>1</BedCount>
  <Capacity>1</Capacity>
  <DailyPrice>1</DailyPrice>
  <ID>1</ID>
  <IsRentLongTerm>true</IsRentLongTerm>
  <MinimumRentDay>1</MinimumRentDay>
  <MonthlyDiscount>1</MonthlyDiscount>
  <Note>sample string 3</Note>
  <RoomCount>1</RoomCount>
  <Title>sample string 4</Title>
  <UserID>2</UserID>
  <WeeklyDiscount>1</WeeklyDiscount>
</TinyHouse.TinyHouseModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'TinyHouseModel'.

Response Information

Resource Description

ApiResponseWithID
NameDescriptionTypeAdditional 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>