POST api/tenancy/{id}/renew

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

RenewTenancyDataContract
NameDescriptionTypeAdditional information
RentAmount

decimal number

None.

DepositAmount

decimal number

None.

DepositProtectionStatus

EnumDataContract

None.

DepositScheme

EnumDataContract

None.

StartDate

date

None.

EndDate

date

None.

RentSchedule

RecurringScheduleDataContract

None.

Term

EnumDataContract

None.

FurnishLevel

EnumDataContract

None.

AdditionalClauses

Collection of AddTenantClauseDataContract

None.

PriceType

EnumDataContract

None.

Request Formats

application/json, text/json

Sample:
{
  "RentAmount": 1.0,
  "DepositAmount": 1.0,
  "DepositProtectionStatus": {
    "Id": 1,
    "Name": "sample string 2",
    "SystemName": "sample string 3"
  },
  "DepositScheme": {
    "Id": 1,
    "Name": "sample string 2",
    "SystemName": "sample string 3"
  },
  "StartDate": "2018-11-16T03:43:13.8226018Z",
  "EndDate": "2018-11-16T03:43:13.8226018Z",
  "RentSchedule": {
    "Frequency": 1,
    "StartDate": "2018-11-16T03:43:13.8226018Z",
    "DaysOfWeek": [
      1,
      1
    ],
    "DayOfMonth": 1,
    "Interval": 2,
    "AnniversaryDay": 3,
    "AnniversaryMonth": 4
  },
  "Term": {
    "Id": 1,
    "Name": "sample string 2",
    "SystemName": "sample string 3"
  },
  "FurnishLevel": {
    "Id": 1,
    "Name": "sample string 2",
    "SystemName": "sample string 3"
  },
  "AdditionalClauses": [
    {
      "Name": "sample string 1",
      "Description": "sample string 2",
      "ClauseType": {
        "Id": 1,
        "Name": "sample string 2",
        "SystemName": "sample string 3"
      },
      "ForceUpdate": true,
      "Id": 4
    },
    {
      "Name": "sample string 1",
      "Description": "sample string 2",
      "ClauseType": {
        "Id": 1,
        "Name": "sample string 2",
        "SystemName": "sample string 3"
      },
      "ForceUpdate": true,
      "Id": 4
    }
  ],
  "PriceType": {
    "Id": 1,
    "Name": "sample string 2",
    "SystemName": "sample string 3"
  }
}

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.