POST api/tenancy/{id}/setrent

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

UpdateRentAmountDataContract
NameDescriptionTypeAdditional information
RentAmount

decimal number

None.

PriceType

EnumDataContract

None.

RentSchedule

RecurringScheduleDataContract

None.

IsSplit

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "RentAmount": 1.0,
  "PriceType": {
    "Id": 1,
    "Name": "sample string 2",
    "SystemName": "sample string 3"
  },
  "RentSchedule": {
    "Frequency": 1,
    "StartDate": "2018-11-16T20:08:54.2778685Z",
    "DaysOfWeek": [
      1,
      1
    ],
    "DayOfMonth": 1,
    "Interval": 2,
    "AnniversaryDay": 3,
    "AnniversaryMonth": 4
  },
  "IsSplit": true
}

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 'UpdateRentAmountDataContract'.

Response Information

Resource Description

TenancyPriceDataContract
NameDescriptionTypeAdditional information
RentAmount

decimal number

None.

RentDayDifference

integer

None.

PriceType

EnumDataContract

None.

RentSchedule

RecurringScheduleDataContract

None.

Response Formats

application/json, text/json

Sample:
{
  "RentAmount": 1.0,
  "RentDayDifference": 2,
  "PriceType": {
    "Id": 1,
    "Name": "sample string 2",
    "SystemName": "sample string 3"
  },
  "RentSchedule": {
    "Frequency": 1,
    "StartDate": "2018-11-16T20:08:54.2778685Z",
    "DaysOfWeek": [
      1,
      1
    ],
    "DayOfMonth": 1,
    "Interval": 2,
    "AnniversaryDay": 3,
    "AnniversaryMonth": 4
  }
}